mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-24 03:50:24 +10:00
Playing with xmobar
This commit is contained in:
2
.bashrc
2
.bashrc
@@ -188,6 +188,8 @@ alias config="/usr/bin/git --git-dir=$HOME/dotfiles --work-tree=$HOME"
|
|||||||
# termbin
|
# termbin
|
||||||
alias tb="nc termbin.com 9999"
|
alias tb="nc termbin.com 9999"
|
||||||
|
|
||||||
|
alias wp="pacwall -b '#292d3e' -e '#82aaff' -d '#c792ea' -p '#c2e88d' -f '#ffcb6b' -u '#f07178' -s '#43475866'"
|
||||||
|
|
||||||
### SET VI MODE IN BASH SHELL
|
### SET VI MODE IN BASH SHELL
|
||||||
set -o vi
|
set -o vi
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,13 @@
|
|||||||
-- install xmobar with these flags: --flags="with_alsa" --flags="with_mpd" --flags="with_xft" OR --flags="all_extensions"
|
-- install xmobar with these flags: --flags="with_alsa" --flags="with_mpd" --flags="with_xft" OR --flags="all_extensions"
|
||||||
-- you can find weather location codes here: http://weather.noaa.gov/index.html
|
-- you can find weather location codes here: http://weather.noaa.gov/index.html
|
||||||
|
|
||||||
Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=true"
|
Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=true"
|
||||||
, additionalFonts = [ "xft:FontAwesome:pixelsize=13", "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=true" ]
|
, additionalFonts = [ "xft:Mononoki Nerd Font:pixelsize=11:antialias=true:hinting=true"
|
||||||
|
, "xft:Mononoki Nerd Font:pixelsize=16:antialias=true:hinting=true"
|
||||||
|
, "xft:FontAwesome:pixelsize=13"
|
||||||
|
]
|
||||||
, bgColor = "#292d3e"
|
, bgColor = "#292d3e"
|
||||||
, fgColor = "#B45BCF"
|
, fgColor = "#f07178"
|
||||||
, position = Static { xpos = 0 , ypos = 0, width = 1920, height = 24 }
|
, position = Static { xpos = 0 , ypos = 0, width = 1920, height = 24 }
|
||||||
, lowerOnStart = True
|
, lowerOnStart = True
|
||||||
, hideOnStart = False
|
, hideOnStart = False
|
||||||
@@ -14,25 +17,25 @@ Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=t
|
|||||||
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
|
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
|
||||||
, commands = [
|
, commands = [
|
||||||
-- Time and date
|
-- Time and date
|
||||||
Run Date "\xf133 %b %d %Y (%H:%M)" "date" 50
|
Run Date "<fn=1>\xf133</fn> %b %d %Y (%H:%M)" "date" 50
|
||||||
-- Network up and down
|
-- Network up and down
|
||||||
, Run Network "enp6s0" ["-t", "\xf0aa <rx>kb \xf0ab <tx>kb"] 20
|
, Run Network "enp6s0" ["-t", "<fn=1>\xf0aa</fn> <rx>kb <fn=1>\xf0ab</fn> <tx>kb"] 20
|
||||||
-- Cpu usage in percent
|
-- Cpu usage in percent
|
||||||
, Run Cpu ["-t", "\xf108 cpu: (<total>%)","-H","50","--high","red"] 20
|
, Run Cpu ["-t", "<fn=1>\xf108</fn> cpu: (<total>%)","-H","50","--high","red"] 20
|
||||||
-- Ram used number and percent
|
-- Ram used number and percent
|
||||||
, Run Memory ["-t", "\xf233 mem: <used>M (<usedratio>%)"] 20
|
, Run Memory ["-t", "<fn=1>\xf233</fn> mem: <used>M (<usedratio>%)"] 20
|
||||||
-- Disk space free
|
-- Disk space free
|
||||||
, Run DiskU [("/", "\xf0c7 hdd: <free> free")] [] 60
|
, Run DiskU [("/", "<fn=1>\xf0c7</fn> hdd: <free> free")] [] 60
|
||||||
-- Runs custom script to check for pacman updates.
|
-- Runs custom script to check for pacman updates.
|
||||||
-- This script is in my dotfiles repo in .local/bin.
|
-- This script is in my dotfiles repo in .local/bin.
|
||||||
, Run Com "pacupdate" [] "" 36000
|
, Run Com "pacupdate" [] "" 36000
|
||||||
-- Runs a standard shell command 'uname -r' to get kernel version
|
-- Runs a standard shell command 'uname -r' to get kernel version
|
||||||
, Run Com "uname" ["-r"] "" 36000
|
, Run Com "uname" ["-r"] "" 3600
|
||||||
-- Prints out the left side items such as workspaces, layout, etc.
|
-- Prints out the left side items such as workspaces, layout, etc.
|
||||||
-- The workspaces are 'clickable' in my configs.
|
-- The workspaces are 'clickable' in my configs.
|
||||||
, Run UnsafeStdinReader
|
, Run UnsafeStdinReader
|
||||||
]
|
]
|
||||||
, sepChar = "%"
|
, sepChar = "%"
|
||||||
, alignSep = "}{"
|
, alignSep = "}{"
|
||||||
, template = " <icon=haskell_20.xpm/> <fc=#666666>|</fc> %UnsafeStdinReader% }{ <fc=#b3afc2> %uname% </fc><fc=#666666>| </fc><fc=#FFB86C>%cpu% </fc><fc=#666666>| </fc><fc=#FF5555>%memory% </fc><fc=#666666>| </fc><fc=#82AAFF>%disku% </fc><fc=#666666>| </fc><fc=#c3e88d>%enp6s0% </fc><fc=#666666>| </fc><fc=#e1acff> %pacupdate%</fc><fc=#666666>| </fc><fc=#8BE9FD>%date%</fc> "
|
, template = " <icon=haskell_20.xpm/> <fc=#666666> |</fc> %UnsafeStdinReader% }{ <fc=#666666><fn=2>|</fn> </fc><fc=#b3afc2><fn=1></fn> %uname% </fc><fc=#666666> <fn=2>|</fn></fc> <fc=#FFB86C> %cpu% </fc><fc=#666666> <fn=2>|</fn></fc> <fc=#FF5555> %memory% </fc><fc=#666666> <fn=2>|</fn></fc> <fc=#82AAFF> %disku% </fc><fc=#666666> <fn=2>|</fn></fc> <fc=#c3e88d> %enp6s0% </fc><fc=#666666> <fn=2>|</fn></fc> <fc=#e1acff><fn=1></fn> %pacupdate%</fc><fc=#666666> <fn=2>|</fn></fc> <fc=#8BE9FD> %date% </fc>"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,10 +2,13 @@
|
|||||||
-- install xmobar with these flags: --flags="with_alsa" --flags="with_mpd" --flags="with_xft" OR --flags="all_extensions"
|
-- install xmobar with these flags: --flags="with_alsa" --flags="with_mpd" --flags="with_xft" OR --flags="all_extensions"
|
||||||
-- you can find weather location codes here: http://weather.noaa.gov/index.html
|
-- you can find weather location codes here: http://weather.noaa.gov/index.html
|
||||||
|
|
||||||
Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=true"
|
Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=true"
|
||||||
, additionalFonts = [ "xft:FontAwesome:pixelsize=13", "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=true" ]
|
, additionalFonts = [ "xft:Mononoki Nerd Font:pixelsize=11:antialias=true:hinting=true"
|
||||||
|
, "xft:Mononoki Nerd Font:pixelsize=16:antialias=true:hinting=true"
|
||||||
|
, "xft:FontAwesome:pixelsize=13"
|
||||||
|
]
|
||||||
, bgColor = "#292d3e"
|
, bgColor = "#292d3e"
|
||||||
, fgColor = "#B45BCF"
|
, fgColor = "#f07178"
|
||||||
, position = Static { xpos = 3840 , ypos = 0, width = 1920, height = 24 }
|
, position = Static { xpos = 3840 , ypos = 0, width = 1920, height = 24 }
|
||||||
, lowerOnStart = True
|
, lowerOnStart = True
|
||||||
, hideOnStart = False
|
, hideOnStart = False
|
||||||
@@ -14,25 +17,25 @@ Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=t
|
|||||||
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
|
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
|
||||||
, commands = [
|
, commands = [
|
||||||
-- Time and date
|
-- Time and date
|
||||||
Run Date "\xf133 %b %d %Y (%H:%M)" "date" 50
|
Run Date "<fn=1>\xf133</fn> %b %d %Y - %H:%M " "date" 50
|
||||||
-- Network up and down
|
-- Network up and down
|
||||||
, Run Network "enp6s0" ["-t", "\xf0aa <rx>kb \xf0ab <tx>kb"] 20
|
, Run Network "enp6s0" ["-t", "<fn=1>\xf0aa</fn> <rx>kb <fn=1>\xf0ab</fn> <tx>kb"] 20
|
||||||
-- Cpu usage in percent
|
-- Cpu usage in percent
|
||||||
, Run Cpu ["-t", "\xf108 cpu: (<total>%)","-H","50","--high","red"] 20
|
, Run Cpu ["-t", "<fn=1>\xf108</fn> cpu: (<total>%)","-H","50","--high","red"] 20
|
||||||
-- Ram used number and percent
|
-- Ram used number and percent
|
||||||
, Run Memory ["-t", "\xf233 mem: <used>M (<usedratio>%)"] 20
|
, Run Memory ["-t", "<fn=1>\xf233</fn> mem: <used>M (<usedratio>%)"] 20
|
||||||
-- Disk space free
|
-- Disk space free
|
||||||
, Run DiskU [("/", "\xf0c7 hdd: <free> free")] [] 60
|
, Run DiskU [("/", "<fn=1>\xf0c7</fn> hdd: <free> free")] [] 60
|
||||||
-- Runs custom script to check for pacman updates.
|
-- Runs custom script to check for pacman updates.
|
||||||
-- This script is in my dotfiles repo in .local/bin.
|
-- This script is in my dotfiles repo in .local/bin.
|
||||||
, Run Com "pacupdate" [] "" 36000
|
, Run Com "pacupdate" [] "" 36000
|
||||||
-- Runs a standard shell command 'uname -r' to get kernel version
|
-- Runs a standard shell command 'uname -r' to get kernel version
|
||||||
, Run Com "uname" ["-r"] "" 36000
|
, Run Com "uname" ["-r"] "" 3600
|
||||||
-- Prints out the left side items such as workspaces, layout, etc.
|
-- Prints out the left side items such as workspaces, layout, etc.
|
||||||
-- The workspaces are 'clickable' in my configs.
|
-- The workspaces are 'clickable' in my configs.
|
||||||
, Run UnsafeStdinReader
|
, Run UnsafeStdinReader
|
||||||
]
|
]
|
||||||
, sepChar = "%"
|
, sepChar = "%"
|
||||||
, alignSep = "}{"
|
, alignSep = "}{"
|
||||||
, template = " <icon=haskell_20.xpm/> <fc=#666666>|</fc> %UnsafeStdinReader% }{ <fc=#b3afc2> %uname% </fc><fc=#666666>| </fc><fc=#FFB86C>%cpu% </fc><fc=#666666>| </fc><fc=#FF5555>%memory% </fc><fc=#666666>| </fc><fc=#82AAFF>%disku% </fc><fc=#666666>| </fc><fc=#c3e88d>%enp6s0% </fc><fc=#666666>| </fc><fc=#e1acff> %pacupdate%</fc><fc=#666666>| </fc><fc=#8BE9FD>%date%</fc> "
|
, template = " <icon=haskell_20.xpm/> <fc=#666666> |</fc> %UnsafeStdinReader% }{ <fc=#666666><fn=2>|</fn> </fc><fc=#b3afc2><fn=1></fn> %uname% </fc><fc=#666666> <fn=2>|</fn></fc> <fc=#FFB86C> %cpu% </fc><fc=#666666> <fn=2>|</fn></fc> <fc=#FF5555> %memory% </fc><fc=#666666> <fn=2>|</fn></fc> <fc=#82AAFF> %disku% </fc><fc=#666666> <fn=2>|</fn></fc> <fc=#c3e88d> %enp6s0% </fc><fc=#666666> <fn=2>|</fn></fc> <fc=#e1acff><fn=1></fn> %pacupdate%</fc><fc=#666666> <fn=2>|</fn></fc> <fc=#8BE9FD> %date% </fc>"
|
||||||
}
|
}
|
||||||
@@ -2,12 +2,13 @@
|
|||||||
-- install xmobar with these flags: --flags="with_alsa" --flags="with_mpd" --flags="with_xft" OR --flags="all_extensions"
|
-- install xmobar with these flags: --flags="with_alsa" --flags="with_mpd" --flags="with_xft" OR --flags="all_extensions"
|
||||||
-- you can find weather location codes here: http://weather.noaa.gov/index.html
|
-- you can find weather location codes here: http://weather.noaa.gov/index.html
|
||||||
|
|
||||||
Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=true"
|
Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=true"
|
||||||
, additionalFonts = [ "xft:FontAwesome:pixelsize=13"
|
, additionalFonts = [ "xft:Mononoki Nerd Font:pixelsize=11:antialias=true:hinting=true"
|
||||||
, "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=true"
|
, "xft:Mononoki Nerd Font:pixelsize=16:antialias=true:hinting=true"
|
||||||
|
, "xft:FontAwesome:pixelsize=13"
|
||||||
]
|
]
|
||||||
, bgColor = "#292d3e"
|
, bgColor = "#292d3e"
|
||||||
, fgColor = "#B45BCF"
|
, fgColor = "#f07178"
|
||||||
, position = Static { xpos = 1920 , ypos = 0, width = 1920, height = 24 }
|
, position = Static { xpos = 1920 , ypos = 0, width = 1920, height = 24 }
|
||||||
, lowerOnStart = True
|
, lowerOnStart = True
|
||||||
, hideOnStart = False
|
, hideOnStart = False
|
||||||
@@ -16,15 +17,15 @@ Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=t
|
|||||||
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
|
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
|
||||||
, commands = [
|
, commands = [
|
||||||
-- Time and date
|
-- Time and date
|
||||||
Run Date "\xf133 %b %d %Y (%H:%M)" "date" 50
|
Run Date "<fn=1>\xf133</fn> %b %d %Y - %H:%M " "date" 50
|
||||||
-- Network up and down
|
-- Network up and down
|
||||||
, Run Network "enp6s0" ["-t", "\xf0aa <rx>kb \xf0ab <tx>kb"] 20
|
, Run Network "enp6s0" ["-t", "<fn=1>\xf0aa</fn> <rx>kb <fn=1>\xf0ab</fn> <tx>kb"] 20
|
||||||
-- Cpu usage in percent
|
-- Cpu usage in percent
|
||||||
, Run Cpu ["-t", "\xf108 cpu: (<total>%)","-H","50","--high","red"] 20
|
, Run Cpu ["-t", "<fn=1>\xf108</fn> cpu: (<total>%)","-H","50","--high","red"] 20
|
||||||
-- Ram used number and percent
|
-- Ram used number and percent
|
||||||
, Run Memory ["-t", "\xf233 mem: <used>M (<usedratio>%)"] 20
|
, Run Memory ["-t", "<fn=1>\xf233</fn> mem: <used>M (<usedratio>%)"] 20
|
||||||
-- Disk space free
|
-- Disk space free
|
||||||
, Run DiskU [("/", "\xf0c7 hdd: <free> free")] [] 60
|
, Run DiskU [("/", "<fn=1>\xf0c7</fn> hdd: <free> free")] [] 60
|
||||||
-- Runs custom script to check for pacman updates.
|
-- Runs custom script to check for pacman updates.
|
||||||
-- This script is in my dotfiles repo in .local/bin.
|
-- This script is in my dotfiles repo in .local/bin.
|
||||||
, Run Com "pacupdate" [] "" 36000
|
, Run Com "pacupdate" [] "" 36000
|
||||||
@@ -38,5 +39,5 @@ Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=t
|
|||||||
]
|
]
|
||||||
, sepChar = "%"
|
, sepChar = "%"
|
||||||
, alignSep = "}{"
|
, alignSep = "}{"
|
||||||
, template = " <icon=haskell_20.xpm/> <fc=#666666>|</fc> %UnsafeStdinReader% }{ <fc=#666666>| </fc><fc=#b3afc2> %uname% </fc><fc=#666666>| </fc><fc=#FFB86C>%cpu% </fc><fc=#666666>| </fc><fc=#FF5555>%memory% </fc><fc=#666666>| </fc><fc=#82AAFF>%disku% </fc><fc=#666666>| </fc><fc=#c3e88d>%enp6s0% </fc><fc=#666666>| </fc><fc=#e1acff> %pacupdate%</fc><fc=#666666>| </fc><fc=#8BE9FD>%date% </fc><fc=#666666>|</fc>%trayerpad%"
|
, template = " <icon=haskell_20.xpm/> <fc=#666666> |</fc> %UnsafeStdinReader% }{ <fc=#666666><fn=2>|</fn> </fc><fc=#b3afc2><fn=1></fn> %uname% </fc><fc=#666666> <fn=2>|</fn></fc> <fc=#FFB86C> %cpu% </fc><fc=#666666> <fn=2>|</fn></fc> <fc=#FF5555> %memory% </fc><fc=#666666> <fn=2>|</fn></fc> <fc=#82AAFF> %disku% </fc><fc=#666666> <fn=2>|</fn></fc> <fc=#c3e88d> %enp6s0% </fc><fc=#666666> <fn=2>|</fn></fc> <fc=#e1acff><fn=1></fn> %pacupdate%</fc><fc=#666666> <fn=2>|</fn></fc> <fc=#8BE9FD> %date% </fc><fc=#666666><fn=2>|</fn></fc>%trayerpad%"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ import XMonad.Util.SpawnOnce
|
|||||||
-- in the config. Setting values for things like font, terminal and editor
|
-- in the config. Setting values for things like font, terminal and editor
|
||||||
-- means you only have to change the value here to make changes globally.
|
-- means you only have to change the value here to make changes globally.
|
||||||
myFont :: String
|
myFont :: String
|
||||||
myFont = "xft:Mononoki Nerd Font:bold:size=9"
|
myFont = "xft:Mononoki Nerd Font:bold:size=9:antialias=true:hinting=true"
|
||||||
|
|
||||||
myModMask :: KeyMask
|
myModMask :: KeyMask
|
||||||
myModMask = mod4Mask -- Sets modkey to super/windows key
|
myModMask = mod4Mask -- Sets modkey to super/windows key
|
||||||
@@ -103,8 +103,8 @@ myTerminal :: String
|
|||||||
myTerminal = "alacritty" -- Sets default terminal
|
myTerminal = "alacritty" -- Sets default terminal
|
||||||
|
|
||||||
myBrowser :: String
|
myBrowser :: String
|
||||||
myBrowser = myTerminal ++ " -e lynx " -- Sets lynx as browser for tree select
|
myBrowser = "qutebrowser " -- Sets firefox as browser for tree select
|
||||||
-- myBrowser = "firefox " -- Sets firefox as browser for tree select
|
-- myBrowser = myTerminal ++ " -e lynx " -- Sets lynx as browser for tree select
|
||||||
|
|
||||||
myEditor :: String
|
myEditor :: String
|
||||||
myEditor = "emacsclient -c -a emacs " -- Sets emacs as editor for tree select
|
myEditor = "emacsclient -c -a emacs " -- Sets emacs as editor for tree select
|
||||||
@@ -197,23 +197,18 @@ myApplications = [ ("Audacity", "audacity", "Graphical cross-platform audio eidt
|
|||||||
]
|
]
|
||||||
|
|
||||||
myBookmarks :: [(String, String, String)]
|
myBookmarks :: [(String, String, String)]
|
||||||
myBookmarks = [ ("Site Name", myBrowser ++ "https://www.distrotube.com", "Official website for DistroTube")
|
myBookmarks = [ ("DistroTube.com", myBrowser ++ "https://www.distrotube.com", "Official website for DistroTube")
|
||||||
, ("Site Name", myBrowser ++ "https://www.distrotube.com", "Official website for DistroTube")
|
, ("DistroWatch", myBrowser ++ "https://www.distrowatch.com", "DistroWatch Release Announcements")
|
||||||
, ("Site Name", myBrowser ++ "https://www.distrotube.com", "Official website for DistroTube")
|
, ("Arch Linux", myBrowser ++ "https://www.archlinux.org/", "Official website for Arch Linux")
|
||||||
, ("Site Name", myBrowser ++ "https://www.distrotube.com", "Official website for DistroTube")
|
, ("Arch User Repository", myBrowser ++ "https://aur.archlinux.org/", "The Arch User Repository AUR")
|
||||||
, ("Site Name", myBrowser ++ "https://www.distrotube.com", "Official website for DistroTube")
|
, ("Arch Wiki", myBrowser ++ "https://wiki.archlinux.org/", "The Arch Wiki")
|
||||||
, ("Site Name", myBrowser ++ "https://www.distrotube.com", "Official website for DistroTube")
|
, ("LBRY", myBrowser ++ "https://lbry.tv/@DistroTube:2", "DistroTube on LBRY")
|
||||||
, ("Site Name", myBrowser ++ "https://www.distrotube.com", "Official website for DistroTube")
|
, ("GitLab", myBrowser ++ "https://gitlab.com/dwt1", "GitLab Page for DistroTube")
|
||||||
, ("Site Name", myBrowser ++ "https://www.distrotube.com", "Official website for DistroTube")
|
, ("Patreon", myBrowser ++ "https://www.patreon.com/distrotube", "DT on Patreon")
|
||||||
, ("Site Name", myBrowser ++ "https://www.distrotube.com", "Official website for DistroTube")
|
, ("Diaspora", myBrowser ++ "https://diasp.org/stream", "DT on Diaspora")
|
||||||
, ("Site Name", myBrowser ++ "https://www.distrotube.com", "Official website for DistroTube")
|
, ("Mastodon", myBrowser ++ "https://mastodon.technology/web/accounts/85897", "DT on Mastodon")
|
||||||
, ("Site Name", myBrowser ++ "https://www.distrotube.com", "Official website for DistroTube")
|
, ("Reddit", myBrowser ++ "https://www.reddit.com/r/distrotube/", "r/DistroTube")
|
||||||
, ("Site Name", myBrowser ++ "https://www.distrotube.com", "Official website for DistroTube")
|
, ("YouTube", myBrowser ++ "https://www.youtube.com/c/DistroTube?view_as=subscriber", "DT on YouTube")
|
||||||
, ("Site Name", myBrowser ++ "https://www.distrotube.com", "Official website for DistroTube")
|
|
||||||
, ("Site Name", myBrowser ++ "https://www.distrotube.com", "Official website for DistroTube")
|
|
||||||
, ("Site Name", myBrowser ++ "https://www.distrotube.com", "Official website for DistroTube")
|
|
||||||
, ("Site Name", myBrowser ++ "https://www.distrotube.com", "Official website for DistroTube")
|
|
||||||
, ("Site Name", myBrowser ++ "https://www.distrotube.com", "Official website for DistroTube")
|
|
||||||
]
|
]
|
||||||
|
|
||||||
myConfigs :: [(String, String, String)]
|
myConfigs :: [(String, String, String)]
|
||||||
@@ -466,7 +461,7 @@ myWorkspaces = clickable . (map xmobarEscape)
|
|||||||
-- $ ["1", "2", "3", "4", "5", "6", "7", "8", "9"]
|
-- $ ["1", "2", "3", "4", "5", "6", "7", "8", "9"]
|
||||||
$ ["dev", "www", "sys", "doc", "vbox", "chat", "mus", "vid", "gfx"]
|
$ ["dev", "www", "sys", "doc", "vbox", "chat", "mus", "vid", "gfx"]
|
||||||
where
|
where
|
||||||
clickable l = [ "<action=xdotool key super+" ++ show (n) ++ ">" ++ "<fn=2>" ++ ws ++ "</fn>" ++ "</action>" |
|
clickable l = [ "<action=xdotool key super+" ++ show (n) ++ "> " ++ ws ++ " </action>" |
|
||||||
(i,ws) <- zip [1..9] l,
|
(i,ws) <- zip [1..9] l,
|
||||||
let n = i ]
|
let n = i ]
|
||||||
|
|
||||||
@@ -788,9 +783,9 @@ main = do
|
|||||||
, ppCurrent = xmobarColor "#c3e88d" "" . wrap "[" "]" -- Current workspace in xmobar
|
, ppCurrent = xmobarColor "#c3e88d" "" . wrap "[" "]" -- Current workspace in xmobar
|
||||||
, ppVisible = xmobarColor "#c3e88d" "" -- Visible but not current workspace
|
, ppVisible = xmobarColor "#c3e88d" "" -- Visible but not current workspace
|
||||||
, ppHidden = xmobarColor "#82AAFF" "" . wrap "*" "" -- Hidden workspaces in xmobar
|
, ppHidden = xmobarColor "#82AAFF" "" . wrap "*" "" -- Hidden workspaces in xmobar
|
||||||
, ppHiddenNoWindows = xmobarColor "#b3afc2" "" -- Hidden workspaces (no windows)
|
, ppHiddenNoWindows = xmobarColor "#c792ea" "" -- Hidden workspaces (no windows)
|
||||||
, ppTitle = xmobarColor "#ffffff" "" . shorten 60 -- Title of active window in xmobar
|
, ppTitle = xmobarColor "#b3afc2" "" . shorten 60 -- Title of active window in xmobar
|
||||||
, ppSep = "<fc=#666666> | </fc>" -- Separators in xmobar
|
, ppSep = "<fc=#666666> <fn=2>|</fn> </fc>" -- Separators in xmobar
|
||||||
, ppUrgent = xmobarColor "#C45500" "" . wrap "!" "!" -- Urgent workspace
|
, ppUrgent = xmobarColor "#C45500" "" . wrap "!" "!" -- Urgent workspace
|
||||||
, ppExtras = [windowCount] -- # of windows current workspace
|
, ppExtras = [windowCount] -- # of windows current workspace
|
||||||
, ppOrder = \(ws:l:t:ex) -> [ws,l]++ex++[t]
|
, ppOrder = \(ws:l:t:ex) -> [ws,l]++ex++[t]
|
||||||
|
|||||||
Reference in New Issue
Block a user