Drop rofi in favour of dmenu
authorAmin Bandali <bandali@gnu.org>
Sun, 20 Nov 2022 01:24:42 +0000 (20:24 -0500)
committerAmin Bandali <bandali@gnu.org>
Sun, 20 Nov 2022 01:25:33 +0000 (20:25 -0500)
.config/i3/config
.local/bin/dmenu-light [new file with mode: 0755]
.local/bin/dmenu-pamixer [new file with mode: 0755]
.local/bin/rofi-light [deleted file]
.local/bin/rofi-pamixer [deleted file]

index 59fc1b1..65671d6 100644 (file)
@@ -29,18 +29,17 @@ bindsym $mod+Shift+w kill
 # kill an application
 #bindsym --release $mod+Shift+x exec xkill
 
 # kill an application
 #bindsym --release $mod+Shift+x exec xkill
 
-# rofi launcher and pass
-bindsym $mod+space exec rofi -show run -display-run ' > ' -display-window ' 🗔 '
-bindsym $mod+backslash exec rofi -show window -display-run ' > ' -display-window ' 🗔 '
-bindsym $mod+Shift+space exec rofi-pass
+# launcher and pass
+bindsym $mod+space exec dmenu_run
+bindsym $mod+backslash exec passmenu --type
 
 # brightness
 
 # brightness
-bindsym $mod+apostrophe exec rofi-light        # rofi-based brightness chooser
-bindsym XF86MonBrightnessUp exec light -A 5    # increase screen brightness
-bindsym XF86MonBrightnessDown exec light -U 5  # decrease screen brightness
+bindsym $mod+apostrophe exec dmenu-light      # brightness chooser
+bindsym XF86MonBrightnessUp exec light -A 5   # increase brightness
+bindsym XF86MonBrightnessDown exec light -U 5 # decrease brightness
 
 # volume
 
 # volume
-bindsym $mod+semicolon exec rofi-pamixer       # rofi-based volume chooser
+bindsym $mod+semicolon exec dmenu-pamixer # volume chooser
 bindsym XF86AudioRaiseVolume exec pamixer --allow-boost --increase 5
 bindsym XF86AudioLowerVolume exec pamixer --allow-boost --decrease 5
 bindsym XF86AudioMute        exec pamixer --toggle-mute
 bindsym XF86AudioRaiseVolume exec pamixer --allow-boost --increase 5
 bindsym XF86AudioLowerVolume exec pamixer --allow-boost --decrease 5
 bindsym XF86AudioMute        exec pamixer --toggle-mute
diff --git a/.local/bin/dmenu-light b/.local/bin/dmenu-light
new file mode 100755 (executable)
index 0000000..988a073
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+cur=$(light -G)
+val=$(dmenu -p "brightness ($cur):" < /dev/null)
+[ -n "$val" ] && light -S "$val"
diff --git a/.local/bin/dmenu-pamixer b/.local/bin/dmenu-pamixer
new file mode 100755 (executable)
index 0000000..c830e9d
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+cur=$(pamixer --get-volume)
+val=$(dmenu -p "volume ($cur):" < /dev/null)
+[ -n "$val" ] && pamixer --set-volume "$val"
diff --git a/.local/bin/rofi-light b/.local/bin/rofi-light
deleted file mode 100755 (executable)
index 72fbd43..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-cur=$(light -G)
-val=$(rofi -dmenu -mesg "brightness: $cur" -p "" -l 0 -width 13)
-[ -n "$val" ] && light -S "$val"
diff --git a/.local/bin/rofi-pamixer b/.local/bin/rofi-pamixer
deleted file mode 100755 (executable)
index 19377dc..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-cur=$(pamixer --get-volume)
-val=$(rofi -dmenu -mesg "volume: $cur" -p "" -l 0 -width 8)
-[ -n "$val" ] && pamixer --set-volume "$val"