a
This commit is contained in:
parent
afe3154fa9
commit
e6d883fc8d
2 changed files with 72 additions and 93 deletions
119
config/i3/config
119
config/i3/config
|
@ -1,47 +1,73 @@
|
||||||
# some variables
|
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
set $border0 "#606060"
|
set $border0 "#606060"
|
||||||
set $border1 "#ffffff"
|
set $border1 "#ffffff"
|
||||||
set $speed 75
|
set $speed 75
|
||||||
|
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"
|
||||||
|
|
||||||
|
exec_always --no-startup-id feh --bg-fill $(cat ~/.config/i3/wallpaper)
|
||||||
|
exec_always --no-startup-id ~/.config/polybar/launch.sh
|
||||||
|
exec_always --no-startup-id setxkbmap pl
|
||||||
|
exec --no-startup-id xcompmgr
|
||||||
|
exec --no-startup-id sleep 1s; i3-msg restart
|
||||||
|
|
||||||
|
client.unfocused $border0 $border0 $border0 $border0 $border0
|
||||||
|
client.focused $border1 $border1 $border1 $border1 $border1
|
||||||
|
client.focused_inactive $border0 $border0 $border0 $border0 $border0
|
||||||
|
client.urgent $border0 $border0 $border0 $border0 $border0
|
||||||
|
for_window [class=".*"] border pixel 1
|
||||||
|
smart_borders on
|
||||||
|
gaps inner 5
|
||||||
|
gaps outer 6
|
||||||
|
|
||||||
|
floating_modifier $mod
|
||||||
font pango:MonoCraft NerdFont 10
|
font pango:MonoCraft NerdFont 10
|
||||||
|
|
||||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
assign [class="firefox"] 1
|
||||||
floating_modifier $mod
|
assign [class="KeePassXC"] 10
|
||||||
|
assign [class="steam"] 2
|
||||||
|
assign [class="obs"] 7
|
||||||
|
assign [class="SimpleScreenRecorder"] 7
|
||||||
|
assign [class="TelegramDesktop"] 5
|
||||||
|
assign [class="Gajim"] 5
|
||||||
|
assign [class="weechat"] 5
|
||||||
|
assign [class="Signal"] 5
|
||||||
|
assign [class="transmission"] 6
|
||||||
|
#assign [class="radeon-profile"] 5
|
||||||
|
|
||||||
|
bindsym $mod+Shift+r restart
|
||||||
|
|
||||||
# kill focused window
|
|
||||||
bindsym $mod+q kill
|
bindsym $mod+q kill
|
||||||
|
|
||||||
# alternatively, you can use the cursor keys:
|
|
||||||
bindsym $mod+j focus left
|
bindsym $mod+j focus left
|
||||||
bindsym $mod+k focus down
|
bindsym $mod+k focus down
|
||||||
bindsym $mod+l focus up
|
bindsym $mod+l focus up
|
||||||
bindsym $mod+semicolon focus right
|
bindsym $mod+semicolon focus right
|
||||||
|
|
||||||
# alternatively, you can use the cursor keys:
|
|
||||||
bindsym $mod+ctrl+j move left $speed px
|
bindsym $mod+ctrl+j move left $speed px
|
||||||
bindsym $mod+ctrl+k move down $speed px
|
bindsym $mod+ctrl+k move down $speed px
|
||||||
bindsym $mod+ctrl+l move up $speed px
|
bindsym $mod+ctrl+l move up $speed px
|
||||||
bindsym $mod+ctrl+semicolon move right $speed px
|
bindsym $mod+ctrl+semicolon move right $speed px
|
||||||
|
|
||||||
|
bindsym $mod+Shift+ctrl+semicolon resize shrink width 6 px or 6 ppt
|
||||||
|
bindsym $mod+Shift+ctrl+l resize grow height 6 px or 6 ppt
|
||||||
|
bindsym $mod+Shift+ctrl+k resize shrink height 6 px or 6 ppt
|
||||||
|
bindsym $mod+Shift+ctrl+j resize grow width 6 px or 6 ppt
|
||||||
|
|
||||||
|
|
||||||
# mod+h split in horizontal orientation / mod+v split in vertical orientation
|
|
||||||
bindsym $mod+h split h
|
bindsym $mod+h split h
|
||||||
bindsym $mod+v split v
|
bindsym $mod+v split v
|
||||||
|
|
||||||
# enter fullscreen mode for the focused container
|
|
||||||
bindsym $mod+f fullscreen toggle
|
bindsym $mod+f fullscreen toggle
|
||||||
|
bindsym $mod+x floating toggle
|
||||||
bindsym $mod+s layout stacking
|
bindsym $mod+s layout stacking
|
||||||
bindsym $mod+w layout tabbed
|
bindsym $mod+w layout tabbed
|
||||||
bindsym $mod+e layout toggle split
|
bindsym $mod+e layout toggle split
|
||||||
|
|
||||||
|
|
||||||
# toggle tiling / floating
|
|
||||||
bindsym $mod+x floating toggle
|
|
||||||
|
|
||||||
# switch to workspace
|
|
||||||
bindsym $mod+1 workspace number $ws1
|
bindsym $mod+1 workspace number $ws1
|
||||||
bindsym $mod+2 workspace number $ws2
|
bindsym $mod+2 workspace number $ws2
|
||||||
bindsym $mod+3 workspace number $ws3
|
bindsym $mod+3 workspace number $ws3
|
||||||
|
@ -53,15 +79,6 @@ bindsym $mod+8 workspace number $ws8
|
||||||
bindsym $mod+9 workspace number $ws9
|
bindsym $mod+9 workspace number $ws9
|
||||||
bindsym $mod+0 workspace number $ws10
|
bindsym $mod+0 workspace number $ws10
|
||||||
|
|
||||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
|
||||||
bindsym $mod+Shift+r restart
|
|
||||||
|
|
||||||
# window resizing
|
|
||||||
bindsym $mod+Shift+ctrl+semicolon resize shrink width 3 px or 3 ppt
|
|
||||||
bindsym $mod+Shift+ctrl+l resize grow height 3 px or 3 ppt
|
|
||||||
bindsym $mod+Shift+ctrl+k resize shrink height 3 px or 3 ppt
|
|
||||||
bindsym $mod+Shift+ctrl+j resize grow width 3 px or 3 ppt
|
|
||||||
|
|
||||||
bindsym $mod+Shift+1 move container to workspace number $ws1
|
bindsym $mod+Shift+1 move container to workspace number $ws1
|
||||||
bindsym $mod+Shift+2 move container to workspace number $ws2
|
bindsym $mod+Shift+2 move container to workspace number $ws2
|
||||||
bindsym $mod+Shift+3 move container to workspace number $ws3
|
bindsym $mod+Shift+3 move container to workspace number $ws3
|
||||||
|
@ -73,42 +90,20 @@ bindsym $mod+Shift+8 move container to workspace number $ws8
|
||||||
bindsym $mod+Shift+9 move container to workspace number $ws9
|
bindsym $mod+Shift+9 move container to workspace number $ws9
|
||||||
bindsym $mod+Shift+0 move container to workspace number $ws10
|
bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# workspace 1 output HDMI-1
|
# workspace 1 output HDMI-1
|
||||||
# workspace 2 output HDMI-1
|
# workspace 2 output HDMI-1
|
||||||
# workspace 3 output HDMI-1
|
# workspace 3 output HDMI-1
|
||||||
# workspace 4 output HDMI-1
|
# workspace 4 output HDMI-1
|
||||||
# workspace 5 output HDMI-1
|
# workspace 5 output HDMI-1
|
||||||
|
|
||||||
|
|
||||||
# workspace 6 output DP-3
|
# workspace 6 output DP-3
|
||||||
# workspace 7 output DP-3
|
# workspace 7 output DP-3
|
||||||
# workspace 8 output DP-3
|
# workspace 8 output DP-3
|
||||||
# workspace 9 output DP-3
|
# workspace 9 output DP-3
|
||||||
# workspace 10 output DP-3
|
# workspace 10 output DP-3
|
||||||
|
|
||||||
# Define names for default workspaces for which we configure key bindings later on.
|
|
||||||
# We use variables to avoid repeating the names in multiple places.
|
|
||||||
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"
|
|
||||||
|
|
||||||
|
|
||||||
#border
|
|
||||||
client.unfocused $border0 $border0 $border0 $border0 $border0
|
|
||||||
client.focused $border1 $border1 $border1 $border1 $border1
|
|
||||||
client.focused_inactive $border0 $border0 $border0 $border0 $border0
|
|
||||||
client.urgent $border0 $border0 $border0 $border0 $border0
|
|
||||||
|
|
||||||
for_window [class=".*"] border pixel 1
|
|
||||||
smart_borders on
|
|
||||||
|
|
||||||
#bar {
|
#bar {
|
||||||
# position top
|
# position top
|
||||||
# status_command ~/.config/i3/status.sh
|
# status_command ~/.config/i3/status.sh
|
||||||
|
@ -122,25 +117,3 @@ smart_borders on
|
||||||
# urgent_workspace #000000 #000000 #ffffff
|
# urgent_workspace #000000 #000000 #ffffff
|
||||||
# }
|
# }
|
||||||
#}
|
#}
|
||||||
|
|
||||||
# AutoStart
|
|
||||||
exec_always --no-startup-id feh --bg-fill $(cat ~/.config/i3/wallpaper)
|
|
||||||
exec_always --no-startup-id ~/.config/polybar/launch.sh
|
|
||||||
exec_always --no-startup-id setxkbmap pl
|
|
||||||
exec --no-startup-id xcompmgr
|
|
||||||
exec --no-startup-id sleep 1s; i3-msg restart
|
|
||||||
|
|
||||||
# windows rules
|
|
||||||
assign [class="firefox"] 1
|
|
||||||
assign [class="KeePassXC"] 10
|
|
||||||
assign [class="steam"] 2
|
|
||||||
assign [class="obs"] 7
|
|
||||||
assign [class="TelegramDesktop"] 5
|
|
||||||
assign [class="Gajim"] 5
|
|
||||||
assign [class="weechat"] 5
|
|
||||||
assign [class="transmission"] 6
|
|
||||||
#assign [class="radeon-profile"] 5
|
|
||||||
|
|
||||||
#gaps (i3-gaps)
|
|
||||||
gaps inner 5
|
|
||||||
gaps outer 6
|
|
||||||
|
|
|
@ -1,38 +1,44 @@
|
||||||
super + Return
|
super + Return
|
||||||
st
|
st
|
||||||
|
super + shift + Return
|
||||||
|
xterm
|
||||||
|
super + ctrl + Return
|
||||||
|
cool-retro-term
|
||||||
super + d
|
super + d
|
||||||
dmenu_run -l 25
|
dmenu_run -vi -l 15 -p ">"
|
||||||
super + b
|
super + b
|
||||||
firefox
|
firefox
|
||||||
|
super + i
|
||||||
|
bookmarks
|
||||||
|
super + shift + l
|
||||||
|
i3lock -u -e -i /home/user/images/itsucks.png
|
||||||
|
super + r
|
||||||
|
simplescreenrecorder
|
||||||
super + o
|
super + o
|
||||||
st -e lfimg
|
st -e lfimg
|
||||||
super + shift + o
|
super + shift + o
|
||||||
pcmanfm
|
pcmanfm
|
||||||
super + a
|
super + a
|
||||||
st -e pulsemixer
|
st -e pulsemixer
|
||||||
|
super + t
|
||||||
super + p
|
st -e btop
|
||||||
flameshot gui -p ~/images/screenshots
|
|
||||||
super + shift + p
|
|
||||||
flameshot full -p ~/images/screenshots
|
|
||||||
super + ctrl + p
|
|
||||||
flameshot gui -c -p ~/images/screenshots
|
|
||||||
super + shift + ctrl + p
|
|
||||||
flameshot full -c -p ~/images/screenshots
|
|
||||||
|
|
||||||
super + i
|
|
||||||
bookmarks
|
|
||||||
super + shift + l
|
|
||||||
i3lock -u -e -i /home/user/images/itsucks.png
|
|
||||||
|
|
||||||
super + {comma,period}
|
super + {comma,period}
|
||||||
pactl set-sink-volume @DEFAULT_SINK@ {-5%, +5%}
|
pactl set-sink-volume @DEFAULT_SINK@ {-5%, +5%}
|
||||||
super + m
|
super + m
|
||||||
pactl set-sink-mute @DEFAULT_SINK@ toggle
|
pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||||
|
|
||||||
|
super + p
|
||||||
|
flameshot gui -c -p ~/images/screenshots
|
||||||
|
super + shift + p
|
||||||
|
flameshot full -c -p ~/images/screenshots
|
||||||
|
super + ctrl + p
|
||||||
|
flameshot gui -p ~/images/screenshots
|
||||||
|
super + shift + ctrl + p
|
||||||
|
flameshot full -p ~/images/screenshots
|
||||||
|
|
||||||
#super + {1, 2, 3, 4, 5, 6}
|
|
||||||
# wmctrl -s {0, 1, 2, 3, 4, 5}
|
#super + {1, 2, 3, 4, 5, 6, 7, 8, 9, 0}
|
||||||
#super + q
|
# wmctrl -s {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
|
||||||
# xdo kill
|
#super + shift + {1, 2, 3, 4, 5, 6, 7, 8, 9, 0}
|
||||||
|
# wmctrl -i -r $(xdotool getactivewindow) -t {0,1,2,3,4,5,6,7,8,9}
|
||||||
|
|
Loading…
Reference in a new issue