summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2021-10-06 02:30:28 +0300
committerYigit Sever2021-10-06 02:30:28 +0300
commitced6ef1a76f48adc489763dde9552d85a0745e6d (patch)
tree72b228705b97801e888f21a507dda4f12b8323ff
parent0b473ecaa8640695ca2f748231dd68d6fb79af41 (diff)
downloaddotfiles-ced6ef1a76f48adc489763dde9552d85a0745e6d.tar.gz
dotfiles-ced6ef1a76f48adc489763dde9552d85a0745e6d.tar.bz2
dotfiles-ced6ef1a76f48adc489763dde9552d85a0745e6d.zip
i3: new & improved
-rw-r--r--.config/i3/config##c.desktop,h.maus75
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
9floating_modifier $alt 9floating_modifier $alt
10 10
11# launch polybar 11## autostart
12exec --no-startup-id $HOME/.config/polybar/launch.sh &
13
14# autostart
15exec --no-startup-id xsettingsd & 12exec --no-startup-id xsettingsd &
16exec --no-startup-id picom -b 13exec --no-startup-id picom -b
17exec --no-startup-id flashfocus & 14exec --no-startup-id flashfocus &
@@ -21,7 +18,9 @@ exec --no-startup-id redshift-gtk &
21exec --no-startup-id nm-applet & 18exec --no-startup-id nm-applet &
22exec --no-startup-id udiskie --automount --file-manager thunar --tray --notify & 19exec --no-startup-id udiskie --automount --file-manager thunar --tray --notify &
23exec --no-startup-id /usr/lib/pam_kwallet_init 20exec --no-startup-id /usr/lib/pam_kwallet_init
24exec --no-startup-id remind -z -k'dunstify -i "view-calendar" "⏰ reminder!" "%s" &' ~/.reminders & 21exec --no-startup-id remind -z -k'dunstify -i "calendar" "⏰ reminder!" "%s" &' ~/.reminders &
22exec --no-startup-id /home/yigit/.local/bin/pulse-volume-watcher.py | xob -m 80 &
23exec --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
27exec --no-startup-id setxkbmap -model pc105 -layout us -variant colemak -option caps:backspace 26exec --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
40font pango:Iosevka 11 39font 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
47bindcode $mod+42 exec --no-startup-id ~/.local/bin/done 43bindcode $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 -
65bindsym Print exec flameshot gui 61bindsym Print exec flameshot gui
66 62
67# media keys 63# media keys
68bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 2%+ && amixer get Master | grep -Po '[0-9]+(?=%)' | head -1 > /tmp/xobpipe" 64bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 2%+"
69bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 2%- && amixer get Master | grep -Po '[0-9]+(?=%)' | head -1 > /tmp/xobpipe" 65bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 2%-"
70bindsym 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" 66bindsym XF86AudioMute exec --no-startup-id "amixer set Master toggle"
71bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause # for spotify 67bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause # for spotify
72bindsym XF86AudioPrev exec --no-startup-id playerctl previous 68bindsym XF86AudioPrev exec --no-startup-id playerctl previous
73bindsym XF86AudioNext exec --no-startup-id playerctl next 69bindsym 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
83bindcode $mod+Shift+32 exec ~/.local/bin/toggle_notifications.sh 79bindcode $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
88bindcode $mod+Shift+52 exec zotero 84bindcode $mod+Shift+52 exec zotero
89# thunar on mod+shift+t 85# thunar on mod+shift+t
90bindcode $mod+Shift+41 exec thunar 86bindcode $mod+Shift+41 exec thunar
91
92# start a terminal 87# start a terminal
93bindsym $mod+Return exec kitty 88bindsym $mod+Return exec kitty
89# start rofi with mod+s
90bindcode $mod+40 exec rofi -show combi
91# launch the poweroff menu
92bindsym $mod+Shift+Escape exec --no-startup-id ~/.local/bin/power.sh
94 93
95# kill focused window 94# kill focused window
96bindcode $mod+Shift+24 kill 95bindcode $mod+Shift+24 kill
97bindsym --whole-window $mod+button2 kill 96bindsym --whole-window $mod+button2 kill
98 97
99# start rofi with mod+s 98# change focus on mod+hnei (qwerty hjkl)
100bindcode $mod+40 exec rofi -show combi
101
102# change focus on mod+hnei
103bindcode $mod+43 focus left 99bindcode $mod+43 focus left
104bindcode $mod+44 focus down 100bindcode $mod+44 focus down
105bindcode $mod+45 focus up 101bindcode $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
139set $ws1 "1" 136set $ws1 "1"
140set $ws2 "2" 137set $ws2 "2"
141set $ws3 "3" 138set $ws3 "3"
@@ -145,12 +142,12 @@ set $ws6 "6"
145set $ws7 "7" 142set $ws7 "7"
146set $ws8 "8" 143set $ws8 "8"
147set $ws9 "9" 144set $ws9 "9"
148set $ws10 "10" 145set $ws10 "0"
149set $wsmusic "" 146set $wsmusic "music"
150set $wszotero "ζ" 147set $wszotero "zotero"
151set $wsdesktop "Ξ" 148set $wsdesktop "desktop"
152 149set $wsbrowser "browser"
153workspace $wsmusic output HDMI-0 150set $wssteam "steam"
154 151
155# switch to workspace 152# switch to workspace
156bindsym $mod+1 workspace $ws1 153bindsym $mod+1 workspace $ws1
@@ -161,11 +158,12 @@ bindsym $mod+5 workspace $ws5
161bindsym $mod+6 workspace $ws6 158bindsym $mod+6 workspace $ws6
162bindsym $mod+7 workspace $ws7 159bindsym $mod+7 workspace $ws7
163bindsym $mod+8 workspace $ws8 160bindsym $mod+8 workspace $ws8
164bindsym $mod+9 workspace $ws9 161bindsym $mod+9 workspace $wssteam
165bindsym $mod+0 workspace $ws10 162bindsym $mod+0 workspace $ws10
166bindsym $mod+m workspace $wsmusic 163bindsym $mod+m workspace $wsmusic
167bindcode $mod+49 workspace $wszotero 164bindcode $mod+49 workspace $wszotero
168bindcode $mod+60 workspace $wsdesktop 165bindcode $mod+60 workspace $wsdesktop
166bindcode $mod+21 workspace $wsbrowser
169 167
170# move focused container to workspace 168# move focused container to workspace
171bindsym $mod+Shift+1 move container to workspace $ws1 169bindsym $mod+Shift+1 move container to workspace $ws1
@@ -176,11 +174,12 @@ bindsym $mod+Shift+5 move container to workspace $ws5
176bindsym $mod+Shift+6 move container to workspace $ws6 174bindsym $mod+Shift+6 move container to workspace $ws6
177bindsym $mod+Shift+7 move container to workspace $ws7 175bindsym $mod+Shift+7 move container to workspace $ws7
178bindsym $mod+Shift+8 move container to workspace $ws8 176bindsym $mod+Shift+8 move container to workspace $ws8
179bindsym $mod+Shift+9 move container to workspace $ws9 177bindsym $mod+Shift+9 move container to workspace $wssteam
180bindsym $mod+Shift+0 move container to workspace $ws10 178bindsym $mod+Shift+0 move container to workspace $ws10
181bindsym $mod+Shift+m move container to workspace $wsmusic 179bindsym $mod+Shift+m move container to workspace $wsmusic
182bindcode $mod+Shift+49 move container to workspace $wszotero 180bindcode $mod+Shift+49 move container to workspace $wszotero
183bindcode $mod+Shift+60 move container to workspace $wsdesktop 181bindcode $mod+Shift+60 move container to workspace $wsdesktop
182bindcode $mod+Shift+21 move container to workspace $wsbrowser
184 183
185bindcode $mod+52 move container to output right 184bindcode $mod+52 move container to output right
186 185
@@ -188,25 +187,25 @@ bindcode $mod+52 move container to output right
188bindcode $mod+Shift+54 reload 187bindcode $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)
190bindcode $mod+Shift+27 restart 189bindcode $mod+Shift+27 restart
191# launch the poweroff menu
192bindsym $mod+Shift+Escape exec --no-startup-id ~/.local/bin/power.sh
193 190
194# for_window [class=".*"] border pixel 5
195default_border pixel 2 191default_border pixel 2
196for_window [class="Zotero" instance="Toplevel" title="Quick Format Citation"] floating enable 192for_window [class="Zotero" instance="Toplevel" title="Quick Format Citation"] floating enable
197for_window [class="Zotero" instance="Toplevel" title="Progress"] floating enable 193for_window [class="Zotero" instance="Toplevel" title="Progress"] floating enable
198for_window [class="zoom" title="Chat"] floating enable 194for_window [class="zoom" title="Chat"] floating enable
199for_window [class="Dia" window_role="toolbox_window"] floating enable 195for_window [class="Dia" window_role="toolbox_window"] floating enable
200for_window [class="Pavucontrol" title="Volume Control"] floating enable 196for_window [class="Pavucontrol" title="Volume Control"] floating enable
201assign [class="^Steam$"] 9
202assign [class="^Zotero$"] $wszotero
203 197
204# class border backgr. text indicator child_border 198assign [class="^Steam$"] $wssteam
205client.focused #458588 #285577 #ffffff #458588 #285577 199assign [class="^Brave-browser$"] $wsbrowser
206client.focused_inactive #b16286 #5f676a #ffffff #484e50 #5f676a 200assign [class="^Zotero$"] $wszotero
207client.unfocused #927374 #222222 #888888 #292d2e #222222 201for_window [class="Spotify"] move --no-auto-back-and-forth container to workspace $wsmusic
208client.urgent #2f343a #900000 #ffffff #900000 #900000 202
209client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c 203# class border background text indicator child_border
204client.focused #ae81ff #080808 #85dc85 #ff5454 #ae81ff
205client.focused_inactive #ae81ff #9e9e9e #080808 #ff5454 #5f676a
206client.unfocused #ae81ff #323437 #b2b2b2 #ff5454 #222222
207client.urgent #ae81ff #900000 #b2b2b2 #ff5454 #900000
208client.placeholder #ae81ff #0c0c0c #b2b2b2 #ff5454 #0c0c0c
210 209
211client.background #ffffff 210client.background #ffffff
212 211