From fc6b23ba8edb06446f299eaea31e2a0143ef257f Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Wed, 8 May 2024 10:02:18 +0200 Subject: [PATCH 1/3] updates to i3, sway --- .config/i3/config.example | 60 +++++++++++++++++++---------------- .config/sway/config.sample | 64 ++++++++++++++++++++++---------------- 2 files changed, 71 insertions(+), 53 deletions(-) diff --git a/.config/i3/config.example b/.config/i3/config.example index 538a9e4..4555f8f 100644 --- a/.config/i3/config.example +++ b/.config/i3/config.example @@ -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 } } diff --git a/.config/sway/config.sample b/.config/sway/config.sample index 068e708..cf5277f 100644 --- a/.config/sway/config.sample +++ b/.config/sway/config.sample @@ -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 From 966c36f7750aa90e5e5a94be21a62727e9944110 Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Wed, 8 May 2024 10:06:38 +0200 Subject: [PATCH 2/3] updates to Openbox config * switched to j4-dmenu-desktop * removed everything from openbox autostart --- .config/openbox/autostart | 7 ------- .config/openbox/rc.xml | 4 +++- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.config/openbox/autostart b/.config/openbox/autostart index a78f49b..f6f116c 100755 --- a/.config/openbox/autostart +++ b/.config/openbox/autostart @@ -1,9 +1,2 @@ #! /bin/sh $HOME/.local/bin/autostart & -sleep 5 -pcmanfm-qt --desktop & -stalonetray & -dunst & -lxqt-powermanagement & -latte-dock & -chrome --no-startup-window & diff --git a/.config/openbox/rc.xml b/.config/openbox/rc.xml index 6ba03ec..27ab163 100644 --- a/.config/openbox/rc.xml +++ b/.config/openbox/rc.xml @@ -272,9 +272,11 @@ 5 + @@ -376,7 +378,7 @@ - dmenu_run -fn 'Hack-9' -sb '#586e75' -sf '#eee8d5' -nb '#eee8d5' -nf '#586e75' + j4-dmenu-desktop --dmenu="dmenu -i -sf '#002b36' -sb '#839496' -nf '#839496' -nb '#002b36' -fn 'Hack-9'" From 31c9fcfb513147206b38b5f33b22e5c978190bb2 Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Tue, 8 Apr 2025 07:50:40 +0200 Subject: [PATCH 3/3] openbox: moved autostart --> autostart.example, moved to KvArc --- .config/openbox/{autostart => autostart.example} | 0 .config/openbox/rc.xml | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename .config/openbox/{autostart => autostart.example} (100%) diff --git a/.config/openbox/autostart b/.config/openbox/autostart.example similarity index 100% rename from .config/openbox/autostart rename to .config/openbox/autostart.example diff --git a/.config/openbox/rc.xml b/.config/openbox/rc.xml index 27ab163..66e35ae 100644 --- a/.config/openbox/rc.xml +++ b/.config/openbox/rc.xml @@ -42,7 +42,7 @@ 'Active' - where the active window is --> - KvArcDark + Arc-Dark NLIMC