diff --git a/src/.config/dunst/dunstrc b/src/.config/dunst/dunstrc index c0673d1..c93142f 100644 --- a/src/.config/dunst/dunstrc +++ b/src/.config/dunst/dunstrc @@ -46,4 +46,4 @@ [play_sound] summary = "*" - script = /home/dogeystamp/.local/bin/notification-sound.sh + script = /home/dogeystamp/.local/bin/deskutils/notification-sound.sh diff --git a/src/.config/fish/config.fish b/src/.config/fish/config.fish index af021b5..832ff5b 100644 --- a/src/.config/fish/config.fish +++ b/src/.config/fish/config.fish @@ -10,7 +10,7 @@ source ~/.config/fish/functions/extra_prompt.fish gpgt # Add .local/bin to path -set -gx PATH "$PATH:$HOME/.local/bin:" +set -gx PATH "$PATH:$HOME/.local/bin:$HOME/.local/bin/deskutils:" # Disable fish greeting set fish_greeting "" diff --git a/src/.local/bin/notif.wav b/src/.local/bin/deskutils/notif.wav similarity index 100% rename from src/.local/bin/notif.wav rename to src/.local/bin/deskutils/notif.wav diff --git a/src/.local/bin/notification-sound.sh b/src/.local/bin/deskutils/notification-sound.sh similarity index 55% rename from src/.local/bin/notification-sound.sh rename to src/.local/bin/deskutils/notification-sound.sh index a7b4eb7..a6db465 100755 --- a/src/.local/bin/notification-sound.sh +++ b/src/.local/bin/deskutils/notification-sound.sh @@ -2,4 +2,4 @@ # Dunst notification sound script. -mpv ~/.local/bin/notif.wav +mpv ~/.local/bin/deskutils/notif.wav diff --git a/src/.local/bin/deskutils/reboot.sh b/src/.local/bin/deskutils/reboot.sh new file mode 100755 index 0000000..2eb0bb8 --- /dev/null +++ b/src/.local/bin/deskutils/reboot.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# Reboot the device. + +if [ $(which systemctl 2> /dev/null) ]; then + reboot +else + doas /bin/loginctl reboot +fi diff --git a/src/.local/bin/ss.sh b/src/.local/bin/deskutils/screenshot-save.sh similarity index 100% rename from src/.local/bin/ss.sh rename to src/.local/bin/deskutils/screenshot-save.sh diff --git a/src/.local/bin/s.sh b/src/.local/bin/deskutils/screenshot.sh similarity index 100% rename from src/.local/bin/s.sh rename to src/.local/bin/deskutils/screenshot.sh diff --git a/src/.local/bin/deskutils/shutdown.sh b/src/.local/bin/deskutils/shutdown.sh new file mode 100755 index 0000000..45696ef --- /dev/null +++ b/src/.local/bin/deskutils/shutdown.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# Shut down the device. + +if [ $(which systemctl 2> /dev/null) ]; then + shutdown now +else + doas /bin/loginctl poweroff +fi diff --git a/src/.local/bin/deskutils/suspend.sh b/src/.local/bin/deskutils/suspend.sh new file mode 100755 index 0000000..cfde22a --- /dev/null +++ b/src/.local/bin/deskutils/suspend.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# Suspend the device. + +if [ $(which systemctl 2> /dev/null) ]; then + systemctl suspend +else + doas /bin/loginctl suspend +fi diff --git a/src/.local/bin/rcl b/src/.local/bin/rcl deleted file mode 100755 index d539a6a..0000000 --- a/src/.local/bin/rcl +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -# Send clipboard to my QEMU VM. Probably very hacky. - -xsel -b | ssh boron 'bash -ic "export DISPLAY=:0; export XAUTHORITY=\"$XDG_RUNTIME_DIR\"/Xauthority; cat | xclip -i -selection clipboard"' 2>/dev/null & disown 2>/dev/null diff --git a/src/.local/bin/rclr b/src/.local/bin/rclr deleted file mode 100755 index 5e552ab..0000000 --- a/src/.local/bin/rclr +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -# Receive clipboard from my QEMU VM. Probably very hacky. - -ssh boron 'bash -ic "export DISPLAY=:0; export XAUTHORITY=\"$XDG_RUNTIME_DIR\"/Xauthority; xclip -o -selection clipboard"' 2>/dev/null | xsel -ib diff --git a/src/.profile b/src/.profile index 7db40c6..de5a6fd 100644 --- a/src/.profile +++ b/src/.profile @@ -31,6 +31,9 @@ export GOPATH="$HOME"/.local/go # Set default programs export EDITOR="nvim" export BROWSER="qutebrowser" +# man pager +export MANPAGER='nvim +Man!' +export MANWIDTH=999 # Variables for passphrase2pgp export REALNAME="dogeystamp"