diff options
| -rw-r--r-- | .config/lead/lead.conf | 24 | ||||
| -rw-r--r-- | .config/openbox/autostart | 2 | ||||
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | .lwarc | 5 | ||||
| -rwxr-xr-x | toggle-desktop.sh | 10 |
5 files changed, 26 insertions, 16 deletions
diff --git a/.config/lead/lead.conf b/.config/lead/lead.conf new file mode 100644 index 0000000..ef715e4 --- /dev/null +++ b/.config/lead/lead.conf @@ -0,0 +1,24 @@ +[HDMI-0] +bottom= +bottomLeft=SystemMonitor +bottomRight=ToggleDesktop +left= +right= +top= +topLeft= +topRight= + +[SystemMonitor] +enterAction=gnome-system-monitor +exitAction= +enterDelay=100 +exitDelay=0 + +[ToggleDesktop] +enterAction=/home/kamen/toggle-desktop.sh +exitAction= +enterDelay=100 +exitDelay=0 + +[systemsettings] +/* debug=1 */ diff --git a/.config/openbox/autostart b/.config/openbox/autostart index 5636217..9d93907 100644 --- a/.config/openbox/autostart +++ b/.config/openbox/autostart @@ -6,7 +6,7 @@ xhost +si:localuser:root # fixes unable to open display errors: https://askubunt tail -n 1 -f /var/log/Xorg.0.log | while read # execute stuff when resolution (mostly) changes do ~/.fehbg & # wallpaper - lwa-hot-corners ~/.lwarc & # hot corners + lead & # hot corners, this is MageJohn's fork: https://github.com/MageJohn/lead done & xcape -e 'Super_L=Super_L|P' & # used for the "windows" menu @@ -30,6 +30,7 @@ !.config/pavucontrol.ini !.config/autostart/ .config/autostart/rambox.desktop +!.config/lead/ !.config/jgmenu/ !.config/tint2/ !.config/openbox/ @@ -1,5 +0,0 @@ -bottom_left_command=gnome-system-monitor -bottom_right_command=/home/kamen/toggle-desktop.sh $PPID -hold_duration=0 -update_interval=100 -disable_on_fullscreen=false diff --git a/toggle-desktop.sh b/toggle-desktop.sh index f6e8843..6274dec 100755 --- a/toggle-desktop.sh +++ b/toggle-desktop.sh @@ -1,15 +1,5 @@ #!/bin/bash -if [ -s /tmp/lwa.lock ]; then - # On my system, lwa-hot-corners sometimes creates many instances of itself - # This way, I kill the unnecessary processes - # WORKS ONLY when I give the script $PPID as first argument (refer to .lwarc) - kill -KILL $1 - exit -fi - -echo "Running" > /tmp/lwa.lock - if xprop -root _NET_SHOWING_DESKTOP | egrep '= 1' > /dev/null; then wmctrl -k off else |
