From 65e5842867f8fe68d24e09e6d2eb868a2e5213a7 Mon Sep 17 00:00:00 2001 From: Emmet Date: Tue, 23 May 2023 21:13:50 -0500 Subject: [PATCH] Setup xmobar network + networkmanager-dmenu --- user/home.nix | 13 +++++++++++++ user/wm/xmonad/xmobarrc.mustache | 4 +++- user/wm/xmonad/xmonad.org | 4 +++- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/user/home.nix b/user/home.nix index bf7d52f..0c57668 100644 --- a/user/home.nix +++ b/user/home.nix @@ -39,6 +39,7 @@ dmenu rofi keepmenu + networkmanager_dmenu feh git @@ -158,6 +159,18 @@ 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 = (Default: True) + ''; + home.sessionVariables = { EDITOR = "emacsclient"; }; diff --git a/user/wm/xmonad/xmobarrc.mustache b/user/wm/xmonad/xmobarrc.mustache index 9c85836..590d072 100644 --- a/user/wm/xmonad/xmobarrc.mustache +++ b/user/wm/xmonad/xmobarrc.mustache @@ -36,9 +36,11 @@ Config { font = "Inconsolata 18" , "--off", " \xf026 Mute " , "--offc", "#{{base0F-hex}}" ] 1 + , Run DynNetwork + [ "-t", "\xf0200 "] 1 ] , sepChar = "%" , alignSep = "}{" - , template = " %battery% %bright%%default:Master%}%XMonadLog%{%date% " + , template = " %battery% %bright%%default:Master%}%XMonadLog%{%dynnetwork%%date% " } } diff --git a/user/wm/xmonad/xmonad.org b/user/wm/xmonad/xmonad.org index 49ab11b..d7986a6 100644 --- a/user/wm/xmonad/xmonad.org +++ b/user/wm/xmonad/xmonad.org @@ -759,10 +759,12 @@ Config { font = "Inconsolata 18" , "--off", " \xf026 Mute " , "--offc", "#{{base0F-hex}}" ] 1 + , Run DynNetwork + [ "-t", "\xf0200 "] 1 ] , sepChar = "%" , alignSep = "}{" - , template = " %battery% %bright%%default:Master%}%XMonadLog%{%date% " + , template = " %battery% %bright%%default:Master%}%XMonadLog%{%dynnetwork%%date% " } }