dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 03e768b7434052892501fa9e2a86685f7137611e
parent 8592c47d72338303bbc614fbe856ed5fb8dd6f5f
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon, 17 Dec 2018 09:10:37 +0100

Disable redshift, show SSID in status

Diffstat:
Mlinks/.config/i3/config | 2+-
Mlinks/.config/i3/i3scripts/i3internet | 8+++++++-
Mlinks/.xinitrc | 7+++----
3 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/links/.config/i3/config b/links/.config/i3/config @@ -220,7 +220,7 @@ bar { bindsym $mod+F5 exec --no-startup-id $netrefresh bindsym $mod+Shift+F5 exec $term -e nmtui -#bindsym XF86WLAN exec $term -e nmtui +#bindsym XF86WLAN exec $term -e nmtui # auto-start programs exec --no-startup-id mpd ~/.mpd/mpd.conf diff --git a/links/.config/i3/i3scripts/i3internet b/links/.config/i3/i3scripts/i3internet @@ -13,6 +13,12 @@ esac [ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon="📡" -[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "📶", int($3 * 100 / 70) "% " }') +if [ ! -n "${wifiicon+var}" ]; then + wifiicon=$(grep "^\s*w" /proc/net/wireless | \ + awk '{ print "📶", int($3 * 100 / 70) "% " }') + ssid=$(nmcli connection show | head -n 2 | tail -n 1 | awk '{print $1}') + wifiicon="$wifiicon($ssid) " +fi + printf "%s%s" "$wifiicon" "$(cat /sys/class/net/e*/operstate | sed "s/down/❎/;s/up/🌐/")" diff --git a/links/.xinitrc b/links/.xinitrc @@ -101,11 +101,10 @@ if [ "$HOSTNAME" = "iddqd" ]; then xrandr --output DP-1 --auto --left-of DVI-D-0 fi -if [ "$HOSTNAME" != "phony" ] -then +#if [ "$HOSTNAME" != "phony" ]; then #redshift -l 56.09:10.12 & # Aarhus - redshift -l 32.84:-117.26 & # San Diego -fi + #redshift -l 32.84:-117.26 & # San Diego +#fi # Start screensaver daemon #/usr/bin/xscreensaver -no-splash &