Update i3 config to use catppuccin theme, some shortcut tweaks

This commit is contained in:
Evie Litherland-Smith 2023-02-28 13:25:50 +00:00
parent 9212bd67d1
commit 052404bba5
2 changed files with 90 additions and 55 deletions

3
.gitignore vendored
View file

@ -8,3 +8,6 @@ config/tmux/plugins
config/nvim/lazy-lock.json config/nvim/lazy-lock.json
config/git/user_email config/git/user_email
config/fish/fish_variables config/fish/fish_variables
config/gtk-3.0/bookmarks
config/xfce4/xfconf/xfce-perchannel-xml
fonts/.uuid

View file

@ -183,7 +183,7 @@ bindsym $mod+Shift+e exec ~/.config/i3/scripts/powermenu
# lock with a picture: # lock with a picture:
#bindsym $mod+l exec i3lock -i ~/.config/i3/i3-lock-screen.png -p default|win -t #bindsym $mod+l exec i3lock -i ~/.config/i3/i3-lock-screen.png -p default|win -t
# lock by blurring the screen: # lock by blurring the screen:
bindsym $mod+l exec ~/.config/i3/scripts/blur-lock bindsym $mod+F1 exec ~/.config/i3/scripts/blur-lock
# reload the configuration file # reload the configuration file
bindsym $mod+Shift+c reload bindsym $mod+Shift+c reload
@ -202,10 +202,10 @@ bindsym XF86MonBrightnessUp exec xbacklight +10 && notify-send "Brightness - $(x
bindsym XF86MonBrightnessDown exec xbacklight -10 && notify-send "Brightness - $(xbacklight -get | cut -d '.' -f 1)%" bindsym XF86MonBrightnessDown exec xbacklight -10 && notify-send "Brightness - $(xbacklight -get | cut -d '.' -f 1)%"
# change focus # change focus
bindsym $mod+j focus left bindsym $mod+h focus left
bindsym $mod+k focus down bindsym $mod+j focus down
bindsym $mod+b focus up bindsym $mod+k focus up
bindsym $mod+o focus right bindsym $mod+l focus right
# alternatively, you can use the cursor keys: # alternatively, you can use the cursor keys:
bindsym $mod+Left focus left bindsym $mod+Left focus left
@ -214,10 +214,10 @@ bindsym $mod+Up focus up
bindsym $mod+Right focus right bindsym $mod+Right focus right
# move focused window # move focused window
bindsym $mod+Shift+j move left bindsym $mod+Shift+h move left
bindsym $mod+Shift+k move down bindsym $mod+Shift+j move down
bindsym $mod+Shift+b move up bindsym $mod+Shift+k move up
bindsym $mod+Shift+o move right bindsym $mod+Shift+l move right
# alternatively, you can use the cursor keys: # alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left bindsym $mod+Shift+Left move left
@ -226,10 +226,10 @@ bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right bindsym $mod+Shift+Right move right
# split in horizontal orientation # split in horizontal orientation
bindsym $mod+h split h # bindsym $mod+h split h
# split in vertical orientation # split in vertical orientation
bindsym $mod+v split v # bindsym $mod+v split v
# enter fullscreen mode for the focused container # enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle bindsym $mod+f fullscreen toggle
@ -301,22 +301,26 @@ set $ws10 "10"
# use workspaces on different displays: # use workspaces on different displays:
# where you have to replace VGA-0/HDMI-0 with the names for your displays # where you have to replace VGA-0/HDMI-0 with the names for your displays
# you can get from xrandr command # you can get from xrandr command
#workspace $ws1 output VGA-0 #workspace $ws1 output HDMI-1
#workspace $ws2 output VGA-0 #workspace $ws2 output HDMI-1
#workspace $ws3 output HDMI-0 #workspace $ws3 output HDMI-1
#workspace $ws4 output HDMI-0 #workspace $ws4 output HDMI-1
#workspace $ws5 output HDMI-0 #workspace $ws5 output HDMI-1
# bind program to workspace and focus to them on startup: # bind program to workspace and focus to them on startup:
assign [class="Xfce4-terminal"] $ws1 assign [class="Xfce4-terminal"] $ws1
assign [class="wezterm"] $ws1
assign [class="(?i)firefox"] $ws2 assign [class="(?i)firefox"] $ws2
assign [class="Microsoft-edge"] $ws2
assign [class="Thunar"] $ws3 assign [class="Thunar"] $ws3
assign [class="thunderbird"] $ws4 assign [class="thunderbird"] $ws4
assign [class="TelegramDesktop"] $ws5 assign [class="TelegramDesktop"] $ws5
# automatic set focus new window if it opens on another workspace than the current: # automatic set focus new window if it opens on another workspace than the current:
for_window [class=Xfce4-terminal] focus for_window [class=Xfce4-terminal] focus
for_window [class=wezterm] focus
for_window [class=(?i)firefox] focus for_window [class=(?i)firefox] focus
for_window [class=Microsoft-edge] focus
for_window [class=Thunar] focus for_window [class=Thunar] focus
for_window [class=Thunderbird] focus for_window [class=Thunderbird] focus
for_window [class=TelegramDesktop] focus for_window [class=TelegramDesktop] focus
@ -369,7 +373,7 @@ exec --no-startup-id dex --autostart --environment i3
#exec --no-startup-id sh /usr/share/endeavouros/scripts/welcome --startdelay=3 #exec --no-startup-id sh /usr/share/endeavouros/scripts/welcome --startdelay=3
# num lock activated # num lock activated
#exec --no-startup-id numlockx on exec --no-startup-id numlockx off
# configure multiple keyboard layouts and hotkey to switch (Alt+CAPSLOCK in this example) # configure multiple keyboard layouts and hotkey to switch (Alt+CAPSLOCK in this example)
#exec --no-startup-id setxkbmap -layout 'us,sk' -variant altgr-intl,qwerty -option 'grp:alt_caps_toggle' #exec --no-startup-id setxkbmap -layout 'us,sk' -variant altgr-intl,qwerty -option 'grp:alt_caps_toggle'
@ -383,7 +387,7 @@ exec --no-startup-id ~/.screenlayout/monitor.sh
# set wallpaper # set wallpaper
# exec --no-startup-id sleep 2 && nitrogen --restore # exec --no-startup-id sleep 2 && nitrogen --restore
exec --no-startup-id sleep 1 && feh --bg-fill /usr/share/endeavouros/backgrounds/endeavouros-wallpaper.png exec --no-startup-id sleep 1 && feh --bg-fill /usr/share/wallpapers/Next/contents/images/1920x1200.png
# set powersavings for display: # set powersavings for display:
exec --no-startup-id xset s 480 dpms 600 600 600 exec --no-startup-id xset s 480 dpms 600 600 600
@ -411,8 +415,8 @@ exec --no-startup-id dbus-launch dunst --config ~/.config/dunst/dunstrc
#exec_always --no-startup-id autotiling #exec_always --no-startup-id autotiling
# Autostart apps as you like # Autostart apps as you like
#exec --no-startup-id sleep 2 && xfce4-terminal exec --no-startup-id sleep 2 && wezterm
exec --no-startup-id sleep 7 && firefox https://github.com/endeavouros-team/endeavouros-i3wm-setup/blob/main/force-knowledge.md #exec --no-startup-id sleep 7 && firefox https://github.com/endeavouros-team/endeavouros-i3wm-setup/blob/main/force-knowledge.md
#exec --no-startup-id sleep 3 && thunar #exec --no-startup-id sleep 3 && thunar
############### ###############
@ -463,24 +467,53 @@ for_window [class="urxvt"] border pixel 1
###################################### ######################################
# Define colors variables: # Define colors variables:
set $darkbluetrans #08052be6 # set $darkbluetrans #08052be6
set $darkblue #08052b # set $darkblue #08052b
set $lightblue #5294e2 # set $lightblue #5294e2
set $urgentred #e53935 # set $urgentred #e53935
set $white #ffffff # set $white #ffffff
set $black #000000 # set $black #000000
set $purple #e345ff # set $purple #e345ff
set $darkgrey #383c4a # set $darkgrey #383c4a
set $grey #b0b5bd # set $grey #b0b5bd
set $mediumgrey #8b8b8b # set $mediumgrey #8b8b8b
set $yellowbrown #e1b700 # set $yellowbrown #e1b700
# Catppuccin Macchiato:
set $rosewater #f4dbd6
set $flamingo #f0c6c6
set $pink #f5bde6
set $mauve #c6a0f6
set $red #ed8796
set $maroon #ee99a0
set $peach #f5a97f
set $green #a6da95
set $teal #8bd5ca
set $sky #91d7e3
set $sapphire #7dc4e4
set $blue #8aadf4
set $lavender #b7bdf8
set $text #cad3f5
set $subtext1 #b8c0e0
set $subtext0 #a5adcb
set $overlay2 #939ab7
set $overlay1 #8087a2
set $overlay0 #6e738d
set $surface2 #5b6078
set $surface1 #494d64
set $surface0 #363a4f
set $base #24273a
set $mantle #1e2030
set $crust #181926
# define colors for windows: # define colors for windows:
#class border bground text indicator child_border # target title bg text indicator border
client.focused $lightblue $darkblue $white $mediumgrey $mediumgrey client.focused $pink $base $text $rosewater $pink
client.unfocused $darkblue $darkblue $grey $darkgrey $darkgrey client.focused_inactive $mauve $base $text $rosewater $mauve
client.focused_inactive $darkblue $darkblue $grey $black $black client.unfocused $mauve $base $text $rosewater $mauve
client.urgent $urgentred $urgentred $white $yellowbrown $yellowbrown client.urgent $peach $base $peach $overlay0 $peach
client.placeholder $overlay0 $base $text $overlay0 $overlay0
client.background $base
############################################ ############################################
# bar settings (input comes from i3blocks) # # bar settings (input comes from i3blocks) #
@ -489,9 +522,9 @@ client.urgent $urgentred $urgentred $white $yellowbrown $yellowbrown
# Start i3bar to display a workspace bar # Start i3bar to display a workspace bar
# (plus the system information i3status finds out, if available) # (plus the system information i3status finds out, if available)
bar { bar {
font pango: Noto Sans Regular 10 font pango: Noto Sans Regular 12
status_command i3blocks -c ~/.config/i3/i3blocks.conf status_command i3blocks -c ~/.config/i3/i3blocks.conf
position bottom position top
# i3bar_command i3bar --transparency # i3bar_command i3bar --transparency
# it could be that you have no primary display set: set one (xrandr --output <output> --primary) # it could be that you have no primary display set: set one (xrandr --output <output> --primary)
# reference: https://i3wm.org/docs/userguide.html#_tray_output # reference: https://i3wm.org/docs/userguide.html#_tray_output
@ -501,18 +534,17 @@ bar {
# When strip_workspace_numbers is set to yes, # When strip_workspace_numbers is set to yes,
# any workspace that has a name of the form # any workspace that has a name of the form
# “[n][:][NAME]” will display only the name. # “[n][:][NAME]” will display only the name.
strip_workspace_numbers yes strip_workspace_numbers no
##strip_workspace_name no
colors { colors {
separator $purple separator $mauve
background $darkgrey background $base
statusline $white statusline $text
# border bg txt indicator # border bg txt indicator
focused_workspace $mediumgrey $grey $darkgrey $purple focused_workspace $pink $base $text $rosewater
active_workspace $lightblue $mediumgrey $darkgrey $purple active_workspace $mauve $base $text $rosewater
inactive_workspace $darkgrey $darkgrey $grey $purple inactive_workspace $mauve $base $text $rosewater
urgent_workspace $urgentred $urgentred $white $purple urgent_workspace $peach $base $peach $overlay0
} }
} }
@ -556,16 +588,16 @@ strip_workspace_numbers yes
bindsym $mod+d exec rofi -modi drun -show drun \ bindsym $mod+d exec rofi -modi drun -show drun \
-config ~/.config/rofi/rofidmenu.rasi -config ~/.config/rofi/rofidmenu.rasi
#bindsym F9 exec rofi -modi drun -show drun \ bindsym F9 exec rofi -modi drun -show drun \
# -config ~/.config/rofi/rofidmenu.rasi -config ~/.config/rofi/rofidmenu.rasi
## rofi bindings for window menu ($mod+t /F10 optional disabled) ## rofi bindings for window menu ($mod+t /F10 optional disabled)
bindsym $mod+t exec rofi -show window \ bindsym $mod+t exec rofi -show window \
-config ~/.config/rofi/rofidmenu.rasi -config ~/.config/rofi/rofidmenu.rasi
#bindsym F10 exec rofi -show window \ bindsym F10 exec rofi -show window \
# -config ~/.config/rofi/rofidmenu.rasi -config ~/.config/rofi/rofidmenu.rasi
## rofi bindings to manage clipboard (install rofi-greenclip from the AUR) ## rofi bindings to manage clipboard (install rofi-greenclip from the AUR)