diff options
Diffstat (limited to '.bin')
-rwxr-xr-x | .bin/ag-audio | 10 | ||||
-rwxr-xr-x | .bin/clear-efi-suspend | 10 | ||||
-rwxr-xr-x | .bin/dwm-start | 16 | ||||
-rwxr-xr-x | .bin/switch-gpg-key | 3 | ||||
-rwxr-xr-x | .bin/synchronize-pub-dots | 10 |
5 files changed, 40 insertions, 9 deletions
diff --git a/.bin/ag-audio b/.bin/ag-audio index c39fd61..31b0fc3 100755 --- a/.bin/ag-audio +++ b/.bin/ag-audio @@ -10,14 +10,10 @@ __decrease() { __mic_toggle() { pactl set-source-mute @DEFAULT_SOURCE@ toggle - pactl get-source-mute @DEFAULT_SOURCE@ | grep no >/dev/null 2>&1 - echo "${?}" > /sys/class/leds/platform::micmute/brightness } __toggle() { pactl set-sink-mute @DEFAULT_SINK@ toggle - pactl get-sink-mute @DEFAULT_SINK@ | grep no >/dev/null 2>&1 - echo "${?}" > /sys/class/leds/platform::mute/brightness } __next() { @@ -56,4 +52,10 @@ case "${1}" in ;; esac +pactl get-source-mute @DEFAULT_SOURCE@ | grep no >/dev/null 2>&1 +echo "${?}" > /sys/class/leds/platform::micmute/brightness + +pactl get-sink-mute @DEFAULT_SINK@ | grep no >/dev/null 2>&1 +echo "${?}" > /sys/class/leds/platform::mute/brightness + ag-status &>/dev/null diff --git a/.bin/clear-efi-suspend b/.bin/clear-efi-suspend new file mode 100755 index 0000000..9086ef3 --- /dev/null +++ b/.bin/clear-efi-suspend @@ -0,0 +1,10 @@ +#!/bin/sh + +set -xe + +mkdir -p /dev/pstore +mount -t pstore pstore /dev/pstore +ls /dev/pstore +rm -f /dev/pstore/* + +rm /sys/firmware/efi/efivars/dump-type0-* diff --git a/.bin/dwm-start b/.bin/dwm-start index e411db5..b42252a 100755 --- a/.bin/dwm-start +++ b/.bin/dwm-start @@ -1,13 +1,25 @@ #!/bin/sh -kill -9 xidle -xidle & +__xidle() { + kill -9 xidle + xidle & +} + +__xsuspender() { + pkill -9 xsuspender + nohup xsuspender >/dev/null & disown +} + +command -v xidle && __xidle while true; do # status pkill -9 -f "ag-status" ag-status -l >/dev/null & + # xsuspender + command -v xsuspender && __xsuspender + # x11 configuration x11-config . ~/.bin/x11-screen diff --git a/.bin/switch-gpg-key b/.bin/switch-gpg-key new file mode 100755 index 0000000..896d155 --- /dev/null +++ b/.bin/switch-gpg-key @@ -0,0 +1,3 @@ +#!/bin/sh + +gpg-connect-agent "scd serialno" "learn --force" /bye diff --git a/.bin/synchronize-pub-dots b/.bin/synchronize-pub-dots index 5a6e795..ae018b2 100755 --- a/.bin/synchronize-pub-dots +++ b/.bin/synchronize-pub-dots @@ -12,21 +12,25 @@ allowed_patterns="-e ^.bin -e ^.config/dot/term-color-* -e ^.config/gopass/config.yml -e ^.config/i3*/config - -e ^.config/tmux/ -e ^.config/mimeapps.list -e ^.config/neomutt/neomuttrc -e ^.config/newsboat/config -e ^.config/nvim/ + -e ^.config/pipewire/ -e ^.config/qutebrowser/config.py -e ^.config/qutebrowser/greasemonkey/ - -e ^.config/pipewire/ -e ^.config/sway/config -e ^.config/systemd/*.service + -e ^.config/tmux/ -e ^.config/user-dirs.dir -e ^.config/user-dirs.locale + -e ^.config/virt-lightning/ + -e ^.config/xsuspender.conf -e ^.gnupg/gpg-agent.conf - -e ^.public-keys/ -e ^.kshrc + -e ^.mbsyncrc + -e ^.npmrc + -e ^.public-keys/ -e ^.weechat/buflist.conf -e ^.weechat/fset.conf -e ^.weechat/logger.conf |