[zshrc] add notifications
This commit is contained in:
parent
749a5e97b3
commit
ca7a690eff
|
@ -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
|
||||
|
|
Reference in a new issue