commit 081a88e8454aef7b99950adfed7156f23e1046dd
parent 5625e588b46d796eb0429636c4c35112cd4f6f95
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Sun, 23 Dec 2018 18:24:41 +0100
Merge branch 'master' of a3nm.net:git/mybin
Diffstat:
6 files changed, 61 insertions(+), 15 deletions(-)
diff --git a/afk_sway b/afk_sway
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+killall -s HUP gpg-agent
+
+swaylock -c 00000000 --font Terminus --inside-color ffffffff --inside-clear-color ffff00ff --inside-wrong-color ff000000 --inside-ver-color 00ff00ff --bs-hl-color ff0000ff -r --indicator-thickness 10 --indicator-radius 40
diff --git a/dodo_sway b/dodo_sway
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+sudo echo
+
+~/bin/afk_sway
+
+sudo pm-suspend
+
+synclient TapButton2=2
+
diff --git a/fix_ux330u b/fix_ux330u
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# work around some quirks with the Asus Zenbook UX330U hardware
+
+# previously, needed to load 8723au, NOT r8723au
+# and recompile and install ~/apps/rtl8723*
+# but it looks like this is no longer true
+
+if [ `hostname` = gamma -o `hostname` = gamma.a3nm.net ]
+then
+ # somehow the mouse pointer doesn't always work
+ (sudo modprobe -r psmouse; sudo modprobe psmouse) &
+
+ # somehow wifi is not properly initialized
+ (sudo ifconfig wlan0 up; sudo iwconfig wlan0 mode managed; sudo service network-manager restart) &
+fi
+
diff --git a/screenshot_sway b/screenshot_sway
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+TIME="$(date -Ins)"
+
+~/apps/grim/build/grim ~/$TIME.png
+
diff --git a/startup b/startup
@@ -1,6 +1,6 @@
#!/bin/bash
-~/bin_private/fix_gamma
+~/bin/fix_ux330u
#~/bin_private/proxy.sh
~/bin/notmuch-new.sh &
@@ -8,22 +8,13 @@ urxvtd &
~/bin_private/myfetchmail
~/bin/rehashpath
nm-applet &
-#~/bin_private/logkeys
rm ~/temp/terminals
-~/bin/layout
-~/bin/kiwix
+
+# no longer working: ~/bin_private/logkeys
+# no longer working: ~/bin/kiwix
+
# pulseaudio cannot start by itself due to the uncommon socket folder
pulseaudio &
-if [ `whoami` = a3nm ]
-then
- COLOR="#000000"
-else
- # easy reminder that this is not my real session
- COLOR="#400000"
-fi
-xsetroot -solid "$COLOR" &
-# when using compton
-hsetroot -solid "$COLOR" &
# is there a better way to reset xhost permissions?
xhost +si:localuser:`whoami`
@@ -32,7 +23,7 @@ xhost | sed 1d | grep -v `whoami` | while read l; do
done
# for now, browser can access the X server
-# TODO: use Xpra
+# TODO: use wayland
xhost +si:localuser:browser
xhost +si:localuser:browser2
xhost +si:localuser:bitcoin
diff --git a/startup_i3 b/startup_i3
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+~/bin/layout
+~/bin/startup
+
+if [ `whoami` = a3nm ]
+then
+ COLOR="#000000"
+else
+ # easy reminder that this is not my real session
+ COLOR="#400000"
+fi
+
+xsetroot -solid "$COLOR" &
+# when using compton
+hsetroot -solid "$COLOR" &
+