From ca7a690effaeb9a2783f7cd077b5efaf8307c23c Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 20 May 2018 14:45:25 +0000 Subject: [PATCH] [zshrc] add notifications --- home/.zshrc.local | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/home/.zshrc.local b/home/.zshrc.local index 53a1d59..b7cf900 100644 --- a/home/.zshrc.local +++ b/home/.zshrc.local @@ -84,8 +84,11 @@ function touchpad() { touchpad="SynPS/2 Synaptics TouchPad" if [[ $1 == "disable" ]];then xinput disable "$touchpad" + notify-send "Touchpad" "Disabled" -i ~/.local/share/icons/Paper/48x48/notifications/notification-touchpad-disabled-symbolic.svg + else xinput enable "$touchpad" + notify-send "Touchpad" "Enabled" -i ~/.local/share/icons/Paper/48x48/notifications/notification-input-touchpad-symbolic.svg fi } @@ -99,6 +102,7 @@ alias dynamic-colors="~/.dynamic-colors/bin/dynamic-colors" ## Screen settings function ränder() { + ( case "$1" in "office") xrandr \ @@ -138,9 +142,13 @@ function ränder() { ;; *) echo "Invalid Preset" + notify-send "ränder" "Invalid Preset $1" -i ~/.local/share/icons/Paper/48x48/devices/video-display.png + invalid="true" ;; esac + [ -z $invalid ] && notify-send "ränder" "Switched to preset $1" -i ~/.local/share/icons/Paper/48x48/devices/video-display.png feh --bg-fill ~/bg.jpg + ) } # Bugs