[rc] add s script for launching sway with customizations
authorAmin Bandali <amin@aminb.org>
Sat, 21 Jul 2018 23:04:02 +0000 (19:04 -0400)
committerAmin Bandali <amin@aminb.org>
Sat, 21 Jul 2018 23:04:02 +0000 (19:04 -0400)
TODO: later might want to check for hostname to decide what to do on
      plasma and enigma (currently, i'm only using it on plasma)

rc.org

diff --git a/rc.org b/rc.org
index a63d391..2c54071 100644 (file)
--- a/rc.org
+++ b/rc.org
@@ -4827,6 +4827,20 @@ val=$(rofi -dmenu -mesg "light    $cur" -p "light -S " -l 0 -width 12)
 light -S $val
 #+end_src
 
+** s (run sway)
+:PROPERTIES:
+:header-args+: :tangle ~/.local/bin/s :shebang "#!/bin/bash"
+:END:
+
+#+begin_src bash
+export XKB_DEFAULT_OPTIONS=ctrl:nocaps,altwin:swap_alt_win,ctrl:rctrl_ralt
+export _JAVA_AWT_WM_NONREPARENTING=1
+export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true'
+light -Scrs "intel_backlight" 2
+source $HOME/.zprofile
+sway
+#+end_src
+
 ** toggle-layout
 :PROPERTIES:
 :header-args+: :tangle ~/.local/bin/toggle-layout :shebang "#!/bin/bash"