# This file has been auto-generated by i3-config-wizard(1). # It will not be overwritten, so edit it as you like. # # Should you change your keyboard layout some time, delete # this file and re-run i3-config-wizard(1). # ########################### # xbindkeys -k # # xprop | grep -i 'class' # ########################### # i3 config file (v4) # # Please see http://i3wm.org/docs/userguide.html for a complete reference! # set modifiers ## ## Win to be used to issue commands application related, like launching programs ## Alt to be used to issue commands desktop related, like modifying layout of windows ## Ctrl in combination with the other two, to issue special commands. 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 #set $rofi "rofi -show run -font 'Droid Sans Mono 10' -theme Monokai -width 40 -location 2 -lines 7 -bw 2 -yoffset -2" #set $rofissh "rofi -show ssh -font 'Droid Sans Mono 10' -theme Monokai" # Workspace names # # to display names or symbols instead of plain workspace numbers you can use # # something like: set $ws1 1:mail # # set $ws2 2:x # 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 workspace $ws1 gaps outer 0 workspace $ws2 gaps inner 0 workspace $ws2 gaps outer 0 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:"Droid Sans 10" # Use Mouse+$win to drag floating windows to their wanted position floating_modifier $win # start a terminal # 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 # 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+l exec --no-startup-id i3lock-fancy # 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 # 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+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" # 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 bindsym --whole-window $alt+button2 kill # 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 bindsym $alt+j focus left bindsym $alt+k focus down bindsym $alt+l focus up bindsym $alt+ograve focus right # alternatively, you can use the cursor keys: bindsym $alt+Left focus left bindsym $alt+Down focus down bindsym $alt+Up focus up bindsym $alt+Right focus right # move focused window bindsym $alt+Shift+j move left bindsym $alt+Shift+k move down bindsym $alt+Shift+l move up bindsym $alt+Shift+ograve move right # alternatively, you can use the cursor keys: bindsym $alt+Shift+Left move left bindsym $alt+Shift+Down move down bindsym $alt+Shift+Up move up bindsym $alt+Shift+Right move right # split in horizontal orientation bindsym $alt+h split h;exec notify-send 'splitting windows horizontally' # split in vertical orientation 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+w layout tabbed;exec notify-send 'layout tabbed' 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 # change focus between tiling / floating windows bindsym $alt+space focus mode_toggle # focus the parent container bindsym $alt+a focus parent # focus the child container #bindsym $win+d focus child # switch to workspace bindsym Ctrl+F1 workspace $ws1 bindsym Ctrl+F2 workspace $ws2 bindsym Ctrl+F3 workspace $ws3 bindsym Ctrl+F4 workspace $ws4 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+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+XF86AudioPrev workspace prev bindsym $win+XF86AudioNext workspace next # assign programs to specific workspaces 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="trojita"] $ws6 assign [class="Joplin"] $ws8 assign [class="Telegram"] $ws7 # 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 #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 for_window [class="^.*"] border pixel 0 gaps outer 0 gaps inner 10 workspace $ws1 gaps inner 0 workspace $ws2 gaps inner 0 workspace $ws5 gaps inner 0 # reload the configuration file bindsym $alt+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $alt+Shift+r restart # exit i3 (logs you out of your X session) #bindsym $win+Shift+e exec "i3-nagbar -t warning -m 'Exit i3? This will end your session.' -b 'Yes, exit i3' 'i3-msg exit'" # Set shut down, restart and locking features bindsym $win+x exec --no-startup-id blackpearl-powermenu.sh # resize window (you can also use the mouse for that) mode "resize" { # These bindings trigger as soon as you enter the resize mode bindsym j resize shrink width 10 px or 10 ppt bindsym k resize grow height 10 px or 10 ppt bindsym l resize shrink height 10 px or 10 ppt bindsym ograve resize grow width 10 px or 10 ppt # same bindings, but for the arrow keys bindsym Left resize shrink width 10 px or 10 ppt bindsym Down resize grow height 10 px or 10 ppt bindsym Up resize shrink height 10 px or 10 ppt bindsym Right resize grow width 10 px or 10 ppt # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } bindsym $win+Ctrl+r mode "resize" set $wine_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) set $wine_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global) bindsym $win+Shift+g mode "$wine_gaps" mode "$wine_gaps" { bindsym o mode "$wine_gaps_outer" bindsym i mode "$wine_gaps_inner" bindsym Return mode "$wine_gaps" bindsym Escape mode "default" } mode "$wine_gaps_outer" { bindsym plus gaps outer current plus 5 bindsym minus gaps outer current minus 5 bindsym 0 gaps outer current set 0 bindsym Shift+plus gaps outer all plus 5 bindsym Shift+minus gaps outer all minus 5 bindsym Shift+0 gaps outer all set 0 bindsym Return mode "$wine_gaps" bindsym Escape mode "default" } mode "$wine_gaps_inner" { bindsym plus gaps inner current plus 5 bindsym minus gaps inner current minus 5 bindsym 0 gaps inner current set 0 bindsym Shift+plus gaps inner all plus 5 bindsym Shift+minus gaps inner all minus 5 bindsym Shift+0 gaps inner all set 0 bindsym Return mode "$wine_gaps" bindsym Escape mode "default" } # 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 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 # start feh-blur exec --no-startup-id feh-blur -b 7 --no-animate -d