From ced6ef1a76f48adc489763dde9552d85a0745e6d Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 6 Oct 2021 02:30:28 +0300 Subject: i3: new & improved --- .config/i3/config##c.desktop,h.maus | 75 ++++++++++++++++++------------------- 1 file changed, 37 insertions(+), 38 deletions(-) (limited to '.config/i3') diff --git a/.config/i3/config##c.desktop,h.maus b/.config/i3/config##c.desktop,h.maus index 7254417..c6c06f3 100644 --- a/.config/i3/config##c.desktop,h.maus +++ b/.config/i3/config##c.desktop,h.maus @@ -8,10 +8,7 @@ set $alt Mod1 # use mouse+$mod to drag floating windows to their wanted position floating_modifier $alt -# launch polybar -exec --no-startup-id $HOME/.config/polybar/launch.sh & - -# autostart +## autostart exec --no-startup-id xsettingsd & exec --no-startup-id picom -b exec --no-startup-id flashfocus & @@ -21,7 +18,9 @@ exec --no-startup-id redshift-gtk & exec --no-startup-id nm-applet & exec --no-startup-id udiskie --automount --file-manager thunar --tray --notify & exec --no-startup-id /usr/lib/pam_kwallet_init -exec --no-startup-id remind -z -k'dunstify -i "view-calendar" "⏰ reminder!" "%s" &' ~/.reminders & +exec --no-startup-id remind -z -k'dunstify -i "calendar" "⏰ reminder!" "%s" &' ~/.reminders & +exec --no-startup-id /home/yigit/.local/bin/pulse-volume-watcher.py | xob -m 80 & +exec --no-startup-id $HOME/.config/polybar/launch.sh & # swap caps lock and escape, set keyboard layout exec --no-startup-id setxkbmap -model pc105 -layout us -variant colemak -option caps:backspace @@ -39,11 +38,8 @@ exec --no-startup-id ~/.fehbg # font for window titles font pango:Iosevka 11 -############## -# bindings # -############## - -# done, {task,timew}warrior control suite +## bindings +# done, {task,time}warrior control suite bindcode $mod+42 exec --no-startup-id ~/.local/bin/done # type the contents of the clipboard with mod+p @@ -65,9 +61,9 @@ bindcode $mod+35 exec --no-startup-id "setxkbmap -model pc105 -layout us,us,tr - bindsym Print exec flameshot gui # media keys -bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 2%+ && amixer get Master | grep -Po '[0-9]+(?=%)' | head -1 > /tmp/xobpipe" -bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 2%- && amixer get Master | grep -Po '[0-9]+(?=%)' | head -1 > /tmp/xobpipe" -bindsym XF86AudioMute exec --no-startup-id "amixer set Master toggle && if amixer get Master | grep -Fq '[off]'; then volnoti-show -m; else volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1); fi" +bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 2%+" +bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 2%-" +bindsym XF86AudioMute exec --no-startup-id "amixer set Master toggle" bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause # for spotify bindsym XF86AudioPrev exec --no-startup-id playerctl previous bindsym XF86AudioNext exec --no-startup-id playerctl next @@ -82,24 +78,24 @@ bindcode $mod+20 scratchpad show # pause notifications for a while with mod+shift+y bindcode $mod+Shift+32 exec ~/.local/bin/toggle_notifications.sh -# shortcuts for frequent programs +## shortcuts for frequent programs # zotero on mod+shift+z bindcode $mod+Shift+52 exec zotero # thunar on mod+shift+t bindcode $mod+Shift+41 exec thunar - # start a terminal bindsym $mod+Return exec kitty +# start rofi with mod+s +bindcode $mod+40 exec rofi -show combi +# launch the poweroff menu +bindsym $mod+Shift+Escape exec --no-startup-id ~/.local/bin/power.sh # kill focused window bindcode $mod+Shift+24 kill bindsym --whole-window $mod+button2 kill -# start rofi with mod+s -bindcode $mod+40 exec rofi -show combi - -# change focus on mod+hnei +# change focus on mod+hnei (qwerty hjkl) bindcode $mod+43 focus left bindcode $mod+44 focus down bindcode $mod+45 focus up @@ -136,6 +132,7 @@ bindsym $mod+space focus mode_toggle # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. +# Workspace icons are added at polybar set $ws1 "1" set $ws2 "2" set $ws3 "3" @@ -145,12 +142,12 @@ set $ws6 "6" set $ws7 "7" set $ws8 "8" set $ws9 "9" -set $ws10 "10" -set $wsmusic "♫" -set $wszotero "ζ" -set $wsdesktop "Ξ" - -workspace $wsmusic output HDMI-0 +set $ws10 "0" +set $wsmusic "music" +set $wszotero "zotero" +set $wsdesktop "desktop" +set $wsbrowser "browser" +set $wssteam "steam" # switch to workspace bindsym $mod+1 workspace $ws1 @@ -161,11 +158,12 @@ bindsym $mod+5 workspace $ws5 bindsym $mod+6 workspace $ws6 bindsym $mod+7 workspace $ws7 bindsym $mod+8 workspace $ws8 -bindsym $mod+9 workspace $ws9 +bindsym $mod+9 workspace $wssteam bindsym $mod+0 workspace $ws10 bindsym $mod+m workspace $wsmusic bindcode $mod+49 workspace $wszotero bindcode $mod+60 workspace $wsdesktop +bindcode $mod+21 workspace $wsbrowser # move focused container to workspace bindsym $mod+Shift+1 move container to workspace $ws1 @@ -176,11 +174,12 @@ bindsym $mod+Shift+5 move container to workspace $ws5 bindsym $mod+Shift+6 move container to workspace $ws6 bindsym $mod+Shift+7 move container to workspace $ws7 bindsym $mod+Shift+8 move container to workspace $ws8 -bindsym $mod+Shift+9 move container to workspace $ws9 +bindsym $mod+Shift+9 move container to workspace $wssteam bindsym $mod+Shift+0 move container to workspace $ws10 bindsym $mod+Shift+m move container to workspace $wsmusic bindcode $mod+Shift+49 move container to workspace $wszotero bindcode $mod+Shift+60 move container to workspace $wsdesktop +bindcode $mod+Shift+21 move container to workspace $wsbrowser bindcode $mod+52 move container to output right @@ -188,25 +187,25 @@ bindcode $mod+52 move container to output right bindcode $mod+Shift+54 reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindcode $mod+Shift+27 restart -# launch the poweroff menu -bindsym $mod+Shift+Escape exec --no-startup-id ~/.local/bin/power.sh -# for_window [class=".*"] border pixel 5 default_border pixel 2 for_window [class="Zotero" instance="Toplevel" title="Quick Format Citation"] floating enable for_window [class="Zotero" instance="Toplevel" title="Progress"] floating enable for_window [class="zoom" title="Chat"] floating enable for_window [class="Dia" window_role="toolbox_window"] floating enable for_window [class="Pavucontrol" title="Volume Control"] floating enable -assign [class="^Steam$"] 9 -assign [class="^Zotero$"] $wszotero -# class border backgr. text indicator child_border -client.focused #458588 #285577 #ffffff #458588 #285577 -client.focused_inactive #b16286 #5f676a #ffffff #484e50 #5f676a -client.unfocused #927374 #222222 #888888 #292d2e #222222 -client.urgent #2f343a #900000 #ffffff #900000 #900000 -client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c +assign [class="^Steam$"] $wssteam +assign [class="^Brave-browser$"] $wsbrowser +assign [class="^Zotero$"] $wszotero +for_window [class="Spotify"] move --no-auto-back-and-forth container to workspace $wsmusic + +# class border background text indicator child_border +client.focused #ae81ff #080808 #85dc85 #ff5454 #ae81ff +client.focused_inactive #ae81ff #9e9e9e #080808 #ff5454 #5f676a +client.unfocused #ae81ff #323437 #b2b2b2 #ff5454 #222222 +client.urgent #ae81ff #900000 #b2b2b2 #ff5454 #900000 +client.placeholder #ae81ff #0c0c0c #b2b2b2 #ff5454 #0c0c0c client.background #ffffff -- cgit v1.2.3-61-g4310