diff --git a/.config/sway/config.sample b/.config/sway/config.sample index 8695fb5..5d51e82 100644 --- a/.config/sway/config.sample +++ b/.config/sway/config.sample @@ -23,7 +23,8 @@ set $term x-terminal-emulator # Your preferred application launcher # Note: pass the final command to swaymsg so that the resulting window can be opened # on the original workspace that the command was run on. -set $menu dmenu_path | dmenu | xargs swaymsg exec -- +#Colors: S_base0 <--> S_base03 (Selected is vice versa) +set $menu dmenu_path | dmenu -sb '#002b36' -sf '#839496' -nb '#839496' -nf '#002b36' -fn 'Hack-9'| xargs swaymsg exec -- ### Output configuration # @@ -208,21 +209,51 @@ mode "resize" { } bindsym $mod+r mode "resize" +# Color settings +# The point here is to keep the hue difference between text and background constant, +# even if the colors change. +# We get this by using only fixed pairs: +# S_base03 <--> S_base0 +# S_base02 <--> S_base1 +# S_base01 <--> S_base2 +# S_base00 <--> S_base3 + +# class border backgr. text indicator +# S_base03 S_base3 S_base03 S_base0 +client.focused #002b36 #839496 #002b36 #839496 + +# S_base03 S_base01 S_base2 S_base01 +client.focused_inactive #002b36 #586e75 #eee8d5 #586e75 + +# S_base03 S_base03 S_base0 S_base03 +client.unfocused #002b36 #002b36 #839496 #002b36 + +# S_base03 S_red S_base03 S_base03 +client.urgent #002b36 #dc322f #002b36 #dc322f + # # Status Bar: # -# Read `man 5 sway-bar` for more information about this section. bar { + tray_output primary + status_command i3status position top - - # When the status_command prints a new line to stdout, swaybar updates. - # The default just shows the current date and time. - status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done - colors { - statusline #ffffff - background #323232 - inactive_workspace #32323200 #32323200 #5c5c5c + # background is S_base03 + background #002b36 + + # statusline is S_base0 + statusline #839496 + + # separator is S_base00 + separator #657b83 + + # settings copied from color.x scheme above, keep in sync! + # border backgr. text + focused_workspace #002b36 #839496 #002b36 + active_workspace #002b36 #586e75 #eee8d5 + inactive_workspace #002b36 #002b36 #839496 + urgent_workspace #002b36 #dc322f #002b36 } } exec xrdb $HOME/.Xresources