feat: toggle safeeyes
This commit is contained in:
parent
16247e2a61
commit
0749a6750e
9
roles/scripts/files/t460p/toggle_safeeyes
Normal file
9
roles/scripts/files/t460p/toggle_safeeyes
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
|
if [[ $(safeeyes --status) == Deaktiviert* ]] then
|
||||||
|
safeeyes --enable
|
||||||
|
notify-send "SafeEyes aktiviert" "$(safeeyes --status)" -t 2000
|
||||||
|
else
|
||||||
|
safeeyes --disable
|
||||||
|
notify-send "SafeEyes deaktiviert" "$(safeeyes --status)" -t 2000
|
||||||
|
fi
|
@ -44,4 +44,5 @@
|
|||||||
- { src: inline_code.tex, dest: ~/.local/bin/inline_code.tex }
|
- { src: inline_code.tex, dest: ~/.local/bin/inline_code.tex }
|
||||||
- { src: start_vm, dest: ~/.local/bin/start_vm }
|
- { src: start_vm, dest: ~/.local/bin/start_vm }
|
||||||
- { src: open_lazygit_url, dest: ~/.local/bin/open_lazygit_url }
|
- { src: open_lazygit_url, dest: ~/.local/bin/open_lazygit_url }
|
||||||
|
- { src: toggle_safeeyes, dest: ~/.local/bin/toggle_safeeyes }
|
||||||
tags: t460p
|
tags: t460p
|
||||||
|
@ -193,6 +193,8 @@ myAdditionalKeys =
|
|||||||
|
|
||||||
, ("M-S-f", withFocused $ windows . W.sink)
|
, ("M-S-f", withFocused $ windows . W.sink)
|
||||||
|
|
||||||
|
, ("M-S-e", spawn "toggle_safeeyes")
|
||||||
|
|
||||||
-- media keys
|
-- media keys
|
||||||
, ("<XF86AudioMute>", spawn "pamixer -t" *> spawn "brightnessctl -q -d platform::mute s $((1-$(brightnessctl -d platform::mute g)))")
|
, ("<XF86AudioMute>", spawn "pamixer -t" *> spawn "brightnessctl -q -d platform::mute s $((1-$(brightnessctl -d platform::mute g)))")
|
||||||
, ("<XF86AudioLowerVolume>", spawn "pamixer -d 5")
|
, ("<XF86AudioLowerVolume>", spawn "pamixer -d 5")
|
||||||
|
Loading…
Reference in New Issue
Block a user