summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <adam.moloney.stuck@gmail.com>2022-05-17 17:19:52 +0200
committeradamstuck <adam.moloney.stuck@gmail.com>2022-05-18 09:27:21 +0200
commit5822f9eb04370903907cba4829a20e7fdbe41946 (patch)
treea0438d4446d9669308c49e6050b5eca80f2b99a1
parent78446cb1bc33d39f083c615c69e2e7236be20337 (diff)
i3: reload instead of restart, picom toggle
-rw-r--r--.config/i3/config5
-rwxr-xr-x.local/bin/picom-toggle8
2 files changed, 10 insertions, 3 deletions
diff --git a/.config/i3/config b/.config/i3/config
index 03889d3..d947cf1 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -3,9 +3,7 @@ set $alt Mod1
floating_modifier $mod
##### Bindings
-
-bindsym $mod+Shift+c reload
-bindsym $mod+Shift+r restart
+bindsym $mod+Shift+r reload
bindsym $mod+Shift+q kill
bindsym $mod+Shift+e exec --no-startup-id "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
bindsym $mod+Shift+p exec --no-startup-id rofi -show p -modi "p:rofi-power-menu --choices=shutdown/reboot/suspend/logout --confirm="
@@ -17,6 +15,7 @@ bindsym $mod+e exec pcmanfm
bindsym $mod+f fullscreen toggle
bindsym $mod+i exec --no-startup-id polybar-msg cmd toggle
bindsym $mod+Shift+s exec --no-startup-id ~/.local/bin/screenshot
+bindsym $mod+Shift+c exec --no-startup-id ~/.local/bin/picom-toggle
bindsym $mod+d exec --no-startup-id rofi -show drun -show-icons -drun-display-format {name}
bindsym $alt+Tab exec --no-startup-id rofi -show window -show-icons -drun-display-format {name}
diff --git a/.local/bin/picom-toggle b/.local/bin/picom-toggle
new file mode 100755
index 0000000..c579fc7
--- /dev/null
+++ b/.local/bin/picom-toggle
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if pgrep -x "picom" > /dev/null
+then
+ killall picom
+else
+ picom -b --config $HOME/.config/picom/picom.conf
+fi