summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@datawire.io>2020-04-18 14:49:06 -0400
committerLuke Shumaker <lukeshu@datawire.io>2020-04-18 14:49:06 -0400
commit1a332553c19193deac598aa6a1fe9f086d525ee1 (patch)
treec778f4c628216a8189b4581d7b26404c55144d17 /.config
parent3c656badac2f6ed20849efff047e7a15cbd3288a (diff)
x
Diffstat (limited to '.config')
-rw-r--r--.config/X11/modmap4
-rw-r--r--.config/X11/resources5
-rw-r--r--.config/wmii-hg/rbar.sh7
-rwxr-xr-x.config/wmii-hg/rbar_wifi31
4 files changed, 35 insertions, 12 deletions
diff --git a/.config/X11/modmap b/.config/X11/modmap
index 22d2ac6..5d94726 100644
--- a/.config/X11/modmap
+++ b/.config/X11/modmap
@@ -34,8 +34,8 @@ clear mod5
add shift = Shift_L Shift_R
add lock = Caps_Lock
add control = Control_L Control_R
-add mod1 = Num_Lock
-add mod2 = Alt_L Alt_R Meta_L Meta_R
+add mod1 = Alt_L Alt_R Meta_L Meta_R
+add mod2 = Num_Lock
add mod3 = ISO_Level3_Shift
add mod4 = Super_L Super_R
add mod5 = Hyper_L Hyper_R
diff --git a/.config/X11/resources b/.config/X11/resources
index c85fdaf..64cad98 100644
--- a/.config/X11/resources
+++ b/.config/X11/resources
@@ -1,5 +1,10 @@
! -*- Mode: Conf-xdefaults -*-
+! with scaling on some monitors, subpixel rendering doesn't make sense
+Xft.rgba: none
+! when doing the scaling, avoid letting sampling artifacts hide thin lines
+Xft.embolden: true
+
! "native" colors
URxvt.background: #000000
URxvt.foreground: #CCCCCC
diff --git a/.config/wmii-hg/rbar.sh b/.config/wmii-hg/rbar.sh
index b02c2e9..4180444 100644
--- a/.config/wmii-hg/rbar.sh
+++ b/.config/wmii-hg/rbar.sh
@@ -13,6 +13,13 @@ write() {
sponge|tee -a "${dirs[@]/%/${1}}" > /dev/null || true
}
+type left-click &>/dev/null || left-click() { :; }
+type middle-click &>/dev/null || middle-click() { :; }
+type right-click &>/dev/null || right-click() { :; }
+type scroll-up &>/dev/null || scroll-up() { :; }
+type scroll-down &>/dev/null || scroll-down() { :; }
+type update &>/dev/null || update() { :; }
+
set -eE
shopt -s nullglob
case "$1" in
diff --git a/.config/wmii-hg/rbar_wifi b/.config/wmii-hg/rbar_wifi
index c77efa5..48ea06c 100755
--- a/.config/wmii-hg/rbar_wifi
+++ b/.config/wmii-hg/rbar_wifi
@@ -53,20 +53,31 @@ update() {
}
right-click() {
- local list cur item
+ local list
+ mapfile -t list < <({ netctl-auto list | sort -k1.2; printf '> %s\n' 'New Network' 'Disable All' 'Enable All';} | sed 's,$,$,' | column -s '$' -t)
- list=()
- IFS=''
- while read -r line; do
- list+=("$line")
- done < <({ netctl-auto list | sort -k1.2; printf '> %s\n' 'New Network' 'Disable All' 'Enable All';} | sed 's,$,$,' | column -s '$' -t)
-
- cur=''
+ local cur=''
+ local any_enabled=false
+ local item_enable_all=''
+ local item_new_network=''
+ local item
for item in "${list[@]}"; do
- if [[ "$item" = '* '* ]]; then
- cur="$item"
+ case "$item" in
+ '* '*) cur="$item";;
+ '> New Network'*) item_new_network=$item;;
+ '> Enable All'*) item_enable_all=$item;;
+ esac
+ if [[ "$item" != '! '* ]] && [[ "$item" != '> '* ]]; then
+ any_enabled=true
fi
done
+ if [[ -z $cur ]]; then
+ if $any_enabled; then
+ cur=$item_new_network
+ else
+ cur=$item_enable_all
+ fi
+ fi
IFS=$' \t\n'
item=$(wmii9menu -i "$cur" "${list[@]}")