Compare commits

..

No commits in common. "698bc314b088a7d7f66de8508252ad554f883c15" and "121e839e0a676e35033079ec610d81ec9d03f887" have entirely different histories.

3 changed files with 42 additions and 57 deletions

View File

@ -112,14 +112,8 @@ function b64dec() {
alias digs='dig +short' alias digs='dig +short'
alias digrr='dig +noall +answer' alias digrr='dig +noall +answer'
# Print all information in lsblk in JSON for better readability
alias lsblkjson='lsblk -O --json'
# Readline macro Ctrl-Alt-L: Append "| less" to current command # Readline macro Ctrl-Alt-L: Append "| less" to current command
bind '"\e\C-l": "\C-e | less"' bind '"\e\C-l": "\C-e | less"'
# Readline macro Ctrl-Alt-B: Append ">/dev/null 2>&1 &" to current command # Readline macro Ctrl-Alt-B: Append ">/dev/null 2>&1 &" to current command
bind '"\e\C-b": "\C-e >/dev/null 2>&1 &"' bind '"\e\C-b": "\C-e >/dev/null 2>&1 &"'
# Shortcut for shuriken build script (assumes it's in $PWD/tools/shuriken.py)
alias shuriken=./tools/shuriken.py

View File

@ -21,21 +21,18 @@ set $mod Mod4
# Alternatively, use includes for this :) # Alternatively, use includes for this :)
#set $OUTPUT1 eDP-1 #set $OUTPUT1 eDP-1
#set $OUTPUT1 DP-1-3
#set $OUTPUT2 DP-1-1
set $OUTPUT1 DP-1-3 set $OUTPUT1 DP-1-3
set $OUTPUT2 DP-1-1 set $OUTPUT2 DP-1-2
set $OUTPUT3 eDP-1
# Office # Office
set $OUTPUT_LEFT DP-1-3 set $OUTPUT_LEFT DP-1-3
set $OUTPUT_CENTER DP-1-1 set $OUTPUT_CENTER DP-1-3
set $OUTPUT_RIGHT eDP-1 set $OUTPUT_RIGHT DP-1-2
#set $OUTPUT_RIGHT eDP-1
# Bedroom # Bedroom
#set $OUTPUT_LEFT eDP-1 #set $OUTPUT_LEFT eDP-1
#set $OUTPUT_CENTER HDMI-1 #set $OUTPUT_CENTER DP-1
#set $OUTPUT_RIGHT eDP-1 #set $OUTPUT_RIGHT eDP-1
@ -127,11 +124,11 @@ for_window [instance="sakura-floating"] floating enable
bindsym $mod+Shift+Return exec sakura --name=sakura-floating bindsym $mod+Shift+Return exec sakura --name=sakura-floating
# ~~ Start application launcher # ~~ Start application launcher
bindsym $mod+d exec rofi -show run
bindsym $mod+Shift+d exec rofi -show drun bindsym $mod+Shift+d exec rofi -show drun
bindsym $mod+d exec rofi -show run bindsym $mod+w exec rofi -show window
bindsym $mod+w exec rofi -show window bindsym $mod+c exec rofi -show calc
bindsym $mod+c exec rofi -show calc bindsym $mod+m exec rofi -show emoji
bindsym $mod+m exec rofi -show emoji
# ~~ Kill focused window # ~~ Kill focused window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
@ -323,20 +320,20 @@ workspace $WS11 output primary
workspace $WS0 output primary workspace $WS0 output primary
# Special case: Chat workspace # Special case: Chat workspace
workspace $WS12 output $OUTPUT2 workspace $WS12 output $OUTPUT_RIGHT
workspace $WSf1 output $OUTPUT2 workspace $WSf1 output $OUTPUT_RIGHT
workspace $WSf2 output $OUTPUT2 workspace $WSf2 output $OUTPUT_RIGHT
workspace $WSf3 output $OUTPUT2 workspace $WSf3 output $OUTPUT_RIGHT
workspace $WSf4 output $OUTPUT2 workspace $WSf4 output $OUTPUT_RIGHT
workspace $WSf5 output $OUTPUT2 workspace $WSf5 output $OUTPUT_RIGHT
workspace $WSf6 output $OUTPUT2 workspace $WSf6 output $OUTPUT_RIGHT
workspace $WSf7 output $OUTPUT2 workspace $WSf7 output $OUTPUT_RIGHT
workspace $WSf8 output $OUTPUT2 workspace $WSf8 output $OUTPUT_RIGHT
workspace $WSf9 output $OUTPUT3 workspace $WSf9 output $OUTPUT_RIGHT
workspace $WSf10 output $OUTPUT3 workspace $WSf10 output $OUTPUT_RIGHT
workspace $WSf11 output $OUTPUT3 workspace $WSf11 output $OUTPUT_RIGHT
workspace $WSf12 output $OUTPUT3 workspace $WSf12 output $OUTPUT_RIGHT
# ~~ Keybindings to switch workspaces # ~~ Keybindings to switch workspaces
bindsym $mod+grave workspace number $WS0 bindsym $mod+grave workspace number $WS0
@ -395,17 +392,17 @@ bindsym $mod+Shift+F11 move container to workspace $WSf11; workspace $WSf11
bindsym $mod+Shift+F12 move container to workspace $WSf12; workspace $WSf12 bindsym $mod+Shift+F12 move container to workspace $WSf12; workspace $WSf12
# ~~ Keybindings for moving focus/containers/workspaces between monitors # ~~ Keybindings for moving focus/containers/workspaces between monitors
bindsym $mod+comma focus output $OUTPUT1 bindsym $mod+comma focus output $OUTPUT_LEFT
bindsym $mod+period focus output $OUTPUT2 bindsym $mod+period focus output $OUTPUT_CENTER
bindsym $mod+slash focus output $OUTPUT3 bindsym $mod+slash focus output $OUTPUT_RIGHT
bindsym $mod+Shift+comma move container to output $OUTPUT1; focus output $OUTPUT1 bindsym $mod+Shift+comma move container to output $OUTPUT_LEFT; focus output $OUTPUT_LEFT
bindsym $mod+Shift+period move container to output $OUTPUT2; focus output $OUTPUT2 bindsym $mod+Shift+period move container to output $OUTPUT_CENTER; focus output $OUTPUT_CENTER
bindsym $mod+Shift+slash move container to output $OUTPUT3; focus output $OUTPUT3 bindsym $mod+Shift+slash move container to output $OUTPUT_RIGHT; focus output $OUTPUT_RIGHT
bindsym Control+$mod+comma move workspace to output $OUTPUT1 bindsym Control+$mod+comma move workspace to output $OUTPUT_LEFT
bindsym Control+$mod+period move workspace to output $OUTPUT2 bindsym Control+$mod+period move workspace to output $OUTPUT_CENTER
bindsym Control+$mod+slash move workspace to output $OUTPUT3 bindsym Control+$mod+slash move workspace to output $OUTPUT_RIGHT
# ~~ Other workspace related keybindings # ~~ Other workspace related keybindings
bindsym $mod+Tab workspace back_and_forth bindsym $mod+Tab workspace back_and_forth
@ -428,8 +425,14 @@ assign [class="^Thunderbird$"] number $WS_mail
for_window [class="^Thunderbird$"] layout tabbed for_window [class="^Thunderbird$"] layout tabbed
# ~~ Telegram # ~~ Telegram
#assign [class="^TelegramDesktop$"] output $OUTPUT2
assign [class="^TelegramDesktop$"] number $WS_com assign [class="^TelegramDesktop$"] number $WS_com
#for_window [class="^TelegramDesktop$" title="^Telegram"] floating enable for_window [class="^TelegramDesktop$" title="^Telegram"] floating enable
# ~~ Gajim
#assign [class="^Gajim$"] output $OUTPUT2
assign [class="^Gajim$"] number $WS_com
for_window [class="^Gajim$"] floating enable
# ~~ Zulip # ~~ Zulip
assign [class="^Zulip$"] number $WS_com assign [class="^Zulip$"] number $WS_com
@ -437,11 +440,7 @@ for_window [class="^Zulip$"] floating enable
# ~~ Discord # ~~ Discord
assign [class="^discord$"] number $WS_com assign [class="^discord$"] number $WS_com
#for_window [class="^discord$"] floating enable for_window [class="^discord$"] floating enable
# ~~ Signal
assign [class="^Signal$"] number $WS_com
#for_window [class="^Signal$"] floating enable
# ~~ VS Code # ~~ VS Code
for_window [class="^code-oss$"] layout tabbed for_window [class="^code-oss$"] layout tabbed
@ -456,19 +455,13 @@ for_window [title="^Friends List"] floating disable
# TODO: use no_focus to avoid focus grabbing by the update window # TODO: use no_focus to avoid focus grabbing by the update window
# ~~ Misc other apps # ~~ Misc other apps
for_window [class="^pavucontrol$"] floating enable for_window [class="^Pavucontrol$"] floating enable
# ~~ Flameshot # ~~ Flameshot
for_window [class="^flameshot$"] floating enable for_window [class="^flameshot$"] floating enable
# ~~ Game development # ~~ Game development
# Enable floating mode for standalone game windows and for embedded games in "Floating game workspace" mode, #for_window [title="\(DEBUG\)$" instance="^(?!MultiplayerSpaceThing).*$"] floating enable
# but not for the editor.
for_window [instance="^Godot_Editor$" title="Godot Engine$"] floating disable
#for_window [instance="^Godot_Editor$" title="\(DEBUG\)$"] floating enable
for_window [instance="^Godot_Engine$" title="\(DEBUG\)$"] floating enable
for_window [title="^TinyKnight$"] floating enable
for_window [title="^Dragons Hoard$"] floating enable
# ~~ Others # ~~ Others
# The Sims 4 Origin launcher # The Sims 4 Origin launcher
@ -517,7 +510,5 @@ bindsym $mod+Print exec flameshot gui
# ~~ Run background applications # ~~ Run background applications
exec --no-startup-id redshift-gtk exec --no-startup-id redshift-gtk
exec --no-startup-id nextcloud exec --no-startup-id nextcloud
exec --no-startup-id udiskie --tray --no-automount
exec --no-startup-id solaar -w hide
# TODO: Use exec_always to set keyboard layout etc.? # TODO: Use exec_always to set keyboard layout etc.?

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
export LC_ALL="de_DE.UTF-8" export LC_ALL="de_DE.UTF-8"
exec /usr/bin/Telegram exec /usr/bin/telegram-desktop