diff options
author | David Phillips <david@sighup.nz> | 2017-01-22 16:48:44 +1300 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2017-01-22 16:48:44 +1300 |
commit | 45aaf8b468ce1a95ee094209de7a68ceeade2ab3 (patch) | |
tree | 9463a2d39d1588070983fa42b8db5bc6651f7c69 | |
parent | df0edf7d5a24a8eb33b394af338f68101164e269 (diff) | |
download | dotfiles-45aaf8b468ce1a95ee094209de7a68ceeade2ab3.tar.xz |
Add lock disabler for youtube vids
-rw-r--r-- | XCompose | 2 | ||||
-rwxr-xr-x | local/bin/disable-fullscreen-lock | 13 |
2 files changed, 14 insertions, 1 deletions
@@ -1,5 +1,4 @@ include "/usr/share/X11/locale/en_US.UTF-8/Compose" -WMAN # USEFUL STUFF <Multi_key> <d> <o> <t> : "·" # Mid dot for multiplication or units @@ -30,6 +29,7 @@ WMAN <Multi_key> <s> <n> <o> <w> : "☃" U2603 # SNOWMAN <Multi_key> <b> <s> <n> <o> <w> : "⛇" U26C7 # SNOWMAN <Multi_key> <k> <o> <a> <l> <a> : "ʕ•ᴥ•ʔ" # koala +<Multi_key> <y> <e> <s> : "✔" # tick # BLACKBOARD BOLD UPPERCASE, 1 0 <Multi_key> <B> <A> : "𝔸" diff --git a/local/bin/disable-fullscreen-lock b/local/bin/disable-fullscreen-lock new file mode 100755 index 0000000..1eff71c --- /dev/null +++ b/local/bin/disable-fullscreen-lock @@ -0,0 +1,13 @@ +#!/bin/sh + +DELAY=300 + +while true; do + activ_win_id=$(xprop -root _NET_ACTIVE_WINDOW) + if result=$(xprop -id ${activ_win_id:40:9} | grep _NET_WM_STATE_FULLSCREEN); then + xdotool key Shift + xset -dpms + xset dpms + fi + sleep "$DELAY" +done |