mirror of
https://github.com/librephoenix/nixos-config
synced 2025-04-20 09:14:34 +05:30
Include theme name on xmobar
This commit is contained in:
parent
87fda42f52
commit
67476d8507
|
@ -6,6 +6,7 @@ let
|
|||
myThemePath = "../../../themes/"+myTheme+".yaml";
|
||||
in
|
||||
{
|
||||
home.file.".currenttheme".text = myTheme;
|
||||
stylix.autoEnable = false;
|
||||
stylix.polarity = myThemePolarity;
|
||||
stylix.image = pkgs.fetchurl {
|
||||
|
|
|
@ -195,13 +195,7 @@ focus-exclude = [
|
|||
#
|
||||
# opacity-rule = []
|
||||
opacity-rule = [
|
||||
"80:class_g = 'Bar'", # lemonbar
|
||||
"100:class_g = 'slop'", # maim
|
||||
"100:class_g = 'XTerm'",
|
||||
"100:class_g = 'URxvt'",
|
||||
"100:class_g = 'kitty'",
|
||||
"100:class_g = 'Alacritty'",
|
||||
"80:class_g = 'Polybar'",
|
||||
"90:class_g = 'xmobar'",
|
||||
"90:class_g = 'firefox'",
|
||||
"90:class_g = 'librewolf'",
|
||||
"90:class_g = 'Navigator'",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Config { font = "Inconsolata 18"
|
||||
Config { font = "Inconsolata 16"
|
||||
, additionalFonts = ["Symbols Nerd Font 14"]
|
||||
, border = NoBorder
|
||||
, bgColor = "#{{base00-hex}}"
|
||||
|
@ -40,10 +40,14 @@ Config { font = "Inconsolata 18"
|
|||
[ "-t", "<fc=#{{base0D-hex}}><fn=1>\xf0200</fn> <dev></fc>"] 1
|
||||
, Run Com "echo"
|
||||
[ "<fc=#{{base0E-hex}}><fn=1>\xea77</fn> st</fc>"] "syncthing" 0
|
||||
, Run Com "echo"
|
||||
[ "<fn=1>\xeb5c</fn> "] "currentthemesymbol" 0
|
||||
, Run Com "cat"
|
||||
[ "/home/emmet/.currenttheme"] "currenttheme" 0
|
||||
, Run Memory [ "-t", "<fc=#{{base08-hex}}><fn=1>\xf035b</fn> <usedratio>% (<used> GB)</fc>", "-d", "1", "--", "--scale", "1024"] 20
|
||||
]
|
||||
, sepChar = "%"
|
||||
, alignSep = "}{"
|
||||
, template = " %battery% %bright%<action=`xdotool key Super_L+y`>%default:Master%</action>%memory%}%XMonadLog%{<action=`librewolf localhost:8384`>%syncthing%</action> <action='networkmanager_dmenu'>%dynnetwork%</action><action=`xdotool key Super_L+c`>%date%</action> "
|
||||
, template = " %battery% %bright%<action=`xdotool key Super_L+y`>%default:Master%</action>%memory% %currentthemesymbol%%currenttheme%}%XMonadLog%{<action=`librewolf localhost:8384`>%syncthing%</action> <action='networkmanager_dmenu'>%dynnetwork%</action><action=`xdotool key Super_L+c`>%date%</action> "
|
||||
}
|
||||
}
|
||||
|
|
|
@ -721,7 +721,7 @@ I utilize xmobar as a status bar on my monitors. To manage my xmobar config, I
|
|||
** Xmobar Template
|
||||
This is my base xmobarrc. This is a full xmobar config with placeholders for the colors (i.e. =colorFgNormal=, =colorBgNormal=, =color01Normal=, =color01Bright=, etc...). [[./startup.sh][startup.sh]] copies this into =xmobarrc= with my current base16 color scheme. This also depends on =Inconsolata= and =Symbols Nerd Font=.
|
||||
#+BEGIN_SRC haskell :tangle xmobarrc.mustache
|
||||
Config { font = "Inconsolata 18"
|
||||
Config { font = "Inconsolata 16"
|
||||
, additionalFonts = ["Symbols Nerd Font 14"]
|
||||
, border = NoBorder
|
||||
, bgColor = "#{{base00-hex}}"
|
||||
|
@ -763,11 +763,15 @@ Config { font = "Inconsolata 18"
|
|||
[ "-t", "<fc=#{{base0D-hex}}><fn=1>\xf0200</fn> <dev></fc>"] 1
|
||||
, Run Com "echo"
|
||||
[ "<fc=#{{base0E-hex}}><fn=1>\xea77</fn> st</fc>"] "syncthing" 0
|
||||
, Run Com "echo"
|
||||
[ "<fn=1>\xeb5c</fn> "] "currentthemesymbol" 0
|
||||
, Run Com "cat"
|
||||
[ "/home/emmet/.currenttheme"] "currenttheme" 0
|
||||
, Run Memory [ "-t", "<fc=#{{base08-hex}}><fn=1>\xf035b</fn> <usedratio>% (<used> GB)</fc>", "-d", "1", "--", "--scale", "1024"] 20
|
||||
]
|
||||
, sepChar = "%"
|
||||
, alignSep = "}{"
|
||||
, template = " %battery% %bright%<action=`xdotool key Super_L+y`>%default:Master%</action>%memory%}%XMonadLog%{<action=`librewolf localhost:8384`>%syncthing%</action> <action='networkmanager_dmenu'>%dynnetwork%</action><action=`xdotool key Super_L+c`>%date%</action> "
|
||||
, template = " %battery% %bright%<action=`xdotool key Super_L+y`>%default:Master%</action>%memory% %currentthemesymbol%%currenttheme%}%XMonadLog%{<action=`librewolf localhost:8384`>%syncthing%</action> <action='networkmanager_dmenu'>%dynnetwork%</action><action=`xdotool key Super_L+c`>%date%</action> "
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue