summaryrefslogtreecommitdiffstats
path: root/.config/sway/config
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-04-18 23:45:02 -0400
committerAmin Bandali <bandali@gnu.org>2019-04-19 09:13:48 -0400
commit007ff825a7bdf58e51f146e2b68922b244746221 (patch)
treeebfa8527050319fef7a2a6249403cfc978715a65 /.config/sway/config
parentad9dee3b0b0dec50e3f2c50b51115234f999fd4b (diff)
downloadconfigs-007ff825a7bdf58e51f146e2b68922b244746221.tar.gz
configs-007ff825a7bdf58e51f146e2b68922b244746221.tar.xz
configs-007ff825a7bdf58e51f146e2b68922b244746221.zip
sway: add launch mode
Diffstat (limited to '.config/sway/config')
-rw-r--r--.config/sway/config22
1 files changed, 20 insertions, 2 deletions
diff --git a/.config/sway/config b/.config/sway/config
index dcf4bb9..ddd4d4e 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -36,10 +36,28 @@ exec swayidle \
#
# Basics:
#
+
+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
+mode "$mode_launch" {
+ bindsym Return exec $floating_term, mode "default"
+ bindsym e exec emacs, mode "default"
+ bindsym a exec iceweasel -P aminb, mode "default"
+ bindsym c exec iceweasel -P chr, mode "default"
+ bindsym p exec iceweasel -P chr -private, mode "default"
+ bindsym Shift+c exec icecat, mode "default"
+
+ # back to normal: Escape, or q
+ bindsym Escape mode "default"
+ bindsym q mode "default"
+}
+ bindsym XF86Launch1 mode "$mode_launch"
+
# start a terminal
bindsym $mod+Return exec $term
- bindsym $mod+Shift+Return exec $term -name floating
- for_window [class="URxvt" instance="floating"] floating enable
+ bindsym $mod+Shift+Return exec $floating_term
# kill focused window
bindsym $mod+Shift+q kill