Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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 somewhen, delete
- # this file and re-run i3-config-wizard(1).
- #
- # i3 config file (v4)
- #
- # Please see http://i3wm.org/docs/userguide.html for a complete reference!
- set $mod Mod4
- ############ i3
- #set-option -g lock-command vlock
- ############ i3-gaps
- #hide_edge_borders both
- for_window [class="^.*"] border pixel 3
- gaps inner 10
- gaps outer 0
- smart_gaps on
- smart_borders on
- # Font for window titles. Will also be used by the bar unless a different font
- # is used in the bar {} block below. ISO 10646 = Unicode
- font pango:DejaVu Sans Mono, Awesome 8
- # The font above is very space-efficient, that is, it looks good, sharp and
- # clear in small sizes. However, if you need a lot of unicode glyphs or
- # right-to-left text rendering, you should instead use pango for rendering and
- # chose a FreeType font, such as:
- # font pango:DejaVu Sans Mono 10
- # Use Mouse+$mod to drag floating windows to their wanted position
- floating_modifier $mod
- # Use xprop to get window information
- for_window [class="^Termite$" title="ssh-add"] floating enable
- for_window [class="Yad" title="DVI-I-1-1"] floating enable, move container to output DVI-I-1-1
- for_window [class="Yad" title="DVI-I-2-2"] floating enable, move container to output DVI-I-2-2
- for_window [class="Yad" title="eDP1-1"] floating enable, move container to output eDP1-1
- for_window [class="Blueman-manager"] floating enable
- for_window [class="keepassxc"] floating enable
- for_window [class="Bitcoin-Qt"] floating enable
- for_window [class="Astroid"] move container to workspace 2
- for_window [class="feh"] floating enable
- for_window [class="vimb"] move container to workspace 3
- workspace 1 output DVI-I-1-1
- workspace 2 output DVI-I-1-1
- workspace 3 output DVI-I-2-2
- workspace 4 output DVI-I-1-1
- workspace 5 output DVI-I-1-1
- workspace 6 output eDP-1
- workspace 7 output DVI-I-2-2
- bindsym --release Print exec import /home/ser/screenshot-`date +"%Y%m%dT%H:%M"`.png
- #bindsym $mod+Shift+I exec /home/ser/bin/id-displays
- # start a terminal
- bindsym $mod+Return exec /usr/bin/termite
- bindsym XF86Search exec /usr/bin/disper -C --cycle-stages="-S:-e"
- # kill focused window
- bindsym $mod+Shift+x kill
- bindsym $mod+Shift+q kill
- # rofi -levenshtein-sort -combi-modi window,run,run,ssh -show combi -modi combi
- # run,drun,window,ssh
- bindsym $mod+d exec rofi -show run -fg "#f1f1f1" -bg "#333333" -hlfg "#ffffff" -hlbg "#336699" -o 85
- bindsym $mod+Shift+D exec rofi -show ssh -fg "#f1f1f1" -bg "#333333" -hlfg "#ffffff" -hlbg "#336699" -o 85
- # change focus
- bindsym $mod+j focus left
- bindsym $mod+k focus down
- bindsym $mod+l focus up
- bindsym $mod+h 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+H 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
- # move workspace to display
- bindsym $mod+Control+Right move workspace to right
- bindsym $mod+Control+Left move workspace to left
- # split in horizontal orientation
- bindsym $mod+Shift+v split h
- # split in vertical orientation
- bindsym $mod+v split v
- # enter fullscreen mode for the focused container
- bindsym $mod+f fullscreen
- # change container layout (stacked, tabbed, toggle split)
- bindsym $mod+s layout stacking
- bindsym $mod+w layout tabbed
- bindsym $mod+e 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+c 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
- bindsym $mod+Shift+2 move container to workspace 2
- bindsym $mod+Shift+3 move container to workspace 3
- bindsym $mod+Shift+4 move container to workspace 4
- bindsym $mod+Shift+5 move container to workspace 5
- bindsym $mod+Shift+6 move container to workspace 6
- bindsym $mod+Shift+7 move container to workspace 7
- bindsym $mod+Shift+8 move container to workspace 8
- bindsym $mod+Shift+9 move container to workspace 9
- bindsym $mod+Shift+0 move container to 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 $mod+Shift+E exec "i3-msg exit"
- # Switch the screen layout to: LCD only; three screen layout
- bindsym $mod+Control+l exec "~/bin/dock layout"
- # Toggle the touchpad
- bindsym $mod+t exec "~/bin/touchpad"
- # Move focused floating window to the scratchpad
- bindsym $mod+minus move scratchpad
- # Restore scratchpad windows
- bindsym $mod+Shift+minus scratchpad show
- # 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"
- # Sreen brightness controls
- # sudo should be pkexec except for the fucking forking
- bindsym XF86MonBrightnessUp exec true $(pkexec brillo -A 10)
- bindsym XF86MonBrightnessDown exec true $(pkexec brillo -U 10)
- # Media player controls
- bindsym XF86AudioPlay exec playerctl play
- bindsym XF86AudioPause exec playerctl pause
- bindsym XF86AudioNext exec playerctl next
- bindsym XF86AudioPrev exec playerctl previous
- bindsym $mod+Shift+M exec /home/ser/bin/monitors
- bindsym $mod+Shift+S exec catfish
- bindsym $mod+x exec /home/ser/bin/superlock
- #bindsym $mod+Shift+X exec dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.Suspend" boolean:true
- #################################################
- # Sleep functions
- set $Locker /home/ser/bin/superlock
- set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
- mode "$mode_system" {
- bindsym l exec --no-startup-id $Locker, mode "default"
- bindsym e exec --no-startup-id i3-msg exit, mode "default"
- bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default"
- bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default"
- bindsym r exec --no-startup-id systemctl reboot, mode "default"
- bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
- # back to normal: Enter or Escape
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- bindsym $mod+Pause mode "$mode_system"
- #################################################
- #################################################
- # Other bindings
- bindsym $mod+b exec /home/ser/bin/bm
- bindsym $mod+Shift+B exec /home/ser/bin/clip
- bindsym $mod+q exec /home/ser/bin/queue
- #################################################
- for_window [class="Catfish"] floating enable
- for_window [class="Pavucontrol"] floating enable
- for_window [class="Arandr"] floating enable
- for_window [class="Keepassx"] floating enable
- focus_follows_mouse no
- exec --no-startup-id "/usr/bin/devmon"
- # Waaaaay less CPU than compton
- exec --no-startup-id "/usr/bin/xcompmgr -c -f"
- #exec --no-startup-id "/usr/bin/compton -cb --config .compton.conf"
- #exec --no-startup-id "/usr/bin/comptray"
- exec --no-startup-id "/home/ser/bin/dock layout ; dex -ae i3"
- exec --no-startup-id "xrandr --output eDP1 --dpi 165"
- exec --no-startup-id "xset dpms 300 900 1800"
- exec --no-startup-id "~/bin/background"
- exec --no-startup-id "xautolock -locker '/home/ser/bin/superlock'"
- exec --no-startup-id "/usr/bin/unclutter -idle 3"
- exec --no-startup-id "setxkbmap -option compose:ralt"
- exec --no-startup-id "twmnd"
- exec --no-startup-id "/home/ser/bin/polybar"
- exec --no-startup-id "google-drive-ocamlfuse -label intlsos /home/ser/dtrm.tech"
- exec --no-startup-id "google-drive-ocamlfuse -label gdrive /home/ser/gdrive"
- exec --no-startup-id "/usr/bin/volumeicon"
- exec --no-startup-id "/usr/bin/greenclip"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement