updates to i3, sway

This commit is contained in:
Tobias Schmidl 2024-05-08 10:02:18 +02:00
parent e0865d6453
commit fc6b23ba8e
2 changed files with 71 additions and 53 deletions

View file

@ -7,6 +7,26 @@ new_window none
set $mod Mod4
# Common
set $S_yellow "#b58900"
set $S_orange "#cb4b16"
set $S_red "#dc322f"
set $S_magenta "#d33682"
set $S_violet "#6c71c4"
set $S_blue "#268bd2"
set $S_cyan "#2aa198"
set $S_green "#859900"
# Dark
set $S_base03 "#002b36"
set $S_base02 "#073642"
set $S_base01 "#586e75"
set $S_base00 "#657b83"
set $S_base0 "#839496"
set $S_base1 "#93a1a1"
set $S_base2 "#eee8d5"
set $S_base3 "#fdf6e3"
popup_during_fullscreen leave_fullscreen
# font for window titles. ISO 10646 = Unicode
@ -32,7 +52,7 @@ bindsym $mod+Shift+Q kill
# start dmenu (a program launcher)
#Colors: S_base0 <--> S_base03 (Selected is vice versa)
bindsym $mod+space exec dmenu_run -sb '#002b36' -sf '#839496' -nb '#839496' -nf '#002b36' -fn 'Hack-9'
bindsym $mod+space exec dmenu_run -sb $S_base0 -sf $S_base03 -nb $S_base03 -nf $S_base0 -fn 'Hack-9'
# change focus
bindsym $mod+Left focus left
@ -144,18 +164,11 @@ bindsym $mod+r mode "resize"
# 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
# class border backgr. text indicator
client.focused $S_base03 $S_base0 $S_base03 $S_base0
client.focused_inactive $S_base03 $S_base01 $S_base2 $S_base01
client.unfocused $S_base03 $S_base03 $S_base0 $S_base03
client.urgent $S_base03 $S_red $S_base03 $S_red
# Start i3bar to display a workspace bar (plus the system information i3status
@ -165,21 +178,16 @@ bar {
status_command i3status
position top
colors {
# background is S_base03
background #002b36
# statusline is S_base0
statusline #839496
# separator is S_base00
separator #657b83
background $S_base03
statusline $S_base0
separator $S_base00
# 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
# border backgr. text
focused_workspace $S_base03 $S_base0 $S_base03
active_workspace $S_base03 $S_base01 $S_base2
inactive_workspace $S_base03 $S_base03 $S_base0
urgent_workspace $S_base03 $S_red $S_base03
}
}

View file

@ -6,6 +6,7 @@ smart_borders on
hide_edge_borders --i3 smart
font pango:Hack 9
default_border none
### Variables
#
# Logo key. Use Mod1 for Alt.
@ -17,6 +18,26 @@ set $down j
set $up k
set $right l
# Common
set $S_yellow "#b58900"
set $S_orange "#cb4b16"
set $S_red "#dc322f"
set $S_magenta "#d33682"
set $S_violet "#6c71c4"
set $S_blue "#268bd2"
set $S_cyan "#2aa198"
set $S_green "#859900"
# Dark
set $S_base03 "#002b36"
set $S_base02 "#073642"
set $S_base01 "#586e75"
set $S_base00 "#657b83"
set $S_base0 "#839496"
set $S_base1 "#93a1a1"
set $S_base2 "#eee8d5"
set $S_base3 "#fdf6e3"
# Your preferred terminal emulator
set $term x-terminal-emulator
@ -24,12 +45,12 @@ set $term x-terminal-emulator
# 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.
#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 --
set $menu dmenu_path | bemenu-run -i -M 0 -W 1 --fork --sb $S_base0 --sf $S_base03 --hb $S_base3 --hf $S_base00 --nb $S_base03 --nf $S_base0 --ab $S_base02 --af $S_base1 --tb $S_base03 --tf $S_base0 --fb $S_base03 --ff $S_base0 --cb $S_base2 --cf $S_base01 --fn "Hack 9"
### Output configuration
#
# wallpaper
output * bg $HOME/Bilder/current.jpg fit #002b36
output * bg $S_base03 solid_color
#
# Screen
output eDP-1 resolution 1920x1080 position 0,0
@ -204,6 +225,7 @@ mode "resize" {
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# Color settings
@ -215,18 +237,11 @@ bindsym $mod+r mode "resize"
# 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
# class border backgr. text indicator
client.focused $S_base03 $S_base0 $S_base03 $S_base0
client.focused_inactive $S_base03 $S_base01 $S_base2 $S_base01
client.unfocused $S_base03 $S_base03 $S_base0 $S_base03
client.urgent $S_base03 $S_red $S_base03 $S_red
#
# Status Bar:
@ -236,21 +251,16 @@ bar {
status_command i3status
position top
colors {
# background is S_base03
background #002b36
# statusline is S_base0
statusline #839496
# separator is S_base00
separator #657b83
background $S_base03
statusline $S_base0
separator $S_base00
# 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
# border backgr. text
focused_workspace $S_base03 $S_base0 $S_base03
active_workspace $S_base03 $S_base01 $S_base2
inactive_workspace $S_base03 $S_base03 $S_base0
urgent_workspace $S_base03 $S_red $S_base03
}
}
exec xrdb $HOME/.Xresources