scripts: organise file paths

This commit is contained in:
dogeystamp 2022-08-01 19:24:50 -04:00
parent a4abe5fb5e
commit b8b1aaf016
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
12 changed files with 33 additions and 13 deletions

View File

@ -46,4 +46,4 @@
[play_sound]
summary = "*"
script = /home/dogeystamp/.local/bin/notification-sound.sh
script = /home/dogeystamp/.local/bin/deskutils/notification-sound.sh

View File

@ -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 ""

View File

@ -2,4 +2,4 @@
# Dunst notification sound script.
mpv ~/.local/bin/notif.wav
mpv ~/.local/bin/deskutils/notif.wav

View File

@ -0,0 +1,9 @@
#!/bin/sh
# Reboot the device.
if [ $(which systemctl 2> /dev/null) ]; then
reboot
else
doas /bin/loginctl reboot
fi

View File

@ -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

View File

@ -0,0 +1,9 @@
#!/bin/sh
# Suspend the device.
if [ $(which systemctl 2> /dev/null) ]; then
systemctl suspend
else
doas /bin/loginctl suspend
fi

View File

@ -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

View File

@ -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

View File

@ -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"