Use rofi, add 'suspend' to nagbar
dblume

dblume commited on 2023-11-11 22:18:00
Showing 1 changed files, with 6 additions and 3 deletions.

... ...
@@ -63,9 +63,9 @@ bindsym $mod+Return exec i3-sensible-terminal
63 63
 bindsym $mod+Shift+q kill
64 64
 
65 65
 # start dmenu (a program launcher)
66
-bindsym $mod+d exec --no-startup-id dmenu_run
66
+#bindsym $mod+d exec --no-startup-id dmenu_run
67 67
 # A more modern dmenu replacement is rofi:
68
-# bindcode $mod+40 exec "rofi -modi drun,run -show drun"
68
+bindsym $mod+d exec "rofi -modi drun,run -show drun -font 'DejaVu Sans Mono 18'"
69 69
 # There also is i3-dmenu-desktop which only displays applications shipping a
70 70
 # .desktop file. It is a wrapper around dmenu, so you need that installed.
71 71
 # bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
... ...
@@ -170,7 +170,7 @@ bindsym $mod+Shift+c reload
170 170
 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
171 171
 bindsym $mod+Shift+r restart
172 172
 # exit i3 (logs you out of your X session)
173
-bindsym $mod+Shift+e exec "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'"
173
+bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Exit i3?' -B 'Exit now' 'i3-msg exit' -B 'Suspend' 'systemctl suspend && pkill i3-nagbar'"
174 174
 
175 175
 # resize window (you can also use the mouse for that)
176 176
 mode "resize" {
... ...
@@ -217,6 +217,9 @@ hide_edge_borders none
217 217
 # finds out, if available)
218 218
 bar {
219 219
     status_command i3status
220
+    colors{
221
+        statusline #C0C0C0
222
+    }
220 223
 }
221 224
 
222 225
 # sudo apt install maim xclip
223 226