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

View File

@@ -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

4
i3/rofi_calc Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
LC_NUMERIC=en_US.utf8
rofi -show calc -modi calc -no-show-match -no-sort -terse -calc-command "echo -n '{result}' | xclip"

View File

@@ -2,5 +2,5 @@
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"

View File

@@ -1,53 +1,99 @@
// 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",
"floating": "auto_off",
"layout": "splith",
"layout": "splitv",
"marks": [],
"percent": 1,
"percent": 0.5,
"type": "con",
"nodes": [
{
"border": "none",
"current_border_width": 2,
// splith split container with 1 children
"border": "normal",
"floating": "auto_off",
"geometry": {
"height": 1026,
"width": 560,
"x": 1680,
"y": 24
},
"layout": "splith",
"marks": [],
"name": "Telegram",
"percent": 0.5,
"swallows": [
{
"class": "^TelegramDesktop$",
"instance": "^telegram\\-desktop$"
// "title": "^Telegram\\ \\(18\\)$"
}
],
"type": "con"
"type": "con",
"nodes": [
{
// splith split container with 1 children
"border": "normal",
"floating": "auto_off",
"layout": "splith",
"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",
"current_border_width": 2,
"floating": "auto_off",
"geometry": {
"height": 1002,
"width": 800,
"x": 2242,
"y": 46
"height": 715,
"width": 1366,
"x": 183,
"y": 396
},
"marks": [],
"name": "Element",
"name": "Rocket Chat",
"percent": 0.5,
"swallows": [
{
"class": "^Element$",
"instance": "^element$"
// "title": "^Element\\ \\|\\ wmutter$",
"class": "^Rocket\\.Chat$",
"instance": "^rocket\\.chat$"
// "title": "^Chat\\ der\\ Uni\\ Würzburg$",
// "window_role": "^browser\\-window$"
}
],