Setup for laptop
This commit is contained in:
parent
38afd3c295
commit
8c9cbeca7b
@ -1 +1 @@
|
|||||||
scrot_dir=/home/julian/Pictures
|
scrot_dir=/home/julian/Pictures/screenshots
|
||||||
|
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
|
floating_modifier $mod
|
||||||
|
|
||||||
# start a terminal
|
# start a terminal
|
||||||
bindsym $mod+Return exec xfce4-terminal
|
bindsym $mod+Return exec alacritty
|
||||||
|
|
||||||
# kill focused window
|
# kill focused window
|
||||||
bindsym $mod+Shift+q kill
|
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
|
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
|
||||||
|
|
||||||
# change focus
|
# change focus
|
||||||
bindsym $mod+j focus left
|
# bindsym $mod+h focus left
|
||||||
bindsym $mod+k focus down
|
bindsym $mod+j focus down
|
||||||
bindsym $mod+l focus up
|
bindsym $mod+k focus up
|
||||||
bindsym $mod+odiaeresis focus right
|
bindsym $mod+l focus right
|
||||||
|
|
||||||
# alternatively, you can use the cursor keys:
|
# alternatively, you can use the cursor keys:
|
||||||
bindsym $mod+Left focus left
|
bindsym $mod+Left focus left
|
||||||
@ -69,10 +69,10 @@ bindsym $mod+Up focus up
|
|||||||
bindsym $mod+Right focus right
|
bindsym $mod+Right focus right
|
||||||
|
|
||||||
# move focused window
|
# move focused window
|
||||||
bindsym $mod+Shift+j move left
|
bindsym $mod+Shift+h move left
|
||||||
bindsym $mod+Shift+k move down
|
bindsym $mod+Shift+j move down
|
||||||
bindsym $mod+Shift+l move up
|
bindsym $mod+Shift+k move up
|
||||||
bindsym $mod+Shift+odiaeresis move right
|
bindsym $mod+Shift+l move right
|
||||||
|
|
||||||
# alternatively, you can use the cursor keys:
|
# alternatively, you can use the cursor keys:
|
||||||
bindsym $mod+Shift+Left move left
|
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
|
bindsym $mod+Shift+0 move container to workspace number $ws10; workspace $ws10
|
||||||
|
|
||||||
# Monitor config
|
# Monitor config
|
||||||
set $monitor_left DVI-D-0
|
set $monitor_left eDP1
|
||||||
set $monitor_right DVI-D-1
|
set $monitor_right HDMI1
|
||||||
|
|
||||||
workspace $ws1 output $monitor_left
|
workspace $ws1 output $monitor_left
|
||||||
workspace $ws2 output $monitor_left
|
workspace $ws2 output $monitor_left
|
||||||
@ -227,16 +227,43 @@ mode "$mode_system" {
|
|||||||
}
|
}
|
||||||
bindsym $mod+Shift+e mode "$mode_system"
|
bindsym $mod+Shift+e mode "$mode_system"
|
||||||
|
|
||||||
set $mode_screenshot Screenshot (w) Active window, (s) Selection
|
#set $mode_test System (l) lock, (e) logout, (r) reboot, (s) shutdown
|
||||||
mode "$mode_screenshot" {
|
#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 w exec --no-startup-id "i3-scrot -w", mode "default"
|
||||||
bindsym s exec --no-startup-id "flameshot gui", mode "default"
|
bindsym --release s exec --no-startup-id "i3-scrot -s", mode "default"
|
||||||
bindsym Return exec --no-startup-id "flameshot gui", 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
|
# back to normal: Escape
|
||||||
bindsym Escape mode "default"
|
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+Right move workspace to output right
|
||||||
bindsym $mod+Ctrl+Left 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="Thunderbird"] workspace $ws10
|
||||||
assign [class="zoom"] workspace $ws5
|
assign [class="zoom"] workspace $ws5
|
||||||
|
|
||||||
for_window [class="firefox"] focus
|
#for_window [class="firefox"] focus
|
||||||
#for_window [class="Thunderbird"] focus
|
#for_window [class="Thunderbird"] focus
|
||||||
for_window [class="TelegramDesktop"] no_focus
|
for_window [class="TelegramDesktop"] no_focus
|
||||||
for_window [class="Rocket.Chat"] 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 firefox
|
||||||
exec thunderbird
|
exec thunderbird
|
||||||
#exec chat.rocket.RocketChat no_focus
|
exec chat.rocket.RocketChat no_focus
|
||||||
exec im.riot.Riot no_focus
|
exec im.riot.Riot no_focus
|
||||||
exec telegram-desktop no_focus
|
exec telegram-desktop no_focus
|
||||||
|
|
||||||
@ -292,6 +319,10 @@ exec --no-startup-id pamac-tray
|
|||||||
exec --no-startup-id msm_notifier
|
exec --no-startup-id msm_notifier
|
||||||
# Audio
|
# Audio
|
||||||
exec --no-startup-id start-pulseaudio-x11
|
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)
|
# Default workspaces at startup (no need because autostart applications get always focused)
|
||||||
#exec --no-startup-id i3-msg workspace $ws1
|
#exec --no-startup-id i3-msg workspace $ws1
|
||||||
|
30
i3/i3exit
30
i3/i3exit
@ -1,30 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
lock() {
|
|
||||||
i3lock
|
|
||||||
}
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
lock)
|
|
||||||
lock
|
|
||||||
;;
|
|
||||||
logout)
|
|
||||||
i3-msg exit
|
|
||||||
;;
|
|
||||||
suspend)
|
|
||||||
lock && systemctl suspend
|
|
||||||
;;
|
|
||||||
hibernate)
|
|
||||||
lock && systemctl hibernate
|
|
||||||
;;
|
|
||||||
reboot)
|
|
||||||
systemctl reboot
|
|
||||||
;;
|
|
||||||
shutdown)
|
|
||||||
systemctl poweroff
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Usage: $0 {lock|logout|suspend|hibernate|reboot|shutdown}"
|
|
||||||
exit 2
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit 0
|
|
@ -2,5 +2,5 @@
|
|||||||
|
|
||||||
zoom &
|
zoom &
|
||||||
|
|
||||||
i3-msg "workspace --no-auto-back-and-forth 5; exec mousepad /home/julian/Nextcloud/studium/zoom.txt"
|
i3-msg "workspace --no-auto-back-and-forth 5; exec mousepad /home/julian/nextcloud/studium/zoom.txt"
|
||||||
i3-msg "workspace --no-auto-back-and-forth 5; append_layout ~/.config/i3/workspace-zoom.json"
|
i3-msg "workspace --no-auto-back-and-forth 5; append_layout ~/.config/i3/workspace-zoom.json"
|
||||||
|
@ -1,53 +1,99 @@
|
|||||||
// vim:ts=4:sw=4:et
|
// vim:ts=4:sw=4:et
|
||||||
{
|
{
|
||||||
// splith split container with 2 children
|
"border": "none",
|
||||||
|
"current_border_width": 2,
|
||||||
|
"floating": "auto_off",
|
||||||
|
"geometry": {
|
||||||
|
"height": 1026,
|
||||||
|
"width": 560,
|
||||||
|
"x": 1680,
|
||||||
|
"y": 24
|
||||||
|
},
|
||||||
|
"marks": [],
|
||||||
|
"name": "Telegram",
|
||||||
|
"percent": 0.5,
|
||||||
|
"swallows": [
|
||||||
|
{
|
||||||
|
"class": "^TelegramDesktop$",
|
||||||
|
"instance": "^telegram\\-desktop$"
|
||||||
|
// "title": "^Telegram\\ \\(18\\)$"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "con"
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
// splitv split container with 2 children
|
||||||
"border": "normal",
|
"border": "normal",
|
||||||
"floating": "auto_off",
|
"floating": "auto_off",
|
||||||
"layout": "splith",
|
"layout": "splitv",
|
||||||
"marks": [],
|
"marks": [],
|
||||||
"percent": 1,
|
"percent": 0.5,
|
||||||
"type": "con",
|
"type": "con",
|
||||||
"nodes": [
|
"nodes": [
|
||||||
{
|
{
|
||||||
"border": "none",
|
// splith split container with 1 children
|
||||||
"current_border_width": 2,
|
"border": "normal",
|
||||||
"floating": "auto_off",
|
"floating": "auto_off",
|
||||||
"geometry": {
|
"layout": "splith",
|
||||||
"height": 1026,
|
|
||||||
"width": 560,
|
|
||||||
"x": 1680,
|
|
||||||
"y": 24
|
|
||||||
},
|
|
||||||
"marks": [],
|
"marks": [],
|
||||||
"name": "Telegram",
|
|
||||||
"percent": 0.5,
|
"percent": 0.5,
|
||||||
"swallows": [
|
"type": "con",
|
||||||
{
|
"nodes": [
|
||||||
"class": "^TelegramDesktop$",
|
{
|
||||||
"instance": "^telegram\\-desktop$"
|
// splith split container with 1 children
|
||||||
// "title": "^Telegram\\ \\(18\\)$"
|
"border": "normal",
|
||||||
}
|
"floating": "auto_off",
|
||||||
],
|
"layout": "splith",
|
||||||
"type": "con"
|
"marks": [],
|
||||||
|
"percent": 1,
|
||||||
|
"type": "con",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"border": "normal",
|
||||||
|
"current_border_width": 2,
|
||||||
|
"floating": "auto_off",
|
||||||
|
"geometry": {
|
||||||
|
"height": 1002,
|
||||||
|
"width": 800,
|
||||||
|
"x": 2242,
|
||||||
|
"y": 46
|
||||||
|
},
|
||||||
|
"marks": [],
|
||||||
|
"name": "Element",
|
||||||
|
"percent": 1,
|
||||||
|
"swallows": [
|
||||||
|
{
|
||||||
|
"class": "^Element$",
|
||||||
|
"instance": "^element$"
|
||||||
|
// "title": "^Element\\ \\|\\ Skipper$",
|
||||||
|
// "window_role": "^browser\\-window$"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "con"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"border": "normal",
|
"border": "normal",
|
||||||
"current_border_width": 2,
|
"current_border_width": 2,
|
||||||
"floating": "auto_off",
|
"floating": "auto_off",
|
||||||
"geometry": {
|
"geometry": {
|
||||||
"height": 1002,
|
"height": 715,
|
||||||
"width": 800,
|
"width": 1366,
|
||||||
"x": 2242,
|
"x": 183,
|
||||||
"y": 46
|
"y": 396
|
||||||
},
|
},
|
||||||
"marks": [],
|
"marks": [],
|
||||||
"name": "Element",
|
"name": "Rocket Chat",
|
||||||
"percent": 0.5,
|
"percent": 0.5,
|
||||||
"swallows": [
|
"swallows": [
|
||||||
{
|
{
|
||||||
"class": "^Element$",
|
"class": "^Rocket\\.Chat$",
|
||||||
"instance": "^element$"
|
"instance": "^rocket\\.chat$"
|
||||||
// "title": "^Element\\ \\|\\ wmutter$",
|
// "title": "^Chat\\ der\\ Uni\\ Würzburg$",
|
||||||
// "window_role": "^browser\\-window$"
|
// "window_role": "^browser\\-window$"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -21,11 +21,6 @@ LABEL=
|
|||||||
interval=10
|
interval=10
|
||||||
signal=10
|
signal=10
|
||||||
|
|
||||||
[keyboard]
|
|
||||||
command=./keyboard
|
|
||||||
interval=10
|
|
||||||
LABEL=
|
|
||||||
|
|
||||||
[calendar]
|
[calendar]
|
||||||
command=./calendar
|
command=./calendar
|
||||||
interval=1
|
interval=1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user