Add binaries
This commit is contained in:
parent
d212de838d
commit
1475365f5a
dotfiles/.local/bin
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
rfkill block wifi
|
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/env sh
|
||||
set -eu
|
||||
IFS='
|
||||
|
||||
'
|
||||
|
||||
rbw unlocked >/dev/null 2>&1 || rbw unlock
|
||||
|
||||
query=${1:-username}
|
||||
|
||||
chosen_item=$(
|
||||
eval "rbw list | dmenu"
|
||||
)
|
||||
|
||||
[ "$chosen_item" = "" ] && exit 1
|
||||
|
||||
case "$query" in
|
||||
code)
|
||||
rbw code "$chosen_item"
|
||||
;;
|
||||
*)
|
||||
item="$(rbw get "$chosen_item" --raw)"
|
||||
echo "$item" | jq --join-output ".data.username" | xclip -i -selection clipboard
|
||||
echo "$item" | jq --join-output ".data.password" | xclip -i -selection primary
|
||||
;;
|
||||
esac
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo 'on' > '/sys/bus/usb/devices/11-14/power/control'
|
||||
echo 'on' > '/sys/bus/usb/devices/11-3/power/control'
|
Loading…
Reference in New Issue