Compare commits
2 Commits
bb89177ff9
...
b35d5d87fc
Author | SHA1 | Date |
---|---|---|
coolneng | b35d5d87fc | |
coolneng | 0905401dac |
|
@ -12,6 +12,7 @@ alias vim "nvim"
|
||||||
alias docker-compose "podman-compose"
|
alias docker-compose "podman-compose"
|
||||||
alias sc "systemctl"
|
alias sc "systemctl"
|
||||||
alias jc "journalctl -eu"
|
alias jc "journalctl -eu"
|
||||||
|
alias webtorrent "webtorrent -i -o /tmp/webtorrent --mpv --player-args='--sub-auto=all --sub-file-paths=Subs:subs'"
|
||||||
|
|
||||||
# Additional paths
|
# Additional paths
|
||||||
set PATH $PATH $HOME/.emacs.d/bin
|
set PATH $PATH $HOME/.emacs.d/bin
|
||||||
|
|
|
@ -6,6 +6,7 @@ select_action() {
|
||||||
"Connectivity test"
|
"Connectivity test"
|
||||||
"Reload doom emacs"
|
"Reload doom emacs"
|
||||||
"Sync mail"
|
"Sync mail"
|
||||||
|
"Restart Waybar"
|
||||||
)
|
)
|
||||||
action=$(printf '%s\n' "${action_content[@]}" | rofi -no-auto-select -i "$@" -dmenu -p "Choose an action")
|
action=$(printf '%s\n' "${action_content[@]}" | rofi -no-auto-select -i "$@" -dmenu -p "Choose an action")
|
||||||
execute_action "$action"
|
execute_action "$action"
|
||||||
|
@ -24,7 +25,8 @@ execute_action() {
|
||||||
"System resources usage") launch_kitty "htop" ;;
|
"System resources usage") launch_kitty "htop" ;;
|
||||||
"Connectivity test") launch_kitty "ping -c 2 freebsd.org" ;;
|
"Connectivity test") launch_kitty "ping -c 2 freebsd.org" ;;
|
||||||
"Reload doom emacs") execute_command "$HOME/.emacs.d/bin/doom sync" ;;
|
"Reload doom emacs") execute_command "$HOME/.emacs.d/bin/doom sync" ;;
|
||||||
"Sync mail") execute_command "/home/coolnengs/.local/share/scripts/mail-sync -a" ;;
|
"Sync mail") execute_command "/home/coolneng/.local/share/scripts/mail-sync -a" ;;
|
||||||
|
"Restart Waybar") execute_command "pkill waybar; waybar &" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue