summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <pks@pks.rocks>2018-06-21 14:10:53 +0200
committerPatrick Simianer <pks@pks.rocks>2018-06-21 14:10:53 +0200
commit081b22319924e46107b3e3d03a29afb705f9914a (patch)
tree028ed81dc4f3511ca1bcd75893675ff8facd993a
parentae338f24efacc514081d14bea8ac4565bd971535 (diff)
parent0dfb7c145b41ffe349faf5d6abd7cc93f5d4b93b (diff)
Merge branch 'master' of https://github.com/pks/bin
-rwxr-xr-xbrowser11
-rwxr-xr-xnet-profile3
-rwxr-xr-xupgrade-gentoo1
3 files changed, 15 insertions, 0 deletions
diff --git a/browser b/browser
new file mode 100755
index 0000000..e4bb7aa
--- /dev/null
+++ b/browser
@@ -0,0 +1,11 @@
+#!/usr/bin/env zsh
+
+dpi=`xdpyinfo | grep -oP 'resolution:\s+\K\S+'`
+host=$(hostname)
+
+if [[ $dpi == 96x96 ]]; then
+ GDK_DPI_SCALE=1.6 /usr/bin/env firefox
+else
+ /usr/bin/env firefox
+fi
+
diff --git a/net-profile b/net-profile
index 7cb353d..607cb5b 100755
--- a/net-profile
+++ b/net-profile
@@ -1,6 +1,9 @@
#!/bin/sh
DEV=`ls -1 /sys/class/net | grep wlan`
+if [[ $DEV == "" ]]; then
+ DEV=`ls -1 /sys/class/net | grep wlp`
+fi
setup_wifi()
{
diff --git a/upgrade-gentoo b/upgrade-gentoo
index e26f575..c3cb41d 100755
--- a/upgrade-gentoo
+++ b/upgrade-gentoo
@@ -28,6 +28,7 @@ read p\?"press enter to continue... "
etc-update
emerge -av --depclean
revdep-rebuild
+emerge @preserved-rebuild
eclean -d distfiles
localepurge