xmobar: add stalonetray

This commit is contained in:
Dave Gallant
2020-08-30 17:33:56 -04:00
parent 9c07c29594
commit a977cdd5d1
4 changed files with 29 additions and 18 deletions

View File

@@ -43,6 +43,7 @@
nodejs-14_x
openvpn
packer
pfetch
pinentry-curses
postman
python38
@@ -53,8 +54,8 @@
shfmt
spotify
starship
terraform_0_13
terraform-ls
terraform_0_13
tflint
tmux
tree
@@ -79,13 +80,14 @@
# desktop environments
bspwm
polybar
sxhkd
pavucontrol
xmonad-with-packages
haskellPackages.xmobar
haskellPackages.xmonad-extras
haskellPackages.xmonad-contrib
haskellPackages.xmonad-extras
pavucontrol
polybar
stalonetray
sxhkd
xmonad-with-packages
## aws
awscli2
@@ -165,6 +167,7 @@
eval "$(_RFD_COMPLETE=source_zsh rfd)"
eval "$(starship init zsh)"
setopt noincappendhistory
pfetch
'';
shellAliases = {

View File

@@ -11,7 +11,7 @@ Config {
-- layout
, sepChar = "%" -- delineator between plugin names and straight text
, alignSep = "}{" -- separator between left-right alignment
, template = "%UnsafeStdinReader% | %battery% | %multicpu% | %coretemp% | %memory% | %dynnetwork% }{ %date% "
, template = "%UnsafeStdinReader% | %date% | %battery% | %multicpu% | %memory% | %dynnetwork% "
-- general behavior
, lowerOnStart = True -- send to bottom of window stack on start
@@ -47,7 +47,7 @@ Config {
] 10
-- cpu activity monitor
, Run MultiCpu [ "--template" , "Cpu: <total0>%|<total1>%"
, Run MultiCpu [ "--template" , "Cpu: <total>%"
, "--Low" , "50" -- units: %
, "--High" , "85" -- units: %
, "--low" , "darkgreen"
@@ -55,15 +55,6 @@ Config {
, "--high" , "darkred"
] 10
-- cpu core temperature monitor
, Run CoreTemp [ "--template" , "Temp: <core0>°C|<core1>°C"
, "--Low" , "70" -- units: °C
, "--High" , "80" -- units: °C
, "--low" , "darkgreen"
, "--normal" , "darkorange"
, "--high" , "darkred"
] 50
-- memory usage monitor
, Run Memory [ "--template" ,"Mem: <usedratio>%"
, "--Low" , "20" -- units: %

16
.stalonetrayrc Normal file
View File

@@ -0,0 +1,16 @@
decorations none
transparent false
dockapp_mode none
geometry 5x1-0+0
max_geometry 5x1-325-10
background "#000000"
kludges force_icons_size
grow_gravity NE
icon_gravity NE
icon_size 12
sticky true
#window_strut none
window_type dock
window_layer bottom
#no_shrink false
skip_taskbar true

View File

@@ -310,8 +310,9 @@ myLogHook h = dynamicLogWithPP $ xmobarPP
myStartupHook = do
spawnOnce "dunst &"
spawnOnce "feh --bg-fill ~/Pictures/Wallpapers/laughingman.jpg"
spawnOnce "picom --config ~/.config/compton.conf -b"
spawnOnce "if xinput list | grep -qi 'mouse'; then xmodmap -e 'pointer = 3 2 1 ';fi" -- flip mouse buttons
spawnOnce "picom --config ~/.config/compton.conf -b"
spawnOnce "stalonetray &"
------------------------------------------------------------------------
-- Now run xmonad with all the defaults we set up.