scripts: organise file paths
This commit is contained in:
parent
a4abe5fb5e
commit
b8b1aaf016
@ -46,4 +46,4 @@
|
||||
|
||||
[play_sound]
|
||||
summary = "*"
|
||||
script = /home/dogeystamp/.local/bin/notification-sound.sh
|
||||
script = /home/dogeystamp/.local/bin/deskutils/notification-sound.sh
|
||||
|
@ -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 ""
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
# Dunst notification sound script.
|
||||
|
||||
mpv ~/.local/bin/notif.wav
|
||||
mpv ~/.local/bin/deskutils/notif.wav
|
9
src/.local/bin/deskutils/reboot.sh
Executable file
9
src/.local/bin/deskutils/reboot.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Reboot the device.
|
||||
|
||||
if [ $(which systemctl 2> /dev/null) ]; then
|
||||
reboot
|
||||
else
|
||||
doas /bin/loginctl reboot
|
||||
fi
|
9
src/.local/bin/deskutils/shutdown.sh
Executable file
9
src/.local/bin/deskutils/shutdown.sh
Executable 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
|
9
src/.local/bin/deskutils/suspend.sh
Executable file
9
src/.local/bin/deskutils/suspend.sh
Executable 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
|
@ -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
|
@ -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
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user