X-Git-Url: https://git.danix.xyz/?p=my-dotfiles.git;a=blobdiff_plain;f=i3%2Fconfig;fp=i3%2Fconfig;h=c000eac03aad195903d3a331d8297ac815910d63;hp=cd7cfe8a0494664394482ecf7eb0dd0f7683977b;hb=7abef725078fc52196b630c95f354fb58864c743;hpb=6be4fcd546b01b14b5f06306ab5b7c0391913bfa diff --git a/i3/config b/i3/config index cd7cfe8..c000eac 100644 --- a/i3/config +++ b/i3/config @@ -23,6 +23,12 @@ set $win Mod4 set $alt Mod1 set $ctrl Ctrl +# browser variable +set $browser firefox +set $incognito-browser firefox --private-window +# editor variable +set $prog-editor sublime_text + # title alignment #title_align center @@ -34,14 +40,14 @@ set $ctrl Ctrl # # something like: set $ws1 1:mail # # set $ws2 2:x # -set $ws1 "1:web" -set $ws2 "2:editor" -set $ws3 "3:console" -set $ws4 "4:ssh" -set $ws5 "5:graphic" -set $ws6 "6:editor2" -set $ws7 "7:chat" -set $ws8 "8:music" +set $ws1 "web" +set $ws2 "editor" +set $ws3 "console" +set $ws4 "ssh" +set $ws5 "graphic" +set $ws6 "editor2" +set $ws7 "chat" +set $ws8 "music" # per workspace gaps workspace $ws1 gaps inner 0 @@ -58,41 +64,66 @@ font pango:"Droid Sans 10" floating_modifier $win # start a terminal -bindsym $alt+Return exec urxvt +# macropad 5 +bindsym $alt+Return exec --no-startup-id alacritty +# macropad Shift+5 +bindsym Shift+$alt+Return exec --no-startup-id blackpearl-sshmenu.sh + # custom binding -bindsym Shift+$ctrl+l exec --no-startup-id xclip -o | qrencode -o - | feh -Z - +# macropad 4 +bindsym Shift+$ctrl+l exec --no-startup-id clipmenu -no-lazy-grab -show run -theme blackpearl/runner +bindsym $alt+Shift+$ctrl+l exec --no-startup-id xclip -o | qrencode -o - | feh -Z - bindsym Print exec --no-startup-id blackpearl-scrotmenu.sh bindsym $alt+Menu exec --no-startup-id blackpearl-utilsmenu.sh +bindsym $win+Menu exec --no-startup-id blackpearl-appsmenu.sh bindsym $alt+Escape --release exec xkill bindsym $win+e exec pcmanfm-qt +# macropad 3 +bindsym $win+g exec gimp #bindsym $win+x exec --no-startup-id i3-exit -bindsym $win+s exec --no-startup-id wol d4:c9:ef:f1:c9:24 +#bindsym $win+s exec --no-startup-id wol d4:c9:ef:f1:c9:24 bindsym $win+l exec --no-startup-id i3lock-fancy -bindsym $win+t exec flatpak run io.typora.Typora -bindsym $win+w exec vivaldi +# macropad 1 +bindsym $win+w exec $browser +# macropad Shift+1 +bindsym $win+Shift+w exec $incognito-browser bindsym XF86Calculator exec kcalc bindsym XF86Sleep exec i3suspend -bindsym $win+Shift+w exec "vivaldi --incognito" -bindsym $win+h exec --no-startup-id blackpearl-sshmenu.sh -bindsym $win+r exec atom +# macropad 2 +bindsym $win+r exec $prog-editor +bindsym $win+Shift+r exec Typora bindsym XF86HomePage exec --no-startup-id blackpearl-appsmenu.sh -bindsym $win+p exec uxterm -T "spt" -geometry 90x30+800+30 -e spt -bindsym $win+Shift+t exec flatpak run org.telegram.desktop +#bindsym $win+p exec uxterm -T "spt" -geometry 90x30+800+30 -e spt +bindsym $win+m exec Telegram # window switching bindings bindsym $alt+Tab exec --no-startup-id "blackpearl-window.sh desktop" bindsym $alt+Ctrl+Tab exec --no-startup-id "blackpearl-window.sh all" -# volume binding +# multimedia binding +# macropad top encoder bindsym XF86AudioMute exec --no-startup-id pamixer -t bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d 5 bindsym XF86AudioRaiseVolume exec --no-startup-id pamixer -i 5 +# macropad bottom encoder +bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause +bindsym XF86AudioPrev exec --no-startup-id playerctl previous +bindsym XF86AudioNext exec --no-startup-id playerctl next + +# brightness bindings +# macropad Alt + top encoder +bindsym $alt+XF86AudioLowerVolume exec --no-startup-id monitor-light.sh dec 10 +bindsym $alt+XF86AudioRaiseVolume exec --no-startup-id monitor-light.sh inc 10 # kill focused window #bindsym $ctrl+Shift+q kill -# start dmenu (a program launcher) +# restart polybar +# macropad Alt + bottom encoder +bindsym $alt+XF86AudioPlay exec --no-startup-id polybar-msg cmd restart + +# start rofi in dmenu mode (a program launcher) bindsym $alt+F2 exec --no-startup-id blackpearl-runner.sh # change focus @@ -120,17 +151,17 @@ bindsym $alt+Shift+Up move up bindsym $alt+Shift+Right move right # split in horizontal orientation -bindsym $alt+h split h;exec notify-send 'split horizontally' +bindsym $alt+h split h;exec notify-send 'splitting windows horizontally' # split in vertical orientation -bindsym $alt+v split v;exec notify-send 'split vertically' +bindsym Shift+$alt+h split v;exec notify-send 'splitting windows vertically' # enter fullscreen mode for the focused container bindsym $alt+f fullscreen toggle # change container layout (stacked, tabbed, toggle split) -bindsym $alt+s layout stacking;exec notify-send 'layout stacking' bindsym $alt+w layout tabbed;exec notify-send 'layout tabbed' -bindsym $alt+e layout toggle split;exec notify-send 'layout split' +bindsym Shift+$alt+w layout stacking;exec notify-send 'layout stacking' +bindsym Ctrl+$alt+w layout toggle split;exec notify-send 'layout split' # toggle tiling / floating bindsym $alt+Shift+space floating toggle @@ -149,55 +180,53 @@ bindsym Ctrl+F1 workspace $ws1 bindsym Ctrl+F2 workspace $ws2 bindsym Ctrl+F3 workspace $ws3 bindsym Ctrl+F4 workspace $ws4 -bindsym Ctrl+F5 workspace $ws5 -bindsym Ctrl+F6 workspace $ws6 -bindsym Ctrl+F7 workspace $ws7 -bindsym Ctrl+F8 workspace $ws8 +bindsym Shift+Ctrl+F1 workspace $ws5 +bindsym Shift+Ctrl+F2 workspace $ws6 +bindsym Shift+Ctrl+F3 workspace $ws7 +bindsym Shift+Ctrl+F4 workspace $ws8 # move focused container to workspace -bindsym $win+Shift+1 move container to workspace $ws1 -bindsym $win+Shift+2 move container to workspace $ws2 -bindsym $win+Shift+3 move container to workspace $ws3 -bindsym $win+Shift+4 move container to workspace $ws4 -bindsym $win+Shift+5 move container to workspace $ws5 -bindsym $win+Shift+6 move container to workspace $ws6 -bindsym $win+Shift+7 move container to workspace $ws7 -bindsym $win+Shift+8 move container to workspace $ws8 +bindsym $win+Ctrl+F1 move container to workspace $ws1 +bindsym $win+Ctrl+F2 move container to workspace $ws2 +bindsym $win+Ctrl+F3 move container to workspace $ws3 +bindsym $win+Ctrl+F4 move container to workspace $ws4 +bindsym $win+Shift+Ctrl+F1 move container to workspace $ws5 +bindsym $win+Shift+Ctrl+F2 move container to workspace $ws6 +bindsym $win+Shift+Ctrl+F3 move container to workspace $ws7 +bindsym $win+Shift+Ctrl+F4 move container to workspace $ws8 # navigate workspaces #bindsym $win+Home workspace $ws1 #bindsym $win+End workspace $ws8 -bindsym $win+Prior workspace prev -bindsym $win+Next workspace next - -# navigate workspaces next / previous -#bindsym $win+Ctrl+j workspace prev -#bindsym $win+Ctrl+ograve workspace next -#bindsym $win+Ctrl+Right workspace next -#bindsym $win+Ctrl+Left workspace prev +bindsym $win+XF86AudioPrev workspace prev +bindsym $win+XF86AudioNext workspace next # assign programs to specific workspaces -assign [title="ssh"] $ws4 -assign [class="URxvt"] $ws3 -assign [class="Atom"] $ws2 +assign [class="Firefox"] $ws1 +assign [class="Sublime_text"] $ws2 +for_window [title="^ssh*"] move to workspace $ws4 +assign [class="Alacritty"] $ws3 +assign [class="Gimp"] $ws5 assign [class="Typora"] $ws6 -assign [class="Vivaldi-stable"] $ws1 +assign [class="trojita"] $ws6 +assign [class="Joplin"] $ws8 assign [class="Telegram"] $ws7 -assign [class="gimp-2.10"] $ws5 -assign [title="^spt$"] $ws8 # open specific apps in floating mode for_window [class="kcalc"] floating enable border pixel 1 for_window [class="lxsudo"] floating enable border pixel 1 for_window [title="^spt$"] floating enable border pixel 1 +# trojita starts in tabbed layout +for_window [class="trojita"] layout tabbed + # switch to workspace with urgent window automatically for_window [urgent=latest] focus -client.focused #349f86 #349f85 #000088 #00C1FF -client.focused_inactive #2C2C2C #2C2C2C #ffffff #2C2C2C -client.unfocused #2C2C2C #2C2C2C #ffffff #2C2C2C -client.urgent #00C1FF #00C1FF #000088 #00C1FF +client.focused #f57c00 #ffb74d #303030 #7986cb +client.focused_inactive #303030 #303030 #ffb74d #303030 +client.unfocused #303030 #303030 #BDBDBD #303030 +client.urgent #D32F2F #D32F2F #303030 #D32F2F # window borders hide_edge_borders both @@ -280,30 +309,35 @@ mode "$wine_gaps_inner" { bindsym Escape mode "default" } - -# start kdeconnect -exec --no-startup-id kdeconnect-indicator - -# start tint2 i3status -exec --no-startup-id tint2 -c ~/.config/tint2/i3status.tint2rc - -# start tint2 bar -exec --no-startup-id tint2 -c ~/.config/tint2/minima.tint2rc - -# start pulseaudio daemon -exec --no-startup-id start-pulseaudio-x11 +# start both polybar +exec_always --no-startup-id $HOME/bin/run-polybar.sh # start networkmanager applet exec --no-startup-id nm-applet # start lxqt-notificationd exec --no-startup-id lxqt-notificationd + +# start pulseaudio daemon +exec --no-startup-id start-pulseaudio-x11 + +# start dunst #exec --no-startup-id dunst -# start keepassxc -#exec --no-startup-id keepassxc +# start tint2 i3status +#exec --no-startup-id tint2 -c ~/.config/tint2/i3status.tint2rc + +# start tint2 bar +#exec --no-startup-id tint2 -c ~/.config/tint2/minima.tint2rc + +# start kdeconnect +#exec --no-startup-id kdeconnect-indicator + +# start redshift applet +#exec --no-startup-id redshift-gtk + # start qtpass -exec --no-startup-id qtpass +#exec --no-startup-id qtpass -# start audio icon -exec --no-startup-id pnmixer +# start feh-blur +exec --no-startup-id feh-blur -b 7 --no-animate -d