This commit is contained in:
2022-05-05 17:38:38 +02:00
parent 23e8261859
commit b0f154e479
8 changed files with 89 additions and 52 deletions

View File

@@ -139,6 +139,8 @@ input "9653:84:Samsung_electronics_inc._Samsung_HID_Multi-Touch"\
# Screenshot
bindsym Print exec grim -g "$(slurp -d)" - | wl-copy -t image/png
bindsym Ctrl+Print exec swaymsg -t get_tree | jq -r 'recurse(.nodes[], .floating_nodes[]) | select(.focused and .pid).rect | "\(.x),\(.y) \(.width)x\(.height)"' | grim -g - - | wl-copy -t image/png
bindsym Shift+Print exec grim -o $(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name') - | wl-copy -t image/png
#
# Moving around:
#
@@ -208,6 +210,9 @@ input "9653:84:Samsung_electronics_inc._Samsung_HID_Multi-Touch"\
# Make the current focus fullscreen
bindsym $mod+f fullscreen
# Maximize current focus
bindsym $mod+m exec swaymsg floating true && swaymsg resize set $(swaymsg -t get_workspaces | jq -r '.[] | select(.focused) | .rect | "\(.width)px \(.height)px"')
# Toggle the current focus between tiling and floating mode
bindsym $mod+Shift+space floating toggle
@@ -262,7 +267,7 @@ bindsym Ctrl+Alt+l exec $srclocker
bar {
position top
pango_markup enabled
font pango:DejaVu Sans Mono, FontAwesome 10
font pango:DejaVu Sans Mono, devicons, FontAwesome 10
# When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time.
@@ -289,28 +294,20 @@ bindsym Ctrl+m exec mpv "$(wl-paste -t text)"
hide_edge_borders both
default_border none
gaps inner 6
#smart_gaps on
include /etc/sway/config.d/*
# Assignments
assign [class="discord"] workspace 3
assign [class="Spotify"] workspace 3
#for_window [class="Spotify"] opacity 0.8
#for_window [class="Chromium"] opacity 0.9
exec redshift -O 4500 -m wayland
exec megasync
exec nm-applet --indicator
#exec cadence
#exec ~/.local/start_jack.sh
exec ~/.config/sway/workspace_rename.py
exec ~/.config/sway/workspace_rename.py > ~/.cache/workspace_rename.log 2> ~/.cache/workspace_rename_error.log
for_window [class="Tor Browser"] floating enable
for_window [app_id="kitty-scratch"] {
for_window [app_id="kitty-scratch|pavucontrol"] {
move to scratchpad
scratchpad show
}
@@ -321,8 +318,6 @@ exec $term
workspace 2 output eDP-1
workspace 3 output eDP-1
exec discord
exec spotify
workspace 4 output "Dell Inc. DELL U2410 F525M0A1082L"
@@ -337,3 +332,7 @@ workspace 8 output "Dell Inc. DELL U2717D JXRPT83GAHKS"
workspace 9 output "Dell Inc. DELL U2717D JXRPT83GAHKS"
exec xrdb -load ~/.Xresources
exec autotiling
exec "systemctl --user import-environment; systemctl --user start sway-session.target"