aboutsummaryrefslogtreecommitdiffstats
path: root/.config/sway
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2021-02-07 20:30:41 +0100
committerDavid Runge <dave@sleepmap.de>2021-02-07 20:30:41 +0100
commit687ee846cfee3a0df746ddecd919444182efc12e (patch)
tree1d7750ff8703800dba7e92e93b5179dc1381c882 /.config/sway
parentd29ed3dffff25433def93354dc307d81f5243813 (diff)
downloaddotfiles-687ee846cfee3a0df746ddecd919444182efc12e.tar.gz
dotfiles-687ee846cfee3a0df746ddecd919444182efc12e.tar.bz2
dotfiles-687ee846cfee3a0df746ddecd919444182efc12e.tar.xz
dotfiles-687ee846cfee3a0df746ddecd919444182efc12e.zip
sway: extend config by shortcuts and window moves
.config/sway/config: Add shortcut for creating a screenshot from a selection, using Mod+Ctrl+i. Move nextcloud, carla, steam, ghb, mediaelch, and shotwell to their own workspaces. Start gammastep on start.
Diffstat (limited to '.config/sway')
-rw-r--r--.config/sway/config18
1 files changed, 13 insertions, 5 deletions
diff --git a/.config/sway/config b/.config/sway/config
index d8feda5..9aede99 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -17,6 +17,7 @@ set $right l
set $term alacritty
# Your preferred application launcher
set $menu rofi -show drun
+set $select_screenshot grim -g "$(slurp)" ~/Downloads/screenshot-"$(date +'%Y-%m-%d_%H-%M-%S')".png
set $screenshot grim ~/Downloads/screenshot-"$(date +'%Y-%m-%d_%H-%M-%S')".png
# lock
@@ -87,6 +88,8 @@ input type:touchpad {
# screenshot
bindsym $mod+Ctrl+u exec $screenshot
+ # selection screenshot
+ bindsym $mod+Ctrl+i exec $select_screenshot
# exit sway (logs you out of your wayland session)
bindsym $mod+Ctrl+e exit
@@ -218,7 +221,8 @@ mode "resize" {
bindsym $mod+r mode "resize"
-for_window [class="Nextcloud"] move container to workspace 2
+for_window [class="Nextcloud"] move container to workspace 10
+for_window [app_id="com.nextcloud.desktopclient.nextcloud"] move container to workspace 10
for_window [class="firefox"] move container to workspace 2
for_window [app_id="firefox"] move container to workspace 2
for_window [class="qutebrowser"] move container to workspace 2
@@ -228,18 +232,21 @@ for_window [class="DialogWindow"] move container to workspace 3
for_window [class="PatchWindow"] move container to workspace 3
for_window [class="PdWindow"] move container to workspace 3
for_window [class="ffado-mixer"] move container to workspace 4
-for_window [class="Carla*"] move container to workspace 4
+for_window [class="Carla"] move container to workspace 4
+for_window [app_id="carla"] move container to workspace 4
for_window [class="Ardour*"] move container to workspace 4
for_window [class="Hydrogen"] move container to workspace 4
for_window [class="Yoshimi"] move container to workspace 4
for_window [class="Zynaddsubfx"] move container to workspace 4
-for_window [class="MediaElch"] move container to workspace 6
for_window [class="Qsynth"] move container to workspace 4
for_window [class="Qsynth"] floating enable
-for_window [app_id="ghb"] move container to workspace 7
-for_window [app_id="shotwell"] move container to workspace 8
for_window [app_id="qjackctl"] move container to workspace 4
for_window [app_id="qjackctl"] floating enable
+for_window [class="Steam"] move container to workspace 5
+for_window [title="Steam - News*"] kill
+for_window [class="MediaElch"] move container to workspace 6
+for_window [app_id="ghb"] move container to workspace 7
+for_window [app_id="shotwell"] move container to workspace 8
# Status Bar:
#
@@ -254,6 +261,7 @@ exec [ -x /usr/bin/swayidle ] && [ -x /usr/bin/swaylock ] && swayidle -w \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 000000'
+exec [ -x /usr/bin/gammastep ] && /usr/bin/gammastep
exec [ -x /usr/bin/lxpolkit ] && /usr/bin/lxpolkit
exec [ -x /usr/bin/nextcloud ] && /usr/bin/nextcloud