[zshrc] add notifications

legacy
Simon Bruder 2018-05-20 14:45:25 +00:00
parent 749a5e97b3
commit ca7a690eff
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
1 changed files with 8 additions and 0 deletions

View File

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