From ec00205049a7e8d4c3634b209833c00cf9155ebf Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sat, 21 Jul 2018 19:04:02 -0400 Subject: [PATCH] [rc] add s script for launching sway with customizations 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 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/rc.org b/rc.org index a63d391..2c54071 100644 --- 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" -- 2.20.1