summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-07-10 10:34:04 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-07-10 10:34:04 +0300
commitb2ffd6fb28f1c5cf7c13d5ffddff864be7708bfd (patch)
tree1c14df52b94f07d2c04b9bb0c46c186a1beda4bf
parent0aa0e240dad413131bd51ee7169d12e3d46fcfa1 (diff)
downloaddotfiles-b2ffd6fb28f1c5cf7c13d5ffddff864be7708bfd.tar
dotfiles-b2ffd6fb28f1c5cf7c13d5ffddff864be7708bfd.tar.gz
dotfiles-b2ffd6fb28f1c5cf7c13d5ffddff864be7708bfd.zip
Moved from lwa-hot-corners to lead (MadeJohn fork) for hot corners
-rw-r--r--.config/lead/lead.conf24
-rw-r--r--.config/openbox/autostart2
-rw-r--r--.gitignore1
-rw-r--r--.lwarc5
-rwxr-xr-xtoggle-desktop.sh10
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
diff --git a/.gitignore b/.gitignore
index 2b04282..50db06e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,6 +30,7 @@
!.config/pavucontrol.ini
!.config/autostart/
.config/autostart/rambox.desktop
+!.config/lead/
!.config/jgmenu/
!.config/tint2/
!.config/openbox/
diff --git a/.lwarc b/.lwarc
deleted file mode 100644
index 38fadf5..0000000
--- a/.lwarc
+++ /dev/null
@@ -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