summaryrefslogtreecommitdiffstats
path: root/.config/sway/config
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-05-09 08:46:01 -0400
committerAmin Bandali <bandali@gnu.org>2019-05-09 08:46:01 -0400
commitd9241fc2f8fad196658f5167c56b062485dcc217 (patch)
tree078445b9715ebae10bdbb7fb1d7b374156786748 /.config/sway/config
parent88606ff7dc0f900042c51f37a4d76ec657e72294 (diff)
downloadconfigs-d9241fc2f8fad196658f5167c56b062485dcc217.tar.gz
configs-d9241fc2f8fad196658f5167c56b062485dcc217.tar.xz
configs-d9241fc2f8fad196658f5167c56b062485dcc217.zip
sway: move monitor to the right, and some other minor tweaks
Diffstat (limited to '.config/sway/config')
-rw-r--r--.config/sway/config14
1 files changed, 8 insertions, 6 deletions
diff --git a/.config/sway/config b/.config/sway/config
index e1a421b..73a291b 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -21,9 +21,9 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
-output DP-1 res 2560x1440 pos 0,0
+output DP-1 res 2560x1440 pos 1366,0
# 672 = 1440 - 768
-output LVDS-1 pos 2560,760
+output LVDS-1 pos 0,760
### Idle configuration
@@ -40,7 +40,7 @@ exec swayidle \
set $floating_term $term -name floating
for_window [class="URxvt" instance="floating"] floating enable
-set $mode_launch (⏎)urxvt, (e)macs, iceweasel (a)minb (c)hr (p)riv, ice(C)at
+set $mode_launch (⏎)urxvt | (e)macs | iceweasel (a)minb (c)hr (p)riv | ice(C)at
mode "$mode_launch" {
bindsym Return exec $floating_term, mode "default"
bindsym e exec emacs, mode "default"
@@ -224,7 +224,7 @@ bindsym $mod+Shift+r mode "resize"
# Power button
#
-set $mode_system System (l)ock, (e)xit sway, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown
+set $mode_system System (l)ock | (e)xit sway | (s)uspend | (h)ibernate | (r)eboot | (S)hutdown
mode "$mode_system" {
bindsym l exec swaylock, mode "default"
bindsym e exec swaymsg exit, mode "default"
@@ -240,6 +240,7 @@ mode "$mode_system" {
}
# bindsym XF86PowerOff mode "$mode_system"
bindsym $mod+Shift+e mode "$mode_system"
+bindsym XF86ScreenSaver exec swaylock
#
# Presentation mode
@@ -265,14 +266,15 @@ mode notifications {
# Screenshotting
#
-bindsym $mod+Shift+s mode screenshot
-mode screenshot {
+set $mode_screenshot (a)ll | (r)egion
+mode "$mode_screenshot" {
bindsym a exec grim $(xdg-user-dir PICTURES)/shots/$(date +'%Y-%m-%d-%H%M%S.png'); mode default
bindsym r exec slurp | grim -g - $(xdg-user-dir PICTURES)/shots/$(date +'%Y-%m-%d-%H%M%S.png'); mode default
bindsym Escape mode default
bindsym q mode default
}
+bindsym Print mode "$mode_screenshot"
#
# Window configurations