# 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). # # i3 config file (v4) # # Please see https://i3wm.org/docs/userguide.html for a complete reference! set $mod Mod4 set $alt Mod1 #set $term terminology #set $term i3-sensible-terminal #set $term xfce4-terminal set $term alacritty #set $file_manager pcmanfm #set $file_manager nemo set $file_manager thunar # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:monospace 8 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). #font pango:DejaVu Sans Mono 8 # Before i3 v4.8, we used to recommend this one as the default: # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 # The font above is very space-efficient, that is, it looks good, sharp and # clear in small sizes. However, its unicode glyph coverage is limited, the old # X core fonts rendering does not support right-to-left and this being a bitmap # font, it doesn’t scale on retina/hidpi displays. # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod #Startup Programs - Autostart exec --no-startup-id export $(dbus-launch) exec --no-startup-id /usr/bin/dunst exec --no-startup-id osdsh -c white -d 3 -o 2 -p 0 -a 1 exec --no-startup-id xfce4-power-manager exec --no-startup-id xautolock -time 30 -locker '~/.config/i3/lock.sh' exec --no-startup-id fehbg 2 exec --no-startup-id xset dpms 3600 3600 3600 exec --no-startup-id xset s 3600 exec --no-startup-id xset s off exec --no-startup-id xset -dpms exec --no-startup-id numlockx exec --no-startup-id xbindkeys exec --no-startup-id pulseaudio # start a terminal #bindsym $mod+Return exec i3-sensible-terminal #bindsym $mod+Return exec $term bindsym $mod+Return exec $term -e "zsh" bindsym $mod+shift+f fullscreen toggle global # kill focused window bindsym $mod+Shift+q kill bindsym $mod+q kill #;focus left bindsym $alt+F4 kill #;focus left # start dmenu (a program launcher) bindsym $mod+d exec dmenu_run #bindsym Control+space exec --no-startup-id xfce4-terminal -T 'fzf-menu' -e 'i3-dmenu-desktop --dmenu=fzf' #bindsym Control+space exec --no-startup-id $term -T 'fzf-menu' -e 'window_switcher' bindsym Control+space exec dmenu_run bindsym Control+Shift+space exec --no-startup-id dunstctl close-all for_window [title="fzf-menu"] floating enable for_window [class="dosbox"] floating disable for_window [class="Yad"] floating enable border pixel 0 #bindsym Control+space exec $HOME/.config/i3/focus.sh #bindsym Control+space exec "rofi -combi-modi window,drun,ssh,run -show combi -modi combi -theme input-emph-topbar.rasi" bindsym $alt+F2 exec dmenu_run # There also is the (new) i3-dmenu-desktop which only displays applications # shipping a .desktop file. It is a wrapper around dmenu, so you need that # installed. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop # change focus bindsym $mod+h focus left bindsym $mod+j focus down bindsym $mod+k focus up bindsym $mod+l focus right # alternatively, you can use the cursor keys: bindsym $mod+Left focus left bindsym $mod+Down focus down bindsym $mod+Up focus up bindsym $mod+Right focus right # move focused window bindsym $mod+Shift+j move left bindsym $mod+Shift+k move down bindsym $mod+Shift+l move up bindsym $mod+Shift+semicolon move right # alternatively, you can use the cursor keys: bindsym $mod+Shift+Left move left bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # split in horizontal orientation #bindsym $mod+| split h # split in vertical orientation #bindsym $mod+v split v # enter fullscreen mode for the focused container bindsym $mod+f fullscreen toggle #bindsym $mod+Shift+Up fullscreen toggle # change container layout (stacked, tabbed, toggle split) #bindsym $mod+z layout stacking bindsym $mod+w layout tabbed bindsym $mod+a layout toggle split # toggle tiling / floating bindsym $mod+Shift+space floating toggle # change focus between tiling / floating windows bindsym $mod+space focus mode_toggle # focus the parent container #bindsym $mod+a focus parent # focus the child container #bindsym $mod+d focus child # switch to workspace bindsym $mod+1 workspace 1 bindsym $mod+2 workspace 2 bindsym $mod+3 workspace 3 bindsym $mod+4 workspace 4 bindsym $mod+5 workspace 5 bindsym $mod+6 workspace 6 bindsym $mod+7 workspace 7 bindsym $mod+8 workspace 8 bindsym $mod+9 workspace 9 bindsym $mod+0 workspace 10 # move focused container to workspace bindsym $mod+Shift+1 move container to workspace 1; workspace 1 bindsym $mod+Shift+2 move container to workspace 2; workspace 2 bindsym $mod+Shift+3 move container to workspace 3; workspace 3 bindsym $mod+Shift+4 move container to workspace 4; workspace 4 bindsym $mod+Shift+5 move container to workspace 5; workspace 5 bindsym $mod+Shift+6 move container to workspace 6; workspace 6 bindsym $mod+Shift+7 move container to workspace 7; workspace 7 bindsym $mod+Shift+8 move container to workspace 8; workspace 8 bindsym $mod+Shift+9 move container to workspace 9; workspace 9 bindsym $mod+Shift+0 move container to workspace 10; workspace 10 # reload the configuration file bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" #bindsym Print exec "deepin-screenshot" bindsym --release Print exec "screenshot" bindsym $mod+t exec "time_osd" # resize window (you can also use the mouse for that) mode "resize" { # These bindings trigger as soon as you enter the resize mode # Pressing left will shrink the window’s width. # Pressing right will grow the window’s width. # Pressing up will shrink the window’s height. # Pressing down will grow the window’s height. 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 semicolon 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 $mod+r mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { #status_command i3status -c /home/metalx1000/.config/i3/status.config #status_command i3blocks -c /home/metalx1000/.config/i3/blocks.config status_command i3blocks -c $HOME/.config/i3/blocks.config #status_command ~/.config/i3/status.sh mode hide colors { background #000000 statusline #ffffff focused_workspace #ffffff #285577 active_workspace #ffffff #333333 inactive_workspace #888888 #222222 urgent_workspace #ffffff #900000 } } # Pulse Audio controls #bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% #bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% #decrease sound volume bindsym XF86AudioRaiseVolume exec /usr/local/bin/vol up bindsym XF86AudioLowerVolume exec /usr/local/bin/vol down #decrease sound volume bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle # mute sound bindsym XF86Favorites exec /usr/local/bin/paswitcher bindsym $mod+F7 exec /usr/local/bin/autodetect_monitors #logitech G815 volume to mouse control bindsym $mod+XF86AudioRaiseVolume exec xte 'mouseclick 4' bindsym $mod+XF86AudioLowerVolume exec xte 'mouseclick 5' bindsym $mod+g exec google_search #music controls bindsym XF86AudioPlay exec echo cycle pause | socat - /tmp/mpvsocket bindsym XF86AudioPause exec echo cycle pause | socat - /tmp/mpvsocket bindsym XF86AudioStop exec echo cycle pause | socat - /tmp/mpvsocket bindsym XF86AudioPrev exec echo playlist_prev | socat - /tmp/mpvsocket bindsym XF86AudioNext exec echo playlist_next | socat - /tmp/mpvsocket #bindsym $mod+XF86Favorites exec /usr/local/bin/dmusic music #workspaces bindsym $mod+semicolon workspace prev bindsym $mod+XF86AudioPrev workspace prev ##bindsym $mod+Shift+XF86Back bindsym $mod+XF86AudioNext workspace next bindsym $mod+XF86Back exec /usr/local/bin/rotate DVI-I-3 left && fehbg 1 bindsym $mod+XF86Forward exec /usr/local/bin/rotate DVI-I-3 normal && fehbg #screen lock bindsym $alt+l exec --no-startup-id ~/.config/i3/lock.sh bindsym $alt+Control+l exec --no-startup-id ~/.config/i3/lock.sh bindsym $mod+p exec --no-startup-id paswitcher #backlight brightness #bindsym $mod+plus exec xbacklight -inc 10 #bindsym $mod+minus exec xbacklight -dec 10 bindsym $mod+plus exec brightness up bindsym XF86MonBrightnessUp exec brightness up bindsym $mod+minus exec brightness down bindsym XF86MonBrightnessDown exec brightness down #disblae mouse hover focus_follows_mouse no #window border style #new_window none new_window 1pixel #default_border pixel 3 #mouse stuff # The middle button and a modifer over any part of the window kills the window bindsym --whole-window $mod+button2 kill # The right button toggles floating #bindsym button3 floating toggle bindsym --whole-window $mod+button3 floating toggle #GIMP #for_window [title="GIMP Startup"] move workspace gimp;workspace gimp #for_window [class="Gimp"] move workspace gimp #Blender #for_window [title="Blender"] move workspace blender;workspace blender #for_window [class="Blender"] move workspace blender;workspace blender #Firefox for_window [title="Firefox"] move workspace 2;workspace 2 for_window [class="Firefox"] move workspace 2;workspace 2 #doom for_window [title="prboom"] move workspace 2;workspace 2 for_window [class="prboom"] move workspace 2;workspace 2 #MOD + C to move all chrome windows to workspace 2 and move there #bindsym $mod+c [title="Firefox"] move workspace 2;[class="Firefox"] move workspace 2; move workspace to output left;workspace 2 #Chromium for_window [title="Chromium"] move workspace 2;workspace 2 for_window [class="Chromium"] move workspace 2;workspace 2 #MOD + C to move all chrome windows to workspace 2 and move there #bindsym $mod+c [title="Chromuim"] move workspace 2;[class="Chromium"] move workspace 2; move workspace to output left;workspace 2 #Brave for_window [title="Brave"] move workspace 2;workspace 2 for_window [class="Brave"] move workspace 2;workspace 2 #MOD + C to move all chrome windows to workspace 2 and move there bindsym $mod+c [title="Brave"] move workspace 2;[class="Brave"] move workspace 2; move workspace to output left;workspace 2 #Chrome for_window [title="Chrome"] move workspace 2;workspace 2 for_window [class="Chrome"] move workspace 2;workspace 2 #MOD + C to move all chrome windows to workspace 2 and move there #bindsym $mod+c [title="Chrome"] move workspace 2;[class="Google-chrome"] move workspace 2; move workspace to output left;workspace 2 # File Browser # Open on workspace 7 in not already open - and move to workspace 7 # bindsym $mod+e [class="Pcmanfm"] move workspace files;workspace files;\ # exec [ `wmctrl -lp |grep "$(pidof pcmanfm)"|wc -l` -gt 0 ]|| $file_manager;\ # move workspace to output left bindsym $mod+e [class="Thunar"] move workspace files;workspace files;\ move workspace to output left;\ exec filemanger_shift; # exec [ `wmctrl -lp |grep "$(pidof $file_manager)"|wc -l` -gt 0 || $file_manager ];\ # for_window [class="Pcmanfm"] move workspace 7;workspace 7 #Kdenlive #for_window [title="Kdenlive"] move workspace kdenlive;workspace kdenlive #for_window [class="Kdenlive"] move workspace kdenlive;workspace kdenlive #Work Space Bindings bindsym $mod+Prior workspace prev bindsym $mod+Next workspace next #move workspace to left bindsym $mod+m move workspace to output left #focus on Window Active - example: chrome tab open focus_on_window_activation focus #bindsym $mod+t exec /usr/local/bin/changecase.sh #use mpv to play youtube video from clipboard bindsym $mod+y exec ytplay bindsym $mod+$alt+y exec ytsong #paste second clipboard bindsym $mod+Insert exec sleep .5 && exec xte "str $(xclip -o)" bindsym $mod+i exec sleep .5 && exec xte "str $(xclip -o)" #tinyURL creator #bindsym $mod+t exec tinyurl #emoji Short cut bindsym $mod+$alt+e exec emojis