diff options
Diffstat (limited to '.config/i3')
| -rw-r--r-- | .config/i3/config##c.desktop,h.maus | 75 |
1 files changed, 37 insertions, 38 deletions
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 | |||
| 8 | # use mouse+$mod to drag floating windows to their wanted position | 8 | # use mouse+$mod to drag floating windows to their wanted position |
| 9 | floating_modifier $alt | 9 | floating_modifier $alt |
| 10 | 10 | ||
| 11 | # launch polybar | 11 | ## autostart |
| 12 | exec --no-startup-id $HOME/.config/polybar/launch.sh & | ||
| 13 | |||
| 14 | # autostart | ||
| 15 | exec --no-startup-id xsettingsd & | 12 | exec --no-startup-id xsettingsd & |
| 16 | exec --no-startup-id picom -b | 13 | exec --no-startup-id picom -b |
| 17 | exec --no-startup-id flashfocus & | 14 | exec --no-startup-id flashfocus & |
| @@ -21,7 +18,9 @@ exec --no-startup-id redshift-gtk & | |||
| 21 | exec --no-startup-id nm-applet & | 18 | exec --no-startup-id nm-applet & |
| 22 | exec --no-startup-id udiskie --automount --file-manager thunar --tray --notify & | 19 | exec --no-startup-id udiskie --automount --file-manager thunar --tray --notify & |
| 23 | exec --no-startup-id /usr/lib/pam_kwallet_init | 20 | exec --no-startup-id /usr/lib/pam_kwallet_init |
| 24 | exec --no-startup-id remind -z -k'dunstify -i "view-calendar" "⏰ reminder!" "%s" &' ~/.reminders & | 21 | exec --no-startup-id remind -z -k'dunstify -i "calendar" "⏰ reminder!" "%s" &' ~/.reminders & |
| 22 | exec --no-startup-id /home/yigit/.local/bin/pulse-volume-watcher.py | xob -m 80 & | ||
| 23 | exec --no-startup-id $HOME/.config/polybar/launch.sh & | ||
| 25 | 24 | ||
| 26 | # swap caps lock and escape, set keyboard layout | 25 | # swap caps lock and escape, set keyboard layout |
| 27 | exec --no-startup-id setxkbmap -model pc105 -layout us -variant colemak -option caps:backspace | 26 | exec --no-startup-id setxkbmap -model pc105 -layout us -variant colemak -option caps:backspace |
| @@ -39,11 +38,8 @@ exec --no-startup-id ~/.fehbg | |||
| 39 | # font for window titles | 38 | # font for window titles |
| 40 | font pango:Iosevka 11 | 39 | font pango:Iosevka 11 |
| 41 | 40 | ||
| 42 | ############## | 41 | ## bindings |
| 43 | # bindings # | 42 | # done, {task,time}warrior control suite |
| 44 | ############## | ||
| 45 | |||
| 46 | # done, {task,timew}warrior control suite | ||
| 47 | bindcode $mod+42 exec --no-startup-id ~/.local/bin/done | 43 | bindcode $mod+42 exec --no-startup-id ~/.local/bin/done |
| 48 | 44 | ||
| 49 | # type the contents of the clipboard with mod+p | 45 | # 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 - | |||
| 65 | bindsym Print exec flameshot gui | 61 | bindsym Print exec flameshot gui |
| 66 | 62 | ||
| 67 | # media keys | 63 | # media keys |
| 68 | bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 2%+ && amixer get Master | grep -Po '[0-9]+(?=%)' | head -1 > /tmp/xobpipe" | 64 | bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 2%+" |
| 69 | bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 2%- && amixer get Master | grep -Po '[0-9]+(?=%)' | head -1 > /tmp/xobpipe" | 65 | bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 2%-" |
| 70 | 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" | 66 | bindsym XF86AudioMute exec --no-startup-id "amixer set Master toggle" |
| 71 | bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause # for spotify | 67 | bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause # for spotify |
| 72 | bindsym XF86AudioPrev exec --no-startup-id playerctl previous | 68 | bindsym XF86AudioPrev exec --no-startup-id playerctl previous |
| 73 | bindsym XF86AudioNext exec --no-startup-id playerctl next | 69 | bindsym XF86AudioNext exec --no-startup-id playerctl next |
| @@ -82,24 +78,24 @@ bindcode $mod+20 scratchpad show | |||
| 82 | # pause notifications for a while with mod+shift+y | 78 | # pause notifications for a while with mod+shift+y |
| 83 | bindcode $mod+Shift+32 exec ~/.local/bin/toggle_notifications.sh | 79 | bindcode $mod+Shift+32 exec ~/.local/bin/toggle_notifications.sh |
| 84 | 80 | ||
| 85 | # shortcuts for frequent programs | 81 | ## shortcuts for frequent programs |
| 86 | 82 | ||
| 87 | # zotero on mod+shift+z | 83 | # zotero on mod+shift+z |
| 88 | bindcode $mod+Shift+52 exec zotero | 84 | bindcode $mod+Shift+52 exec zotero |
| 89 | # thunar on mod+shift+t | 85 | # thunar on mod+shift+t |
| 90 | bindcode $mod+Shift+41 exec thunar | 86 | bindcode $mod+Shift+41 exec thunar |
| 91 | |||
| 92 | # start a terminal | 87 | # start a terminal |
| 93 | bindsym $mod+Return exec kitty | 88 | bindsym $mod+Return exec kitty |
| 89 | # start rofi with mod+s | ||
| 90 | bindcode $mod+40 exec rofi -show combi | ||
| 91 | # launch the poweroff menu | ||
| 92 | bindsym $mod+Shift+Escape exec --no-startup-id ~/.local/bin/power.sh | ||
| 94 | 93 | ||
| 95 | # kill focused window | 94 | # kill focused window |
| 96 | bindcode $mod+Shift+24 kill | 95 | bindcode $mod+Shift+24 kill |
| 97 | bindsym --whole-window $mod+button2 kill | 96 | bindsym --whole-window $mod+button2 kill |
| 98 | 97 | ||
| 99 | # start rofi with mod+s | 98 | # change focus on mod+hnei (qwerty hjkl) |
| 100 | bindcode $mod+40 exec rofi -show combi | ||
| 101 | |||
| 102 | # change focus on mod+hnei | ||
| 103 | bindcode $mod+43 focus left | 99 | bindcode $mod+43 focus left |
| 104 | bindcode $mod+44 focus down | 100 | bindcode $mod+44 focus down |
| 105 | bindcode $mod+45 focus up | 101 | bindcode $mod+45 focus up |
| @@ -136,6 +132,7 @@ bindsym $mod+space focus mode_toggle | |||
| 136 | 132 | ||
| 137 | # Define names for default workspaces for which we configure key bindings later on. | 133 | # Define names for default workspaces for which we configure key bindings later on. |
| 138 | # We use variables to avoid repeating the names in multiple places. | 134 | # We use variables to avoid repeating the names in multiple places. |
| 135 | # Workspace icons are added at polybar | ||
| 139 | set $ws1 "1" | 136 | set $ws1 "1" |
| 140 | set $ws2 "2" | 137 | set $ws2 "2" |
| 141 | set $ws3 "3" | 138 | set $ws3 "3" |
| @@ -145,12 +142,12 @@ set $ws6 "6" | |||
| 145 | set $ws7 "7" | 142 | set $ws7 "7" |
| 146 | set $ws8 "8" | 143 | set $ws8 "8" |
| 147 | set $ws9 "9" | 144 | set $ws9 "9" |
| 148 | set $ws10 "10" | 145 | set $ws10 "0" |
| 149 | set $wsmusic "♫" | 146 | set $wsmusic "music" |
| 150 | set $wszotero "ζ" | 147 | set $wszotero "zotero" |
| 151 | set $wsdesktop "Ξ" | 148 | set $wsdesktop "desktop" |
| 152 | 149 | set $wsbrowser "browser" | |
| 153 | workspace $wsmusic output HDMI-0 | 150 | set $wssteam "steam" |
| 154 | 151 | ||
| 155 | # switch to workspace | 152 | # switch to workspace |
| 156 | bindsym $mod+1 workspace $ws1 | 153 | bindsym $mod+1 workspace $ws1 |
| @@ -161,11 +158,12 @@ bindsym $mod+5 workspace $ws5 | |||
| 161 | bindsym $mod+6 workspace $ws6 | 158 | bindsym $mod+6 workspace $ws6 |
| 162 | bindsym $mod+7 workspace $ws7 | 159 | bindsym $mod+7 workspace $ws7 |
| 163 | bindsym $mod+8 workspace $ws8 | 160 | bindsym $mod+8 workspace $ws8 |
| 164 | bindsym $mod+9 workspace $ws9 | 161 | bindsym $mod+9 workspace $wssteam |
| 165 | bindsym $mod+0 workspace $ws10 | 162 | bindsym $mod+0 workspace $ws10 |
| 166 | bindsym $mod+m workspace $wsmusic | 163 | bindsym $mod+m workspace $wsmusic |
| 167 | bindcode $mod+49 workspace $wszotero | 164 | bindcode $mod+49 workspace $wszotero |
| 168 | bindcode $mod+60 workspace $wsdesktop | 165 | bindcode $mod+60 workspace $wsdesktop |
| 166 | bindcode $mod+21 workspace $wsbrowser | ||
| 169 | 167 | ||
| 170 | # move focused container to workspace | 168 | # move focused container to workspace |
| 171 | bindsym $mod+Shift+1 move container to workspace $ws1 | 169 | bindsym $mod+Shift+1 move container to workspace $ws1 |
| @@ -176,11 +174,12 @@ bindsym $mod+Shift+5 move container to workspace $ws5 | |||
| 176 | bindsym $mod+Shift+6 move container to workspace $ws6 | 174 | bindsym $mod+Shift+6 move container to workspace $ws6 |
| 177 | bindsym $mod+Shift+7 move container to workspace $ws7 | 175 | bindsym $mod+Shift+7 move container to workspace $ws7 |
| 178 | bindsym $mod+Shift+8 move container to workspace $ws8 | 176 | bindsym $mod+Shift+8 move container to workspace $ws8 |
| 179 | bindsym $mod+Shift+9 move container to workspace $ws9 | 177 | bindsym $mod+Shift+9 move container to workspace $wssteam |
| 180 | bindsym $mod+Shift+0 move container to workspace $ws10 | 178 | bindsym $mod+Shift+0 move container to workspace $ws10 |
| 181 | bindsym $mod+Shift+m move container to workspace $wsmusic | 179 | bindsym $mod+Shift+m move container to workspace $wsmusic |
| 182 | bindcode $mod+Shift+49 move container to workspace $wszotero | 180 | bindcode $mod+Shift+49 move container to workspace $wszotero |
| 183 | bindcode $mod+Shift+60 move container to workspace $wsdesktop | 181 | bindcode $mod+Shift+60 move container to workspace $wsdesktop |
| 182 | bindcode $mod+Shift+21 move container to workspace $wsbrowser | ||
| 184 | 183 | ||
| 185 | bindcode $mod+52 move container to output right | 184 | bindcode $mod+52 move container to output right |
| 186 | 185 | ||
| @@ -188,25 +187,25 @@ bindcode $mod+52 move container to output right | |||
| 188 | bindcode $mod+Shift+54 reload | 187 | bindcode $mod+Shift+54 reload |
| 189 | # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) | 188 | # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) |
| 190 | bindcode $mod+Shift+27 restart | 189 | bindcode $mod+Shift+27 restart |
| 191 | # launch the poweroff menu | ||
| 192 | bindsym $mod+Shift+Escape exec --no-startup-id ~/.local/bin/power.sh | ||
| 193 | 190 | ||
| 194 | # for_window [class=".*"] border pixel 5 | ||
| 195 | default_border pixel 2 | 191 | default_border pixel 2 |
| 196 | for_window [class="Zotero" instance="Toplevel" title="Quick Format Citation"] floating enable | 192 | for_window [class="Zotero" instance="Toplevel" title="Quick Format Citation"] floating enable |
| 197 | for_window [class="Zotero" instance="Toplevel" title="Progress"] floating enable | 193 | for_window [class="Zotero" instance="Toplevel" title="Progress"] floating enable |
| 198 | for_window [class="zoom" title="Chat"] floating enable | 194 | for_window [class="zoom" title="Chat"] floating enable |
| 199 | for_window [class="Dia" window_role="toolbox_window"] floating enable | 195 | for_window [class="Dia" window_role="toolbox_window"] floating enable |
| 200 | for_window [class="Pavucontrol" title="Volume Control"] floating enable | 196 | for_window [class="Pavucontrol" title="Volume Control"] floating enable |
| 201 | assign [class="^Steam$"] 9 | ||
| 202 | assign [class="^Zotero$"] $wszotero | ||
| 203 | 197 | ||
| 204 | # class border backgr. text indicator child_border | 198 | assign [class="^Steam$"] $wssteam |
| 205 | client.focused #458588 #285577 #ffffff #458588 #285577 | 199 | assign [class="^Brave-browser$"] $wsbrowser |
| 206 | client.focused_inactive #b16286 #5f676a #ffffff #484e50 #5f676a | 200 | assign [class="^Zotero$"] $wszotero |
| 207 | client.unfocused #927374 #222222 #888888 #292d2e #222222 | 201 | for_window [class="Spotify"] move --no-auto-back-and-forth container to workspace $wsmusic |
| 208 | client.urgent #2f343a #900000 #ffffff #900000 #900000 | 202 | |
| 209 | client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c | 203 | # class border background text indicator child_border |
| 204 | client.focused #ae81ff #080808 #85dc85 #ff5454 #ae81ff | ||
| 205 | client.focused_inactive #ae81ff #9e9e9e #080808 #ff5454 #5f676a | ||
| 206 | client.unfocused #ae81ff #323437 #b2b2b2 #ff5454 #222222 | ||
| 207 | client.urgent #ae81ff #900000 #b2b2b2 #ff5454 #900000 | ||
| 208 | client.placeholder #ae81ff #0c0c0c #b2b2b2 #ff5454 #0c0c0c | ||
| 210 | 209 | ||
| 211 | client.background #ffffff | 210 | client.background #ffffff |
| 212 | 211 | ||
