dotfiles/.config/i3/config

273 lines
8.8 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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_from_resource $bright i3wm.color2 #ff0000
#set_from_resource $bg i3wm.color7 #ff0000
set_from_resource $light i3wm.color4 #ff0000
set_from_resource $fg i3wm.color4 #ff0000
set_from_resource $bg i3wm.color3 #ff0000
set $bg-color #000000
set $inactive-bg-color #2f343f
set $text-color #FFFFFF
set $inactive-text-color #676E7D
set $urgent-bg-color #E53935
set $bordercolor #c5cbd6
set $bg-highlight #556177
gaps inner 10
gaps outer 7
gaps top -5
smart_gaps on
set $mode_gaps Toggle gaps: (1) on (2) off
bindsym $mod+g mode "$mode_gaps"
mode "$mode_gaps" {
bindsym 1 mode "default", gaps inner all set 10, gaps outer all set 4, gaps top all set -5
bindsym 2 mode "default", gaps inner all set 0, gaps outer all set 0
bindsym Return mode "default"
bindsym Escape mode "default"
}
# Brightness
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 5
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 5
bindsym Ctrl+XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 1
bindsym Ctrl+XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 1
# Auto startup
exec_always --no-startup-id xfce4-power-manager
#exec --no-startup-id xrandr | grep -q HDMI1 && xrandr --output eDP1 --auto --output HDMI1 --auto --above eDP1
# ! Lock Screen
#exec_always --no-startup-id xss-lock -- i3lock -i /home/daan/Pictures/wallpapers/wallpaper.png &
bindsym $mod+shift+x exec --no-startup-id i3lock -i $backgroud &
exec_always --no-startup-id xsetwacom set "Wacom HID 50DB Finger touch" Gesture off
exec_always --no-startup-id libinput-gestures-setup start
#exec_always --no-startup-id export QT_QPA_PLATFORMTHEME="qt5ct"
exec_always --no-startup-id /usr/lib/kdeconnectd &
exec_always --no-startup-id indicator-kdeconnect
#exec_always --no-startup-id nm-applet --agent
exec_always --no-startup-id ~/.config/i3/auto-xrandr
#
exec_always --no-startup-id ~/.config/compton/launch.sh
exec_always --no-startup-id ~/.config/polybar/launch.sh
#exec_always --no-startup-id /home/daan/.screenlayout/HDMI.sh
exec_always --no-startup-id ~/setbg.sh &
#exec_always --no-startup-id hsetroot -solid "#ffffff"
exec_always --no-startup-id dunst &
#exec_always --no-startup-id ~/.config/i3/oneko.sh
exec_always --no-startup-id ~/.config/tilda/launch.sh &
exec_always --no-startup-id touchegg &
#bindsym $mod+w exec --no-startup-id guake-toggle &
# Application
bindsym $mod+Shift+e exec --no-startup-id ~/.config/i3/exit.sh
bindsym $mod+Shift+m exec --no-startup-id dmenu_script minecraft.sh
bindsym $mod+Shift+f exec --no-startup-id dmenu_script factorio.sh
bindsym $mod+t exec --no-startup-id ~/.config/i3/run.sh
bindsym $mod+Shift+g exec --no-startup-id dmenu_script lutris.sh
#exec_always --no-startup-id ~/.config/i3/rotate.sh
bindsym $mod+Shift+p exec --no-startup-id systemctl --user restart music
bindsym $mod+Ctrl+p exec --no-startup-id systemctl --user stop music
bindsym $mod+Shift+s exec --no-startup-id emacs
bindsym $mod+Shift+n exec networkmanager_dmenu
# Rotation
bindsym $mod+Ctrl+Shift+Down exec --no-startup-id ~/.config/i3/rotate.sh normal
bindsym $mod+Ctrl+Shift+Up exec --no-startup-id ~/.config/i3/rotate.sh bottom-up
bindsym $mod+Ctrl+Shift+Right exec --no-startup-id ~/.config/i3/rotate.sh left-up
bindsym $mod+Ctrl+Shift+Left exec --no-startup-id ~/.config/i3/rotate.sh right-up
# window border size
new_window pixel 0
new_float pixel 0
# default font
font pango:Open Sans 10
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec termite
# kill focused window
bindsym $mod+Shift+q kill
# start rofi
bindsym $mod+d exec rofi -show run --no-startup-id
# workspaces
workspace 1 output eDP1
workspace 2 output HDMI1
workspace 3 output HDMI1
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+m 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+i move up
bindsym $mod+Shift+l move right
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
bindsym $mod+Control+Left workspace prev
bindsym $mod+Control+Right workspace next
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# 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+q 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
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
bindsym $mod+Shift+greater move workspace to output up
bindsym $mod+Shift+less move workspace to output down
# 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 exec ~/.config/i3/auto-xrandr && i3-msg 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'"
# 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 windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows 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 m 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"
# Pulse Audio controls
bindsym XF86AudioRaiseVolume exec --no-startup-id sh -c "pactl set-sink-mute 1 false && pactl set-sink-volume 1 +5%"
bindsym XF86AudioLowerVolume exec --no-startup-id sh -c "pactl set-sink-mute 1 false && pactl set-sink-volume 1 -5%"
bindsym XF86AudioMute exec --no-startup-id sh -c "pactl set-sink-mute 1 toggle"
# Workspace assignment
assign [class="^code-oss$"] 3
for_window [class="^code-oss$"] focus
assign [window_role="browser"] 2
for_window [window_role="browser"] focus
## Plasma Integration
# Try to kill the wallpaper set by Plasma (it takes up the entire workspace and hides everythiing)
exec --no-startup-id wmctrl -c Plasma
for_window [title="Desktop — Plasma"] kill; floating enable; border none
## Avoid tiling popups, dropdown windows from plasma
# for the first time, manually resize them, i3 will remember the setting for floating windows
for_window [class="plasmashell"] floating enable;
for_window [class="Plasma"] floating enable; border none
for_window [title="plasma-desktop"] floating enable; border none
for_window [title="win7"] floating enable; border none
for_window [class="krunner"] floating enable; border none
for_window [class="Kmix"] floating enable; border none
for_window [class="Klipper"] floating enable; border none
for_window [class="Plasmoidviewer"] floating enable; border none