From fada31cfcbc9bb59697d6aba701852f0dbe979f6 Mon Sep 17 00:00:00 2001 From: Laurent Le Houerou Date: Mon, 27 May 2024 22:59:10 +0400 Subject: [PATCH] add theme to i3 config and various tweaks --- i3/.config/i3/config | 76 ++++++++++++++++++++++++++++++++++---------- 1 file changed, 60 insertions(+), 16 deletions(-) diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 362ad42..ec4fa94 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -1,23 +1,66 @@ -# This file has been auto-generated by i3-config-wizard(1). -# It will not be overwritten, so edit it as you like. -# -# Should you change your keyboard layout some time, delete -# this file and re-run i3-config-wizard(1). -# +set $rosewater #f5e0dc +set $flamingo #f2cdcd +set $pink #f5c2e7 +set $mauve #cba6f7 +set $red #f38ba8 +set $maroon #eba0ac +set $peach #fab387 +set $yellow #f9e2af +set $green #a6e3a1 +set $teal #94e2d5 +set $sky #89dceb +set $sapphire #74c7ec +set $blue #89b4fa +set $lavender #b4befe +set $text #cdd6f4 +set $subtext1 #bac2de +set $subtext0 #a6adc8 +set $overlay2 #9399b2 +set $overlay1 #7f849c +set $overlay0 #6c7086 +set $surface2 #585b70 +set $surface1 #45475a +set $surface0 #313244 +set $base #1e1e2e +set $mantle #181825 +set $crust #11111b -# i3 config file (v4) -# -# Please see https://i3wm.org/docs/userguide.html for a complete reference! + +# target title bg text indicator border +client.focused $lavender $crust $text $rosewater $lavender +client.focused_inactive $overlay0 $base $text $rosewater $overlay0 +client.unfocused $overlay0 $base $text $rosewater $overlay0 +client.urgent $peach $base $peach $overlay0 $peach +client.placeholder $overlay0 $base $text $overlay0 $overlay0 +client.background $base set $mod Mod4 -# Font for window titles. Will also be used by the bar unless a different font -# is used in the bar {} block below. -#font pango:monospace 8 +for_window [class="^.*"] title_format "%title" +title_align center +default_orientation auto +focus_wrapping no +popup_during_fullscreen smart +force_display_urgency_hint 1000 ms +focus_on_window_activation urgent +workspace_auto_back_and_forth yes -# This font is widely installed, provides lots of unicode glyphs, right-to-left -# text rendering and scalability on retina/hidpi displays (thanks to pango). -font pango:FiraCode Nerd Font Mono 8 +font pango:FiraCode Nerd Font Mono Regular 8 + +default_border pixel 4 +default_floating_border pixel 4 +smart_borders on + +gaps inner 8 +gaps outer 0 +smart_gaps on + +hide_edge_borders none + +for_window [window_role="(?i)(?:pop-up|setup)"] floating enable +for_window [class="zoom"] floating enable + +mouse_warping none #exec --no-startup-id ~/.config/i3/setup_monitors.sh exec_always --no-startup-id $HOME/.config/polybar/launch.sh @@ -60,7 +103,8 @@ bindsym $mod+Shift+a kill # start dmenu (a program launcher) #bindsym $mod+d exec --no-startup-id dmenu_run -bindsym $mod+d exec rofi -show run +bindsym $mod+d exec --no-startup-id rofi -show run +bindsym $mod+Tab exec --no-startup-id rofi -show window # A more modern dmenu replacement is rofi: # bindcode $mod+40 exec "rofi -modi drun,run -show drun" # There also is i3-dmenu-desktop which only displays applications shipping a