From aced0c8f5600d62cc98524d81c9fa6422151dc62 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 12 Jun 2018 13:49:10 +0200 Subject: net-profile: support wlp device name prefixes --- net-profile | 3 +++ 1 file changed, 3 insertions(+) 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() { -- cgit v1.2.3 From b17b6ee0280bd7a90fa95bd76e3cc966a09639a0 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 12 Jun 2018 13:49:55 +0200 Subject: upgrade-gentoo: @preserved-rebuild --- upgrade-gentoo | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3 From a3799e2934ed8952db3baead83457f752307b02c Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 12 Jun 2018 13:57:40 +0200 Subject: browser --- browser | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 browser 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 + -- cgit v1.2.3 From ae338f24efacc514081d14bea8ac4565bd971535 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 21 Jun 2018 14:10:38 +0200 Subject: autostart: fixes and additions --- autostart | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/autostart b/autostart index a419a1d..dfa94ca 100755 --- a/autostart +++ b/autostart @@ -1,26 +1,34 @@ #!/bin/sh -feh --no-xinerama --image-bg black --bg-center "$HOME/images/MIPS_R3000A_die-1024x1024.jpg" +feh --no-xinerama --image-bg black --bg-fill "$HOME/image/MIPS-R3000A-die.jpg" & -mkdir -p /tmp/pks/.cache /tmp/pks/.ccache +mkdir -p /tmp/pks/.cache /tmp/pks/.ccache /tmp/mutt & -xmodmap - -xbindkeys +exec xmodmap ${HOME}/.Xmodmap & +xbindkeys & ~/.local/bin/urxvtd -q -f -o -xrandr --output VGA-0 --off -xrandr --output VGA0 --off -xrandr --output VGA-1 --off -xrandr --output VGA1 --off +imwheel & +unclutter -idle 5 & + +xset s 0 & +xset b off & -imwheel +~/.local/bin/notification-daemon-launch & -xset s 0 -xset b off +exec ${HOME}/bin/ratcpi & +exec ${HOME}/.local/bin/mouse-settings & -unclutter -idle 5 & +if [[ $(hostname) == "bryant" ]]; then + exec xrandr --output DP-7 --rotate right & + exec sudo nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan-0]/GPUTargetFanSpeed=1" & +fi -~/.local/bin/notification-daemon-launch & +if [[ $(hostname) == "bogues" ]]; then + xrandr --output VGA-0 --off & + xrandr --output VGA0 --off & + xrandr --output VGA-1 --off & + xrandr --output VGA1 --off & +fi -- cgit v1.2.3