mirror of
https://github.com/He4eT/dotfiles.git
synced 2026-05-04 23:47:23 +00:00
207 lines
6.1 KiB
Text
207 lines
6.1 KiB
Text
# [Startup]
|
||
|
||
exec --no-startup-id polybar top
|
||
exec --no-startup-id setxkbmap -option 'grp:alt_space_toggle'
|
||
|
||
# compton: Xubuntu 20.04 ThinkPad E14
|
||
exec --no-startup-id compton -cb --shadow-exclude '_NET_WM_NAME@:s = "rofi"' -o 1 --shadow-exclude 'x <= 0 && x2 >= 1920 && y <= 30 && y2 >= 1020' --vsync --backend xr_glx_hybrid --vsync-use-glfinish
|
||
|
||
# compton: Xubuntu 18.04 Samsung [backup]
|
||
# exec --no-startup-id ~/.local/bin/compton -cb --shadow-exclude '_NET_WM_NAME@:s = "rofi"' -o 1 --shadow-exclude 'x <= 0 && x2 >= 1920 && y <= 30 && y2 >= 1020' --backend glx --vsync opengl-swc --unredir-if-possible
|
||
|
||
# [Appearance]
|
||
|
||
# class border backgr. text indicator child_border
|
||
client.focused #444444 #444444 #dfdfdf #b9b9b9 #b9b9b9
|
||
client.focused_inactive #222222 #222222 #dfdfdf #ffffff #000000
|
||
client.unfocused #222222 #222222 #dfdfdf #ffffff #000000
|
||
client.urgent #222222 #222222 #dfdfdf #ffffff #000000
|
||
client.placeholder #222222 #222222 #dfdfdf #ffffff #000000
|
||
client.background #ffffff
|
||
|
||
font pango:NotoSans 11
|
||
|
||
gaps inner 30
|
||
hide_edge_borders both
|
||
|
||
workspace 1 gaps inner 0
|
||
workspace 2 gaps inner 0
|
||
|
||
for_window [class=".*"] title_format " %title "
|
||
for_window [class="^.*"] border pixel 3
|
||
|
||
# [Keyboard shortcuts]
|
||
|
||
set $mod Mod4
|
||
|
||
# [Execute]
|
||
|
||
bindsym $mod+Return exec i3-sensible-terminal
|
||
bindsym Print exec xfce4-screenshooter
|
||
|
||
bindsym $mod+d exec rofi -show run
|
||
bindsym $mod+Tab exec rofi -show window
|
||
|
||
# volume controls
|
||
|
||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
|
||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
|
||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
|
||
|
||
# screen brightness controls
|
||
|
||
bindsym XF86MonBrightnessUp exec --no-startup-id "light -A 5 & notify-send -t 1 $(light)"
|
||
bindsym XF86MonBrightnessDown exec --no-startup-id "light -U 5 & notify-send -t 1 $(light)"
|
||
|
||
# i3
|
||
|
||
# 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'"
|
||
|
||
# [Window]
|
||
|
||
bindsym $mod+Shift+q kill
|
||
|
||
# change focus
|
||
|
||
bindsym $mod+h focus left
|
||
bindsym $mod+j focus down
|
||
bindsym $mod+k focus up
|
||
bindsym $mod+l focus right
|
||
|
||
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+h move left
|
||
bindsym $mod+Shift+j move down
|
||
bindsym $mod+Shift+k 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
|
||
|
||
# split in horizontal orientation
|
||
bindsym $mod+b split h
|
||
|
||
# split in vertical orientation
|
||
bindsym $mod+v split v
|
||
|
||
# enter fullscreen mode for the focused container
|
||
bindsym $mod+f fullscreen toggle
|
||
|
||
# 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
|
||
|
||
# use mouse+$mod to drag floating windows to their wanted position
|
||
floating_modifier $mod
|
||
|
||
# focus the parent container
|
||
bindsym $mod+a focus parent
|
||
|
||
# focus the child container
|
||
bindsym $mod+z focus child
|
||
|
||
# [Workspaces]
|
||
|
||
workspace_auto_back_and_forth yes
|
||
|
||
set $ws1 "1"
|
||
set $ws2 "2"
|
||
set $ws3 "3"
|
||
set $ws4 "4"
|
||
set $ws5 "5"
|
||
set $ws6 "6"
|
||
set $ws7 "7"
|
||
set $ws8 "8"
|
||
set $ws9 "9"
|
||
set $ws10 "10"
|
||
|
||
# switch to nearest workspace
|
||
|
||
bindsym $mod+Ctrl+j workspace prev
|
||
bindsym $mod+Ctrl+k workspace next
|
||
|
||
bindsym $mod+Ctrl+Up workspace prev
|
||
bindsym $mod+Ctrl+Left workspace prev
|
||
bindsym $mod+Ctrl+Down workspace next
|
||
bindsym $mod+Ctrl+Right workspace next
|
||
|
||
# switch to workspace
|
||
|
||
bindsym $mod+1 workspace $ws1
|
||
bindsym $mod+2 workspace $ws2
|
||
bindsym $mod+3 workspace $ws3
|
||
bindsym $mod+4 workspace $ws4
|
||
bindsym $mod+5 workspace $ws5
|
||
bindsym $mod+6 workspace $ws6
|
||
bindsym $mod+7 workspace $ws7
|
||
bindsym $mod+8 workspace $ws8
|
||
bindsym $mod+9 workspace $ws9
|
||
bindsym $mod+0 workspace $ws10
|
||
|
||
# move focused container to workspace
|
||
|
||
bindsym $mod+Shift+1 move container to workspace $ws1
|
||
bindsym $mod+Shift+2 move container to workspace $ws2
|
||
bindsym $mod+Shift+3 move container to workspace $ws3
|
||
bindsym $mod+Shift+4 move container to workspace $ws4
|
||
bindsym $mod+Shift+5 move container to workspace $ws5
|
||
bindsym $mod+Shift+6 move container to workspace $ws6
|
||
bindsym $mod+Shift+7 move container to workspace $ws7
|
||
bindsym $mod+Shift+8 move container to workspace $ws8
|
||
bindsym $mod+Shift+9 move container to workspace $ws9
|
||
bindsym $mod+Shift+0 move container to workspace $ws10
|
||
|
||
# [Mods]
|
||
|
||
# resize window (you can also use the mouse for that)
|
||
mode "resize" {
|
||
# 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 h resize shrink width 10 px or 10 ppt
|
||
bindsym j resize grow height 10 px or 10 ppt
|
||
bindsym k resize shrink height 10 px or 10 ppt
|
||
bindsym l 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
|
||
|
||
# gaps size
|
||
bindsym 0 gaps inner current set 0
|
||
bindsym 1 gaps inner current set 10
|
||
bindsym 2 gaps inner current set 20
|
||
bindsym 3 gaps inner current set 30
|
||
bindsym 4 gaps inner current set 40
|
||
bindsym 5 gaps inner current set 50
|
||
|
||
# back to normal: Enter or Escape or $mod+r
|
||
bindsym Return mode "default"
|
||
bindsym Escape mode "default"
|
||
bindsym $mod+r mode "default"
|
||
}
|
||
|
||
bindsym $mod+r mode "resize"
|