Update color definitions
This commit is contained in:
@@ -1,41 +1,41 @@
|
||||
! Colors
|
||||
|
||||
! special
|
||||
*.foreground: #c5c8c6
|
||||
*.background: #1c1c1c
|
||||
*.cursorColor: #c5c8c6
|
||||
|
||||
! black
|
||||
*.color0: #282a2e
|
||||
*.color8: #373b41
|
||||
|
||||
! red
|
||||
*.color1: #a54242
|
||||
*.color9: #cc6666
|
||||
|
||||
! green
|
||||
*.color2: #8c9440
|
||||
*.color10: #b5bd68
|
||||
|
||||
! yellow
|
||||
*.color3: #de935f
|
||||
*.color11: #f0c674
|
||||
|
||||
! blue
|
||||
*.color4: #5f819d
|
||||
*.color12: #81a2be
|
||||
|
||||
! magenta
|
||||
*.color5: #85678f
|
||||
*.color13: #b294bb
|
||||
|
||||
! cyan
|
||||
*.color6: #5e8d87
|
||||
*.color14: #8abeb7
|
||||
|
||||
! white
|
||||
*.color7: #707880
|
||||
*.color15: #c5c8c6
|
||||
|
||||
! i3-wm colors
|
||||
Wmcolor.bgcolor: #404552
|
||||
Wmcolor.bgcolor_Inactive: #2b2e39
|
||||
Wmcolor.bgcolor_Urgent: #dc7a43
|
||||
Wmcolor.fgcolor: #ffffff
|
||||
Wmcolor.fgcolor_Inactive: #676e7d
|
||||
|
||||
Xcursor.theme: capitaine-cursors
|
||||
|
||||
! Font config
|
||||
|
||||
@@ -31,8 +31,12 @@ setxkbmap -option ''
|
||||
# Swap capslock with escape
|
||||
setxkbmap -option caps:swapescape
|
||||
|
||||
# Export Xresources colors
|
||||
COLORS="$(xrdb -query | grep '^*.color' | sort -V | awk '{print $NF}')"
|
||||
$(echo "$COLORS" | awk '$0 = "export COLOR" NR - 1 "=" $0')
|
||||
# Export terminal colors
|
||||
$(xrdb -query | awk '/^*.color/{print "export " toupper(substr($1, 3, length($1) - 3)) "=" $2}')
|
||||
# Example: *.color0: #282a2e -> export COLOR0=#282a2e
|
||||
|
||||
# Export wm colors
|
||||
$(xrdb -query | awk '/Wmcolor./{print "export " toupper(substr($1, 9, length($1) - 9)) "=" $2}')
|
||||
# Example: Wmcolor.bgcolor: #404552 -> export BGCOLOR=#404552
|
||||
|
||||
exec i3
|
||||
|
||||
Reference in New Issue
Block a user