Setup xmobar network + networkmanager-dmenu

This commit is contained in:
Emmet 2023-05-23 21:13:50 -05:00
parent 5cdda32900
commit 65e5842867
3 changed files with 19 additions and 2 deletions

View file

@ -39,6 +39,7 @@
dmenu dmenu
rofi rofi
keepmenu keepmenu
networkmanager_dmenu
feh feh
git git
@ -158,6 +159,18 @@
pref("webgl"webgl.disabled",false); pref("webgl"webgl.disabled",false);
''; '';
home.file.".config/networkmanager-dmenu/config.ini".text = ''
[dmenu]
dmenu_command = rofi -show dmenu
compact = True
wifi_chars =
list_saved = True
[editor]
terminal = alacritty
# gui_if_available = <True or False> (Default: True)
'';
home.sessionVariables = { home.sessionVariables = {
EDITOR = "emacsclient"; EDITOR = "emacsclient";
}; };

View file

@ -36,9 +36,11 @@ Config { font = "Inconsolata 18"
, "--off", "<fc=#{{base0F-hex}}> <fn=1>\xf026</fn> Mute </fc>" , "--off", "<fc=#{{base0F-hex}}> <fn=1>\xf026</fn> Mute </fc>"
, "--offc", "#{{base0F-hex}}" , "--offc", "#{{base0F-hex}}"
] 1 ] 1
, Run DynNetwork
[ "-t", "<fc=#{{base0D-hex}}><fn=1>\xf0200</fn> <dev></fc>"] 1
] ]
, sepChar = "%" , sepChar = "%"
, alignSep = "}{" , alignSep = "}{"
, template = " %battery% %bright%<action=`xdotool key Super_L+y`>%default:Master%</action>}%XMonadLog%{<action=`xdotool key Super_L+c`>%date%</action> " , template = " %battery% %bright%<action=`xdotool key Super_L+y`>%default:Master%</action>}%XMonadLog%{<action='networkmanager_dmenu'>%dynnetwork%</action><action=`xdotool key Super_L+c`>%date%</action> "
} }
} }

View file

@ -759,10 +759,12 @@ Config { font = "Inconsolata 18"
, "--off", "<fc=#{{base0F-hex}}> <fn=1>\xf026</fn> Mute </fc>" , "--off", "<fc=#{{base0F-hex}}> <fn=1>\xf026</fn> Mute </fc>"
, "--offc", "#{{base0F-hex}}" , "--offc", "#{{base0F-hex}}"
] 1 ] 1
, Run DynNetwork
[ "-t", "<fc=#{{base0D-hex}}><fn=1>\xf0200</fn> <dev></fc>"] 1
] ]
, sepChar = "%" , sepChar = "%"
, alignSep = "}{" , alignSep = "}{"
, template = " %battery% %bright%<action=`xdotool key Super_L+y`>%default:Master%</action>}%XMonadLog%{<action=`xdotool key Super_L+c`>%date%</action> " , template = " %battery% %bright%<action=`xdotool key Super_L+y`>%default:Master%</action>}%XMonadLog%{<action='networkmanager_dmenu'>%dynnetwork%</action><action=`xdotool key Super_L+c`>%date%</action> "
} }
} }