Browse Source

Update color definitions

master
Riyyi 6 years ago
parent
commit
777e295446
  1. 27
      .config/i3/config
  2. 16
      .config/xorg/Xresources
  3. 10
      .config/xorg/xinitrc

27
.config/i3/config

@ -21,11 +21,11 @@ exec --no-startup-id thunar
exec --no-startup-id xss-lock -- $HOME/.scripts/wm/lock.sh &
# Colors
set $bgcolor #404552
set $bgcolor-inactive #2b2e39
set $bgcolor-urgent #dc7a43
set $text-color #ffffff
set $textcolor-inactive #676e7d
set_from_resource $bgcolor Wmcolor.bgcolor #000000
set_from_resource $bgcolor_inactive Wmcolor.bgcolor_Inactive #000000
set_from_resource $bgcolor_urgent Wmcolor.bgcolor_Urgent #000000
set_from_resource $fgcolor Wmcolor.fgcolor #000000
set_from_resource $fgcolor_inactive Wmcolor.fgcolor_Inactive #000000
# Xresources colors
set_from_resource $darkblack color0 #000000
@ -48,23 +48,24 @@ set $transparent #00000000
# Window colors
# border background text indicator
client.focused $textcolor-inactive $textcolor-inactive $white $darkgreen
client.unfocused $bgcolor-inactive $bgcolor-inactive $darkwhite $darkgreen
client.focused_inactive $bgcolor-inactive $bgcolor-inactive $darkwhite $darkgreen
client.urgent $bgcolor-urgent $bgcolor-urgent $white $darkgreen
client.focused $fgcolor_inactive $fgcolor_inactive $white $darkgreen
client.unfocused $bgcolor_inactive $bgcolor_inactive $darkwhite $darkgreen
client.focused_inactive $bgcolor_inactive $bgcolor_inactive $darkwhite $darkgreen
client.urgent $bgcolor_urgent $bgcolor_urgent $white $darkgreen
bar {
colors {
background $bgcolor-inactive
background $bgcolor_inactive
separator $darkwhite
statusline $white
# border background text
focused_workspace $bgcolor $bgcolor $white
inactive_workspace $bgcolor-inactive $bgcolor-inactive $darkwhite
active_workspace $bgcolor-inactive $bgcolor-inactive $darkwhite
urgent_workspace $bgcolor-urgent $bgcolor-urgent $white
inactive_workspace $bgcolor_inactive $bgcolor_inactive $darkwhite
active_workspace $bgcolor_inactive $bgcolor_inactive $darkwhite
urgent_workspace $bgcolor_urgent $bgcolor_urgent $white
}
font pango:DejaVu Sans, FontAwesome5Free Solid, FontAwesome5Brands 8
# position top
status_command i3blocks -c $HOME/.config/i3/blocks
#strip_workspace_numbers yes
tray_output primary

16
.config/xorg/Xresources

@ -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

10
.config/xorg/xinitrc

@ -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

Loading…
Cancel
Save