mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-22 19:10:24 +10:00
Working on polybar for use with Xmonad.
This commit is contained in:
@@ -500,7 +500,7 @@ font-2 = "Font Awesome 6 Free:style=Regular:pixelsize=8;1"
|
|||||||
font-3 = "Font Awesome 6 Free:style=Solid:pixelsize=8;1"
|
font-3 = "Font Awesome 6 Free:style=Solid:pixelsize=8;1"
|
||||||
font-4 = "Font Awesome 6 Brands:pixelsize=8;1"
|
font-4 = "Font Awesome 6 Brands:pixelsize=8;1"
|
||||||
|
|
||||||
modules-left = ewmh
|
modules-left = ewmh xwindow
|
||||||
modules-center =
|
modules-center =
|
||||||
modules-right = kernel networkspeed memory2 cpu2 pavolume arch-aur-updates date
|
modules-right = kernel networkspeed memory2 cpu2 pavolume arch-aur-updates date
|
||||||
|
|
||||||
@@ -1074,24 +1074,31 @@ label-monitor = %name%
|
|||||||
label-active = %name%
|
label-active = %name%
|
||||||
label-active-foreground = ${colors.foreground}
|
label-active-foreground = ${colors.foreground}
|
||||||
label-active-background = ${colors.background}
|
label-active-background = ${colors.background}
|
||||||
label-active-underline= #6790eb
|
|
||||||
label-active-padding = 1
|
label-active-padding = 1
|
||||||
|
label-active-underline = ${colors.color5}
|
||||||
|
label-active-margin = 2
|
||||||
|
|
||||||
label-occupied = %name%
|
label-occupied = %name%
|
||||||
label-occupied-background = ${colors.background}
|
label-occupied-background = ${colors.background}
|
||||||
label-occupied-padding = 1
|
label-occupied-padding = 1
|
||||||
|
label-occupied-underline = ${colors.color12}
|
||||||
|
label-occupied-margin = 2
|
||||||
|
|
||||||
label-urgent = %name%
|
label-urgent = %name%
|
||||||
label-urgent-foreground = ${colors.foreground}
|
label-urgent-foreground = ${colors.foreground}
|
||||||
label-urgent-background = ${colors.alert}
|
label-urgent-background = ${colors.alert}
|
||||||
label-urgent-underline = ${colors.alert}
|
label-urgent-underline = ${colors.alert}
|
||||||
label-urgent-padding = 1
|
label-urgent-padding = 1
|
||||||
|
label-urgent-margin = 2
|
||||||
|
|
||||||
label-empty = %name%
|
label-empty = %name%
|
||||||
label-empty-foreground = ${colors.foreground}
|
label-empty-foreground = ${colors.foreground}
|
||||||
label-empty-padding = 1
|
label-empty-padding = 1
|
||||||
|
label-empty-margin = 2
|
||||||
|
|
||||||
format-foreground = ${colors.foreground}
|
format-foreground = ${colors.foreground}
|
||||||
format-background = ${colors.background}
|
format-background = ${colors.background}
|
||||||
|
;;format-underline = ${colors.color14}
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@@ -1710,11 +1717,12 @@ type = internal/xwindow
|
|||||||
label = %title%
|
label = %title%
|
||||||
label-maxlen = 50
|
label-maxlen = 50
|
||||||
|
|
||||||
format-prefix = " "
|
format-prefix = "* "
|
||||||
format-prefix-underline = #292d3e
|
format-suffix = " *"
|
||||||
format-underline = #e1acff
|
format-foreground = ${colors.color10}
|
||||||
format-foreground = #e1acff
|
|
||||||
format-background = ${colors.background}
|
format-background = ${colors.background}
|
||||||
|
format-margin = 2
|
||||||
|
format-padding = 0
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# vim:ft=dosini
|
# vim:ft=dosini
|
||||||
|
|||||||
@@ -532,7 +532,7 @@ I have made my workspaces in xmobar "clickable." Clickable workspaces means the
|
|||||||
#+begin_src haskell
|
#+begin_src haskell
|
||||||
-- myWorkspaces = [" 1 ", " 2 ", " 3 ", " 4 ", " 5 ", " 6 ", " 7 ", " 8 ", " 9 "]
|
-- myWorkspaces = [" 1 ", " 2 ", " 3 ", " 4 ", " 5 ", " 6 ", " 7 ", " 8 ", " 9 "]
|
||||||
-- myWorkspaces = [" dev ", " www ", " sys ", " doc ", " vbox ", " chat ", " mus ", " vid ", " gfx "]
|
-- myWorkspaces = [" dev ", " www ", " sys ", " doc ", " vbox ", " chat ", " mus ", " vid ", " gfx "]
|
||||||
myWorkspaces = [" 1 : dev ", " 2 : www ", " 3 : sys ", " 4 : doc ", " 5 : vbox ", " 6 : chat ", " 7 : mus ", " 8 : vid ", " 9 : gfx "]
|
myWorkspaces = ["1: dev", "2: www", "3: sys", "4: doc", "5: vbox", "6: chat", "7: mus", "8: vid", "9: gfx"]
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Managehook
|
* Managehook
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- Base
|
-- Base
|
||||||
import XMonad
|
import XMonad
|
||||||
import System.Directory
|
import System.Directory
|
||||||
import System.IO (hClose, hPutStr, hPutStrLn)
|
import System.IO (hClose, hPutStr, hPutStrLn)
|
||||||
@@ -125,21 +125,21 @@ myStartupHook = do
|
|||||||
spawn "killall conky" -- kill current conky on each restart
|
spawn "killall conky" -- kill current conky on each restart
|
||||||
spawn "killall polybar" -- kill current polybar on each restart
|
spawn "killall polybar" -- kill current polybar on each restart
|
||||||
|
|
||||||
spawnOnce "lxsession"
|
spawnOnce "lxsession"
|
||||||
spawnOnce "picom"
|
spawnOnce "picom"
|
||||||
spawnOnce "nm-applet"
|
spawnOnce "nm-applet"
|
||||||
spawnOnce "volumeicon"
|
spawnOnce "volumeicon"
|
||||||
spawnOnce "notify-log $HOME/.log/notify.log"
|
spawnOnce "notify-log $HOME/.log/notify.log"
|
||||||
spawn "/usr/bin/emacs --daemon" -- emacs daemon for the emacsclient
|
spawn "/usr/bin/emacs --daemon" -- emacs daemon for the emacsclient
|
||||||
|
|
||||||
spawn ("sleep 2 && conky -c $HOME/.config/conky/xmonad/" ++ colorScheme ++ "-01.conkyrc")
|
spawn ("sleep 2 && conky -c $HOME/.config/conky/xmonad/" ++ colorScheme ++ "-01.conkyrc")
|
||||||
spawn "sleep 2 && $HOME/.config/polybar/launch.sh"
|
spawn "sleep 2 && $HOME/.config/polybar/launch.sh"
|
||||||
|
|
||||||
spawnOnce "xargs xwallpaper --stretch < ~/.cache/wall"
|
spawnOnce "xargs xwallpaper --stretch < ~/.cache/wall"
|
||||||
-- spawnOnce "~/.fehbg &" -- set last saved feh wallpaper
|
-- spawnOnce "~/.fehbg &" -- set last saved feh wallpaper
|
||||||
-- spawnOnce "feh --randomize --bg-fill /usr/share/backgrounds/dtos-backgrounds/*" -- feh set random wallpaper
|
-- spawnOnce "feh --randomize --bg-fill /usr/share/backgrounds/dtos-backgrounds/*" -- feh set random wallpaper
|
||||||
-- spawnOnce "nitrogen --restore &" -- if you prefer nitrogen to feh
|
-- spawnOnce "nitrogen --restore &" -- if you prefer nitrogen to feh
|
||||||
setWMName "LG3D"
|
setWMName "LG3D"
|
||||||
|
|
||||||
myNavigation :: TwoD a (Maybe a)
|
myNavigation :: TwoD a (Maybe a)
|
||||||
myNavigation = makeXEventhandler $ shadowWithKeymap navKeyMap navDefaultHandler
|
myNavigation = makeXEventhandler $ shadowWithKeymap navKeyMap navDefaultHandler
|
||||||
@@ -440,7 +440,7 @@ myLayoutHook = avoidStruts
|
|||||||
|
|
||||||
-- myWorkspaces = [" 1 ", " 2 ", " 3 ", " 4 ", " 5 ", " 6 ", " 7 ", " 8 ", " 9 "]
|
-- myWorkspaces = [" 1 ", " 2 ", " 3 ", " 4 ", " 5 ", " 6 ", " 7 ", " 8 ", " 9 "]
|
||||||
-- myWorkspaces = [" dev ", " www ", " sys ", " doc ", " vbox ", " chat ", " mus ", " vid ", " gfx "]
|
-- myWorkspaces = [" dev ", " www ", " sys ", " doc ", " vbox ", " chat ", " mus ", " vid ", " gfx "]
|
||||||
myWorkspaces = [" 1 : dev ", " 2 : www ", " 3 : sys ", " 4 : doc ", " 5 : vbox ", " 6 : chat ", " 7 : mus ", " 8 : vid ", " 9 : gfx "]
|
myWorkspaces = ["1: dev", "2: www", "3: sys", "4: doc", "5: vbox", "6: chat", "7: mus", "8: vid", "9: gfx"]
|
||||||
|
|
||||||
myManageHook :: XMonad.Query (Data.Monoid.Endo WindowSet)
|
myManageHook :: XMonad.Query (Data.Monoid.Endo WindowSet)
|
||||||
myManageHook = composeAll
|
myManageHook = composeAll
|
||||||
|
|||||||
Reference in New Issue
Block a user