[zshrc] add notifications
This commit is contained in:
parent
749a5e97b3
commit
ca7a690eff
|
@ -84,8 +84,11 @@ function touchpad() {
|
||||||
touchpad="SynPS/2 Synaptics TouchPad"
|
touchpad="SynPS/2 Synaptics TouchPad"
|
||||||
if [[ $1 == "disable" ]];then
|
if [[ $1 == "disable" ]];then
|
||||||
xinput disable "$touchpad"
|
xinput disable "$touchpad"
|
||||||
|
notify-send "Touchpad" "Disabled" -i ~/.local/share/icons/Paper/48x48/notifications/notification-touchpad-disabled-symbolic.svg
|
||||||
|
|
||||||
else
|
else
|
||||||
xinput enable "$touchpad"
|
xinput enable "$touchpad"
|
||||||
|
notify-send "Touchpad" "Enabled" -i ~/.local/share/icons/Paper/48x48/notifications/notification-input-touchpad-symbolic.svg
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,6 +102,7 @@ alias dynamic-colors="~/.dynamic-colors/bin/dynamic-colors"
|
||||||
|
|
||||||
## Screen settings
|
## Screen settings
|
||||||
function ränder() {
|
function ränder() {
|
||||||
|
(
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"office")
|
"office")
|
||||||
xrandr \
|
xrandr \
|
||||||
|
@ -138,9 +142,13 @@ function ränder() {
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Invalid Preset"
|
echo "Invalid Preset"
|
||||||
|
notify-send "ränder" "Invalid Preset $1" -i ~/.local/share/icons/Paper/48x48/devices/video-display.png
|
||||||
|
invalid="true"
|
||||||
;;
|
;;
|
||||||
esac
|
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
|
feh --bg-fill ~/bg.jpg
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
# Bugs
|
# Bugs
|
||||||
|
|
Reference in a new issue