Setup for laptop
This commit is contained in:
67
i3/config
67
i3/config
@ -41,7 +41,7 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU
|
||||
floating_modifier $mod
|
||||
|
||||
# start a terminal
|
||||
bindsym $mod+Return exec xfce4-terminal
|
||||
bindsym $mod+Return exec alacritty
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
@ -57,10 +57,10 @@ bindsym $mod+d exec dmenu_recency -i
|
||||
# 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 +69,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
|
||||
@ -156,8 +156,8 @@ bindsym $mod+Shift+9 move container to workspace number $ws9; workspace $ws9
|
||||
bindsym $mod+Shift+0 move container to workspace number $ws10; workspace $ws10
|
||||
|
||||
# Monitor config
|
||||
set $monitor_left DVI-D-0
|
||||
set $monitor_right DVI-D-1
|
||||
set $monitor_left eDP1
|
||||
set $monitor_right HDMI1
|
||||
|
||||
workspace $ws1 output $monitor_left
|
||||
workspace $ws2 output $monitor_left
|
||||
@ -227,16 +227,43 @@ mode "$mode_system" {
|
||||
}
|
||||
bindsym $mod+Shift+e mode "$mode_system"
|
||||
|
||||
set $mode_screenshot Screenshot (w) Active window, (s) Selection
|
||||
mode "$mode_screenshot" {
|
||||
#set $mode_test System (l) lock, (e) logout, (r) reboot, (s) shutdown
|
||||
#set $mode_screenshot_file Screenshot to file (w) Active window, (s) Selection, (d) Desktop
|
||||
#mode "$mode_screenshot_file" {
|
||||
# bindsym l exec --no-startup-id i3exit lock, 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"
|
||||
#
|
||||
# # back to normal: Enter or Escape
|
||||
# bindsym Return mode "default"
|
||||
# bindsym Escape mode "default"
|
||||
#}
|
||||
#bindsym $mod+Shift+Print mode "$mode_screenshot_file"
|
||||
|
||||
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
|
||||
@ -258,7 +285,7 @@ assign [class="Element"] workspace $ws9
|
||||
assign [class="Thunderbird"] workspace $ws10
|
||||
assign [class="zoom"] workspace $ws5
|
||||
|
||||
for_window [class="firefox"] focus
|
||||
#for_window [class="firefox"] focus
|
||||
#for_window [class="Thunderbird"] focus
|
||||
for_window [class="TelegramDesktop"] no_focus
|
||||
for_window [class="Rocket.Chat"] no_focus
|
||||
@ -277,7 +304,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 chat.rocket.RocketChat no_focus
|
||||
exec im.riot.Riot no_focus
|
||||
exec telegram-desktop no_focus
|
||||
|
||||
@ -292,6 +319,10 @@ exec --no-startup-id pamac-tray
|
||||
exec --no-startup-id msm_notifier
|
||||
# Audio
|
||||
exec --no-startup-id start-pulseaudio-x11
|
||||
# Display setup
|
||||
exec_always --no-startup-id /home/julian/.screenlayout/defaultlayout.sh
|
||||
# Background image
|
||||
exec_always --no-startup-id "sleep 1; feh --bg-fill /home/julian/nextcloud/space.jpg"
|
||||
|
||||
# Default workspaces at startup (no need because autostart applications get always focused)
|
||||
#exec --no-startup-id i3-msg workspace $ws1
|
||||
|
Reference in New Issue
Block a user