Skip to content

Commit

Permalink
feat: Updates for ArchDiamond traveling
Browse files Browse the repository at this point in the history
  • Loading branch information
vEnhance committed Aug 1, 2024
1 parent af7dca9 commit d724167
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion py3status/order.ArchDiamond.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ order += "volume_status mic"
order += "whoami"
# order += "read_file ctwenty"
order += "clock"
order += "nvidia_smi"
# order += "nvidia_smi"
# order += "ethernet _first_"
# order += "online_status"
8 changes: 7 additions & 1 deletion sh-scripts/redo-keys.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash

# Make sure we're in Dvorak
setxkbmap us -variant dvorak -option caps:escape
Expand All @@ -7,6 +7,12 @@ if [ "$(hostname)" = ArchScythe ] || [ "$(hostname)" = ArchSapphire ]; then
synclient VertScrollDelta=-237
fi

# In case we're at home with that one keyboard that has no tilde key...
usb_out=$(lsusb)
if [ "$(hostname)" = ArchDiamond ] && grep "Logitech, Inc. Unifying Receiver" <<<"$usb_out"; then
xmodmap -e "keycode 9 = grave asciitilde grave asciitilde dead_grave dead_tilde dead_grave"
fi

if [ "$(hostname)" = ArchSapphire ]; then
# replace the useless menu key with extra ctrl
xmodmap -e "remove Control = Control_R"
Expand Down
6 changes: 4 additions & 2 deletions xprofile
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,16 @@ if [ "$(hostname)" = ArchSapphire ]; then
fi

if [ "$(hostname)" = ArchDiamond ]; then
# Note: check Xft.dpi in ~/.Xresources
if [ "$(date +"%Z")" = PDT ]; then
xset s 900 30
xset dpms 600 600 600
xmodmap -e "keycode 9 = grave asciitilde grave asciitilde dead_grave dead_tilde dead_grave"
else
xset s 14400 14400
xset dpms 14400 14400 14400
export QT_AUTO_SCREEN_SCALE_FACTOR=2
export GDK_SCALE=2
# export QT_AUTO_SCREEN_SCALE_FACTOR=2
# export GDK_SCALE=2
fi
xmodmap -e "pointer = 3 2 1" &>/dev/null # left-hand mouse
keychain --quiet
Expand Down

0 comments on commit d724167

Please sign in to comment.