many updates from old desktop

This commit is contained in:
Solomon Laing 2022-06-21 17:27:10 +09:30
parent 2dde1fa097
commit 8e65a3b7e3
8 changed files with 47 additions and 374 deletions

View File

@ -6,7 +6,7 @@
offset = 0x19 offset = 0x19
padding = 2 padding = 2
horizontal_padding = 2 horizontal_padding = 2
font = Monospace 12 font = Fira Code 12
format = "<b>%s</b>\n%b" format = "<b>%s</b>\n%b"
[urgency_low] [urgency_low]

View File

@ -23,6 +23,10 @@ if [ "$HOST" == "archmetabox" ] ; then
xrandr --auto xrandr --auto
fi fi
if [ "$HOST" == "archdesktop" ] ; then
$HOME/.screenlayout/normal_3_screen.sh
fi
autostart="" autostart=""
for program in $autostart; do for program in $autostart; do

View File

@ -2,6 +2,7 @@ Config {
-- appearance -- appearance
font = "xft:Fira Code:size=12:antialias=true:hinting=true" font = "xft:Fira Code:size=12:antialias=true:hinting=true"
, additionalFonts = [ "xft:FiraCode Nerd Font:size=9:antialias=true:hinting=true" ]
, bgColor = "#282a36" , bgColor = "#282a36"
, fgColor = "#f8f8f2" , fgColor = "#f8f8f2"
, position = Top , position = Top
@ -12,7 +13,7 @@ Config {
-- layout -- layout
, sepChar = "%" -- delineator between plugin names and straight text , sepChar = "%" -- delineator between plugin names and straight text
, alignSep = "}{" -- separator between left-right alignment , alignSep = "}{" -- separator between left-right alignment
, template = " <action=`xdotool key super+a`><icon=haskell_20.xpm/></action> %cpu% %memory% %dynnetwork% } %UnsafeStdinReader% { %date% <fc=#6272a4>|</fc> %YPAD% <fc=#6272a4>|</fc> %updates% %trayerpad%" , template = " <action=`xdotool key super+a`><icon=haskell_20.xpm/></action> <fc=#bd93f9>%cpu% %memory%</fc> <action=`nm-connection-editor`>%network%</action> <action=`toggle-sink-mute`>%volume%</action> <fc=#6272a4>|</fc> %UnsafeStdinReader% }{ %keyboard% <fc=#6272a4>|</fc> %date% <fc=#6272a4>|</fc> %YPAD% <fc=#6272a4>|</fc> %updates% %trayerpad%"
-- general behavior -- general behavior
, lowerOnStart = True -- send to bottom of window stack on start , lowerOnStart = True -- send to bottom of window stack on start
@ -63,13 +64,13 @@ Config {
-- ] 10 -- ] 10
-- network activity monitor (dynamic interface resolution) -- network activity monitor (dynamic interface resolution)
, Run DynNetwork [ "--template" , "net: <tx>kB/s <rx>kB/s" -- , Run DynNetwork [ "--template" , "net: <tx>kB/s <rx>kB/s"
, "--Low" , "100000" -- units: B/s -- , "--Low" , "100000" -- units: B/s
, "--High" , "500000" -- units: B/s -- , "--High" , "500000" -- units: B/s
, "--low" , "#50fa7b" -- , "--low" , "#50fa7b"
, "--normal" , "#ffb86c" -- , "--normal" , "#ffb86c"
, "--high" , "#ff5555" -- , "--high" , "#ff5555"
] 10 -- ] 10
-- cpu activity monitor -- cpu activity monitor
, Run Cpu [ "--template" , "cpu: <total>%" , Run Cpu [ "--template" , "cpu: <total>%"
@ -92,7 +93,7 @@ Config {
-- time and date indicator -- time and date indicator
-- (%F = y-m-d date, %a = day of week, %T = h:m:s time) -- (%F = y-m-d date, %a = day of week, %T = h:m:s time)
, Run Date "%a %d %b %H:%M" "date" 10 , Run Date "<fc=#268bd2><fn=1>\xf073 </fn>%a %_d %b %Y</fc> <fc=#6272a4>|</fc> <fc=#2AA198><fn=1>\xf017 </fn>%H:%M:%S</fc>" "date" 10
-- keyboard layout indicator -- keyboard layout indicator
-- , Run Kbd [ ("us(dvorak)" , "DV") -- , Run Kbd [ ("us(dvorak)" , "DV")
@ -120,6 +121,15 @@ Config {
-- Script that dynamically adjusts xmobar padding depending on number of trayer icons. -- Script that dynamically adjusts xmobar padding depending on number of trayer icons.
, Run Com "/home/solomon/.config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20 , Run Com "/home/solomon/.config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20
-- Script that pulls network information and builds string to display
, Run Com "xmobar-status-net" [] "network" 5
-- Script that pulls keyboard layout and builds string to display
, Run Com "xmobar-status-keyboard" [] "keyboard" 20
-- Script that pulls volume related data and builds string to dislpay
, Run Com "xmobar-status-vol" [] "volume" 5
-- Prints out the left side items such as workspaces, layout, etc. -- Prints out the left side items such as workspaces, layout, etc.
, Run UnsafeStdinReader , Run UnsafeStdinReader

View File

@ -1,122 +0,0 @@
Config {
-- appearance
font = "xft:Fira Code:size=14:bold:antialias=true:hinting=true"
, bgColor = "#14071F"
, fgColor = "#646464"
, position = Top
, border = BottomB
, borderColor = "#646464"
, iconRoot = "/home/solomon/.xmonad/xpm/" -- default: "."
-- layout
, sepChar = "%" -- delineator between plugin names and straight text
, alignSep = "}{" -- separator between left-right alignment
, template = " <action=`xdotool key super+p`><icon=haskell_20.xpm/></action> <fc=#f3617a>%cpu%</fc> <fc=#805a9b>|</fc> <fc=#b262cd>%memory%</fc> <fc=#805a9b>|</fc> <fc=#706bc2>%dynnetwork%</fc> }\
\{ <fc=#ee9a00>%date%</fc> <fc=#805a9b>|</fc> <fc=#b55322>%YPAD%</fc> <fc=#805a9b>|</fc> <fc=#882410>%kbd%</fc> <fc=#805a9b>|</fc> <fc=#6e1a11>%uname%</fc> %trayerpad%"
}
-- , template = " <action=`xdotool key super+p`><icon=haskell_20.xpm/></action> <fc=#f3617a>%cpu%</fc> <fc=#805a9b>|</fc> <fc=#b262cd>%memory%</fc> <fc=#805a9b>|</fc> <fc=#706bc2>%dynnetwork%</fc> <fc=#805a9b>|</fc> %UnsafeStdinReader% }\
-- \{ <fc=#ee9a00>%date%</fc> <fc=#805a9b>|</fc> <fc=#b55322>%YPAD%</fc> <fc=#805a9b>|</fc> <fc=#882410>%kbd%</fc> <fc=#805a9b>|</fc> <fc=#6e1a11>%uname%</fc> %trayerpad%"
-- }
-- general behavior
, lowerOnStart = True -- send to bottom of window stack on start
, hideOnStart = False -- start with window unmapped (hidden)
, allDesktops = True -- show on all desktops
, overrideRedirect = True -- set the Override Redirect flag (Xlib)
, pickBroadest = False -- choose widest display (multi-monitor)
, persistent = True -- enable/disable hiding (True = disabled)
-- plugins
-- Numbers can be automatically colored according to their value. xmobar
-- decides color based on a three-tier/two-cutoff system, controlled by
-- command options:
-- --Low sets the low cutoff
-- --High sets the high cutoff
--
-- --low sets the color below --Low cutoff
-- --normal sets the color between --Low and --High cutoffs
-- --High sets the color above --High cutoff
--
-- The --template option controls how the plugin is displayed. Text
-- color can be set by enclosing in <fc></fc> tags. For more details
-- see http://projects.haskell.org/xmobar/#system-monitor-plugins.
, commands =
-- weather monitor
[ Run Weather "YPAD" ["--template" , "<station>: <tempC>°C"
, "--Low" , "10"
, "--High" , "25"
, "--normal" , "#95C05D"
, "--high" , "red"
, "--low" , "lightblue"
] 36000
-- -- network activity monitor
-- , Run Network "enp33s0" [ "--template" , "eth: <icon=net_up_20.xpm/><tx>kB/s <icon=net_down_20.xpm/><rx>kB/s"
-- , "--Low" , "100000" -- units: B/s
-- , "--High" , "500000" -- units: B/s
-- , "--low" , "#95C05D"
-- , "--normal" , "#ee9a00"
-- , "--high" , "#882410"
-- ] 10
-- , Run Network "wlp36s0" [ "--template" , "wlan: <icon=net_up_20.xpm/><tx>kB/s <icon=net_down_20.xpm/><rx>kB/s"
-- , "--Low" , "100000" -- units: B/s
-- , "--High" , "500000" -- units: B/s
-- , "--low" , "#95C05D"
-- , "--normal" , "#ee9a00"
-- , "--high" , "#882410"
-- ] 10
-- network activity monitor (dynamic interface resolution)
, Run DynNetwork [ "--template" , "<dev>: <icon=net_up_20.xpm/><tx>kB/s <icon=net_down_20.xpm/><rx>kB/s"
, "--Low" , "100000" -- units: B/s
, "--High" , "500000" -- units: B/s
, "--low" , "#95C05D"
, "--normal" , "#ee9a00"
, "--high" , "#882410"
] 10
-- cpu activity monitor
, Run Cpu [ "--template" , "cpu: <total>%"
, "--Low" , "30" -- units: %
, "--High" , "60" -- units: %
, "--low" , "#95C05D"
, "--normal" , "#ee9a00"
, "--high" , "#882410"
] 10
-- memory usage monitor
, Run Memory [ "--template" ,"mem: <usedratio>% (<used>Mb)"
, "--Low" , "20" -- units: %
, "--High" , "90" -- units: %
, "--low" , "#95C05D"
, "--normal" , "#ee9a00"
, "--high" , "#882410"
] 10
-- time and date indicator
-- (%F = y-m-d date, %a = day of week, %T = h:m:s time)
, Run Date "%a %d %b %Y %H:%M:%S" "date" 10
-- keyboard layout indicator
, Run Kbd [ ("us(dvorak)" , "DV")
, ("us" , "US")
]
-- Runs a standard shell command 'uname -r' to get kernel version
, Run Com "uname" ["-r"] "" 3600
-- Runs a simple script that counts the number of system updates to apply
, Run Com "/home/solomon/.config/xmobar/count-updates.sh" [] "updates" 36000
-- Script that dynamically adjusts xmobar padding depending on nuf trayer icons.
, Run Com "/home/solomon/.config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20
-- Prints out the left side items such as workspaces, layout, etc.
-- The workspaces are 'clickable' in my configs.
--, Run UnsafeStdinReader
]
}

View File

@ -1,119 +0,0 @@
Config {
-- appearance
font = "xft:Fira Code:size=14:bold:antialias=true:hinting=true"
, bgColor = "#14071F"
, fgColor = "#646464"
, position = Top
, border = BottomB
, borderColor = "#646464"
, iconRoot = "/home/solomon/.xmonad/xpm/" -- default: "."
-- layout
, sepChar = "%" -- delineator between plugin names and straight text
, alignSep = "}{" -- separator between left-right alignment
, template = " <action=`xdotool key super+p`><icon=haskell_20.xpm/></action> <fc=#f3617a>%cpu%</fc> <fc=#805a9b>|</fc> <fc=#b262cd>%memory%</fc> <fc=#805a9b>|</fc> <fc=#706bc2>%dynnetwork%</fc> }\
\{ <fc=#ee9a00>%date%</fc> <fc=#805a9b>|</fc> <fc=#b55322>%YPAD%</fc> <fc=#805a9b>|</fc> <fc=#882410>%kbd%</fc> <fc=#805a9b>|</fc> <fc=#6e1a11>%uname%</fc> %trayerpad%"
}
-- , template = " <action=`xdotool key super+p`><icon=haskell_20.xpm/></action> <fc=#f3617a>%cpu%</fc> <fc=#805a9b>|</fc> <fc=#b262cd>%memory%</fc> <fc=#805a9b>|</fc> <fc=#706bc2>%dynnetwork%</fc> <fc=#805a9b>|</fc> %UnsafeStdinReader% }\
-- \{ <fc=#ee9a00>%date%</fc> <fc=#805a9b>|</fc> <fc=#b55322>%YPAD%</fc> <fc=#805a9b>|</fc> <fc=#882410>%kbd%</fc> <fc=#805a9b>|</fc> <fc=#6e1a11>%uname%</fc> %trayerpad%"
-- }
-- general behavior
, lowerOnStart = True -- send to bottom of window stack on start
, hideOnStart = False -- start with window unmapped (hidden)
, allDesktops = True -- show on all desktops
, overrideRedirect = True -- set the Override Redirect flag (Xlib)
, pickBroadest = False -- choose widest display (multi-monitor)
, persistent = True -- enable/disable hiding (True = disabled)
-- plugins
-- Numbers can be automatically colored according to their value. xmobar
-- decides color based on a three-tier/two-cutoff system, controlled by
-- command options:
-- --Low sets the low cutoff
-- --High sets the high cutoff
--
-- --low sets the color below --Low cutoff
-- --normal sets the color between --Low and --High cutoffs
-- --High sets the color above --High cutoff
--
-- The --template option controls how the plugin is displayed. Text
-- color can be set by enclosing in <fc></fc> tags. For more details
-- see http://projects.haskell.org/xmobar/#system-monitor-plugins.
, commands =
-- weather monitor
[ Run Weather "YPAD" ["--template" , "<station>: <tempC>°C"
, "--Low" , "10"
, "--High" , "25"
, "--normal" , "#95C05D"
, "--high" , "red"
, "--low" , "lightblue"
] 36000
-- -- network activity monitor
-- , Run Network "enp33s0" [ "--template" , "eth: <icon=net_up_20.xpm/><tx>kB/s <icon=net_down_20.xpm/><rx>kB/s"
-- , "--Low" , "100000" -- units: B/s
-- , "--High" , "500000" -- units: B/s
-- , "--low" , "#95C05D"
-- , "--normal" , "#ee9a00"
-- , "--high" , "#882410"
-- ] 10
-- , Run Network "wlp36s0" [ "--template" , "wlan: <icon=net_up_20.xpm/><tx>kB/s <icon=net_down_20.xpm/><rx>kB/s"
-- , "--Low" , "100000" -- units: B/s
-- , "--High" , "500000" -- units: B/s
-- , "--low" , "#95C05D"
-- , "--normal" , "#ee9a00"
-- , "--high" , "#882410"
-- ] 10
-- network activity monitor (dynamic interface resolution)
, Run DynNetwork [ "--template" , "<dev>: <icon=net_up_20.xpm/><tx>kB/s <icon=net_down_20.xpm/><rx>kB/s"
, "--Low" , "100000" -- units: B/s
, "--High" , "500000" -- units: B/s
, "--low" , "#95C05D"
, "--normal" , "#ee9a00"
, "--high" , "#882410"
] 10
-- cpu activity monitor
, Run Cpu [ "--template" , "cpu: <total>%"
, "--Low" , "30" -- units: %
, "--High" , "60" -- units: %
, "--low" , "#95C05D"
, "--normal" , "#ee9a00"
, "--high" , "#882410"
] 10
-- memory usage monitor
, Run Memory [ "--template" ,"mem: <usedratio>% (<used>Mb)"
, "--Low" , "20" -- units: %
, "--High" , "90" -- units: %
, "--low" , "#95C05D"
, "--normal" , "#ee9a00"
, "--high" , "#882410"
] 10
-- time and date indicator
-- (%F = y-m-d date, %a = day of week, %T = h:m:s time)
, Run Date "%a %d %b %Y %H:%M:%S" "date" 10
-- keyboard layout indicator
, Run Kbd [ ("us(dvorak)" , "DV")
, ("us" , "US")
]
-- Runs a standard shell command 'uname -r' to get kernel version
, Run Com "uname" ["-r"] "" 3600
-- Script that dynamically adjusts xmobar padding depending on number of trayer icons.
, Run Com "/home/solomon/.config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20
-- Prints out the left side items such as workspaces, layout, etc.
-- The workspaces are 'clickable' in my configs.
--, Run UnsafeStdinReader
]
}

View File

@ -1,119 +0,0 @@
Config {
-- appearance
font = "xft:Fira Code:size=14:bold:antialias=true:hinting=true"
, bgColor = "#14071F"
, fgColor = "#646464"
, position = Top
, border = BottomB
, borderColor = "#646464"
, iconRoot = "/home/solomon/.xmonad/xpm/" -- default: "."
-- layout
, sepChar = "%" -- delineator between plugin names and straight text
, alignSep = "}{" -- separator between left-right alignment
, template = " <action=`xdotool key super+p`><icon=haskell_20.xpm/></action> <fc=#f3617a>%cpu%</fc> <fc=#805a9b>|</fc> <fc=#b262cd>%memory%</fc> <fc=#805a9b>|</fc> <fc=#706bc2>%dynnetwork%</fc> }\
\{ <fc=#ee9a00>%date%</fc> <fc=#805a9b>|</fc> <fc=#b55322>%YPAD%</fc> <fc=#805a9b>|</fc> <fc=#882410>%kbd%</fc> <fc=#805a9b>|</fc> <fc=#6e1a11>%uname%</fc> %trayerpad%"
}
-- , template = " <action=`xdotool key super+p`><icon=haskell_20.xpm/></action> <fc=#f3617a>%cpu%</fc> <fc=#805a9b>|</fc> <fc=#b262cd>%memory%</fc> <fc=#805a9b>|</fc> <fc=#706bc2>%dynnetwork%</fc> <fc=#805a9b>|</fc> %UnsafeStdinReader% }\
-- \{ <fc=#ee9a00>%date%</fc> <fc=#805a9b>|</fc> <fc=#b55322>%YPAD%</fc> <fc=#805a9b>|</fc> <fc=#882410>%kbd%</fc> <fc=#805a9b>|</fc> <fc=#6e1a11>%uname%</fc> %trayerpad%"
-- }
-- general behavior
, lowerOnStart = True -- send to bottom of window stack on start
, hideOnStart = False -- start with window unmapped (hidden)
, allDesktops = True -- show on all desktops
, overrideRedirect = True -- set the Override Redirect flag (Xlib)
, pickBroadest = False -- choose widest display (multi-monitor)
, persistent = True -- enable/disable hiding (True = disabled)
-- plugins
-- Numbers can be automatically colored according to their value. xmobar
-- decides color based on a three-tier/two-cutoff system, controlled by
-- command options:
-- --Low sets the low cutoff
-- --High sets the high cutoff
--
-- --low sets the color below --Low cutoff
-- --normal sets the color between --Low and --High cutoffs
-- --High sets the color above --High cutoff
--
-- The --template option controls how the plugin is displayed. Text
-- color can be set by enclosing in <fc></fc> tags. For more details
-- see http://projects.haskell.org/xmobar/#system-monitor-plugins.
, commands =
-- weather monitor
[ Run Weather "YPAD" ["--template" , "<station>: <tempC>°C"
, "--Low" , "10"
, "--High" , "25"
, "--normal" , "#95C05D"
, "--high" , "red"
, "--low" , "lightblue"
] 36000
-- -- network activity monitor
-- , Run Network "enp33s0" [ "--template" , "eth: <icon=net_up_20.xpm/><tx>kB/s <icon=net_down_20.xpm/><rx>kB/s"
-- , "--Low" , "100000" -- units: B/s
-- , "--High" , "500000" -- units: B/s
-- , "--low" , "#95C05D"
-- , "--normal" , "#ee9a00"
-- , "--high" , "#882410"
-- ] 10
-- , Run Network "wlp36s0" [ "--template" , "wlan: <icon=net_up_20.xpm/><tx>kB/s <icon=net_down_20.xpm/><rx>kB/s"
-- , "--Low" , "100000" -- units: B/s
-- , "--High" , "500000" -- units: B/s
-- , "--low" , "#95C05D"
-- , "--normal" , "#ee9a00"
-- , "--high" , "#882410"
-- ] 10
-- network activity monitor (dynamic interface resolution)
, Run DynNetwork [ "--template" , "<dev>: <icon=net_up_20.xpm/><tx>kB/s <icon=net_down_20.xpm/><rx>kB/s"
, "--Low" , "100000" -- units: B/s
, "--High" , "500000" -- units: B/s
, "--low" , "#95C05D"
, "--normal" , "#ee9a00"
, "--high" , "#882410"
] 10
-- cpu activity monitor
, Run Cpu [ "--template" , "cpu: <total>%"
, "--Low" , "30" -- units: %
, "--High" , "60" -- units: %
, "--low" , "#95C05D"
, "--normal" , "#ee9a00"
, "--high" , "#882410"
] 10
-- memory usage monitor
, Run Memory [ "--template" ,"mem: <usedratio>% (<used>Mb)"
, "--Low" , "20" -- units: %
, "--High" , "90" -- units: %
, "--low" , "#95C05D"
, "--normal" , "#ee9a00"
, "--high" , "#882410"
] 10
-- time and date indicator
-- (%F = y-m-d date, %a = day of week, %T = h:m:s time)
, Run Date "%a %d %b %Y %H:%M:%S" "date" 10
-- keyboard layout indicator
, Run Kbd [ ("us(dvorak)" , "DV")
, ("us" , "US")
]
-- Runs a standard shell command 'uname -r' to get kernel version
, Run Com "uname" ["-r"] "" 3600
-- Script that dynamically adjusts xmobar padding depending on number of trayer icons.
, Run Com "/home/solomon/.config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20
-- Prints out the left side items such as workspaces, layout, etc.
-- The workspaces are 'clickable' in my configs.
--, Run UnsafeStdinReader
]
}

View File

@ -70,7 +70,7 @@ import XMonad.Util.SpawnOnce
-- A simple way to switch between desktop and laptop related things -- A simple way to switch between desktop and laptop related things
isLaptop :: Bool isLaptop :: Bool
isLaptop = True isLaptop = False
--THEME --THEME
@ -561,7 +561,7 @@ myLogHook = fadeInactiveLogHook fadeAmount
myStartupHook = do myStartupHook = do
-- System apps also in .xprofile -- System apps also in .xprofile
spawnOnce "setxkbmap dvorak &" spawnOnce "setxkbmap dvorak &"
spawnOnce "nitrogen --restore &" spawnOnce "$HOME/.screenlayout/normal_3_screens.sh"
spawnOnce "picom --experimental-backend &" spawnOnce "picom --experimental-backend &"
spawnOnce "numlockx" spawnOnce "numlockx"
spawnOnce "xsetroot -cursor_name left_ptr" spawnOnce "xsetroot -cursor_name left_ptr"

19
.xprofile.tmpl Normal file
View File

@ -0,0 +1,19 @@
# keyboard layout
setxkbmap dvorak &
# wallpaper
nitrogen --restore &
# compositor
picom --experimental-backend &
# numlock
numlockx
# cursor
xsetroot -cursor_name left_ptr
# screenlayout
#/home/solomon/.screenlayout/normal.sh
# or
#/home/solomon/.screenlayout/normal_3_screens.sh