Copied colorscheme from i3 to sway.

This commit is contained in:
Sheldon Lee 2022-01-20 02:50:12 +08:00
parent be9383d307
commit 7b30745687
2 changed files with 47 additions and 6 deletions

View File

@ -46,6 +46,9 @@ set $mon2 HDMI-A-0
# Start your launcher
bindsym $mod+space exec $menu
# screenshot
bindsym $mod+q exec ~/.config/wm_scripts/screenshot.sh
# Search window
bindsym $mod+e exec $search
@ -203,6 +206,8 @@ bindsym $mod+g mode "gaming"
# Status Bar:
#
font pango:SourceCodePro SemiBold 11px
titlebar_border_thickness 2
titlebar_padding 3
bar {
position top
@ -216,6 +221,7 @@ bar {
separator $base0
focused_workspace $orange $base02 $cyan
active_workspace $base02 $base03 $base0
inactive_workspace $base02 $base03 $base0
urgent_workspace $cyan $red $base03
}

View File

@ -6,6 +6,23 @@
### Variables
#
# Colors
set $base03 #002b36
set $base02 #073642
set $base01 #586e75
set $base00 #657b83
set $base0 #839496
set $base1 #93a1a1
set $base2 #eee8d5
set $base3 #fdf6e3
set $yellow #b58900
set $orange #cb4b16
set $red #dc322f
set $magenta #d33682
set $violet #6c71c4
set $blue #268bd2
set $cyan #2aa198
set $green #859900
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
@ -19,7 +36,6 @@ set $term alacritty
# 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 | bemenu -l 10 | xargs swaymsg exec --
set $search "rofi -modi window -show window"
set $mon1 DP-1
set $mon2 HDMI-A-1
@ -236,7 +252,9 @@ bindsym $mod+g mode "gaming"
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
font pango:SourceCodePro 11px
font pango:SourceCodePro SemiBold 11px
titlebar_border_thickness 2
titlebar_padding 3
bar {
position top
@ -245,13 +263,30 @@ bar {
status_command slstatus -s
colors {
background #002b36
#statusline #ffffff
#background #323232
#inactive_workspace #32323200 #32323200 #5c5c5c
background $base03
statusline $base0
separator $base0
focused_workspace $orange $base02 $cyan
active_workspace $base02 $base03 $base0
inactive_workspace $base02 $base03 $base0
urgent_workspace $cyan $red $base03
}
font pango:SourceCodePro SemiBold 11px
tray_output primary
}
#
# Window Colors:
#
client.focused $base01 $green $base03 $blue $cyan
client.focused_inactive $base0 $base02 $base0 $blue $base0
client.unfocused $base01 $base03 $base01 $blue $base01
client.urgent $base03 $red $base0 $red $red
client.placeholder #000000 $base01 $base0 #000000 $base01
client.background $base03
bindsym $mod+Control+h gaps horizontal current plus 200
bindsym $mod+Control+l gaps horizontal current minus 200
bindsym $mod+shift+f gaps horizontal current toggle 400