Compare commits

...

2 Commits

Author SHA1 Message Date
coolneng b35d5d87fc
Add Restart Waybar to recurrent-actions 2022-06-13 10:27:13 +02:00
coolneng 0905401dac
Add webtorrent alias to fish 2022-06-13 10:27:02 +02:00
2 changed files with 4 additions and 1 deletions

View File

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

View File

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