Merged from laptop

This commit is contained in:
2021-03-19 16:58:27 +01:00
16 changed files with 3552 additions and 88 deletions

View File

@ -48,19 +48,21 @@ bindsym $mod+Shift+q kill
bindsym $mod+q kill
bindsym $mod+Shift+x kill
bindsym $mod+x kill
# for x button in laptop (produces alt+f4)
bindsym Mod1+F4 kill
# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_recency -i
bindsym $mod+d exec rofi -show run #dmenu_recency -i
# 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+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+odiaeresis focus right
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
@ -69,10 +71,10 @@ 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+odiaeresis move right
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
@ -81,7 +83,7 @@ bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+h split h
bindsym $mod+Shift+v split h
# split in vertical orientation
bindsym $mod+v split v
@ -171,7 +173,7 @@ workspace $ws9 output $monitor_right
workspace $ws10 output $monitor_right
# reload the configuration file
bindsym $mod+Shift+c reload
#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)
@ -185,10 +187,10 @@ mode "resize" {
# 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 odiaeresis resize grow width 10 px or 10 ppt
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
@ -216,7 +218,7 @@ bar {
set $mode_system System (l) lock, (e) logout, (r) reboot, (s) shutdown
mode "$mode_system" {
bindsym l exec --no-startup-id i3exit lock, mode "default"
bindsym l exec --no-startup-id i3lock, mode "default"
bindsym e exec --no-startup-id i3exit logout, mode "default"
bindsym r exec --no-startup-id i3exit reboot, mode "default"
bindsym s exec --no-startup-id i3exit shutdown, mode "default"
@ -227,23 +229,38 @@ mode "$mode_system" {
}
bindsym $mod+Shift+e mode "$mode_system"
set $mode_screenshot Screenshot (w) Active window, (s) Selection
mode "$mode_screenshot" {
set $mode_screenshot_file Screenshot to file (w) Active window, (s) Selection, (d) Desktop
mode "$mode_screenshot_file" {
bindsym w exec --no-startup-id "i3-scrot -w", mode "default"
bindsym s exec --no-startup-id "flameshot gui", mode "default"
bindsym Return exec --no-startup-id "flameshot gui", mode "default"
bindsym --release s exec --no-startup-id "i3-scrot -s", mode "default"
bindsym d exec --no-startup-id "i3-scrot -d", mode "default"
bindsym --release Return exec --no-startup-id "i3-scrot -s", mode "default"
#back to normal: Escape
bindsym Escape mode "default"
}
bindsym $mod+Shift+Print mode "$mode_screenshot_file"
set $mode_screenshot_clipboard Screenshot to clipboard (w) Active window, (s) Selection, (d) Desktop
mode "$mode_screenshot_clipboard" {
bindsym w exec --no-startup-id "i3-scrot -wc", mode "default"
bindsym --release s exec --no-startup-id "i3-scrot -sc", mode "default"
bindsym d exec --no-startup-id "i3-scrot -dc", mode "default"
bindsym --release Return exec --no-startup-id "i3-scrot -sc", mode "default"
# back to normal: Escape
bindsym Escape mode "default"
}
bindsym $mod+Print mode "$mode_screenshot"
bindsym $mod+Print mode "$mode_screenshot_clipboard"
bindsym $mod+Ctrl+Right move workspace to output right
bindsym $mod+Ctrl+Left move workspace to output right
bindsym $mod+c exec jupyter-calculator
bindsym $mod+c exec rofi_calc
bindsym $mod+p exec xwacomcalibrate
bindsym $mod+t exec thunar
bindsym $mod+m exec xfce4-terminal -x mc
bindsym $mod+Shift+c exec jupyter-calculator
workspace_auto_back_and_forth yes
########## Window settings ##########
@ -278,7 +295,7 @@ exec --no-startup-id "i3-msg 'workspace 9: Chat; append_layout ~/.config/i3/work
exec firefox
exec thunderbird
#exec chat.rocket.RocketChat no_focus
exec element-desktop no_focus
exec im.riot.Riot no_focus
exec telegram-desktop no_focus
exec --no-startup-id nm-applet
@ -295,6 +312,8 @@ exec --no-startup-id start-pulseaudio-x11
# Background
#exec --no-startup-id feh --randomize --bg-fill /home/julian/Pictures/Hintergrundbilder/*
exec --no-startup-id feh --bg-fill /home/julian/Pictures/Hintergrundbilder/space.jpg
# Notifications
exec --no-startup-id dunst -config /home/julian/.config/dunst/dunstrc
# Default workspaces at startup (no need because autostart applications get always focused)
#exec --no-startup-id i3-msg workspace $ws1