From 2ef069ef35fdc2b3e7a290680e81e96fc0b070ad Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 7 Dec 2018 09:38:24 +0100 Subject: [PATCH 1/6] run xconfig after profile switch --- .config/autorandr/postswitch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/autorandr/postswitch b/.config/autorandr/postswitch index 49325d0..fcabf46 100755 --- a/.config/autorandr/postswitch +++ b/.config/autorandr/postswitch @@ -9,3 +9,7 @@ if command -v awesome-client >/dev/null; then echo "handle_new_autorandr_profile(\"$AUTORANDR_CURRENT_PROFILE\")" | awesome-client >&2 fi + +sleep $DELAY + +~/.bin/xconfig >&2 -- 2.39.2 From 553827432ce1201b160e1f5b3072ea51d6c6a72b Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 31 Oct 2019 16:28:10 +1300 Subject: [PATCH 2/6] rename hook to run on all affected repos --- .../{xsession.post-clone => post-clone.xsession-update} | 0 .../{xsession.post-enter => post-enter.xsession-update} | 0 .../{xsession.post-pull => post-pull.xsession-update} | 0 .../hooks-enabled/{xsession.post-run => post-run.xsession-update} | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename .config/vcsh/hooks-enabled/{xsession.post-clone => post-clone.xsession-update} (100%) rename .config/vcsh/hooks-enabled/{xsession.post-enter => post-enter.xsession-update} (100%) rename .config/vcsh/hooks-enabled/{xsession.post-pull => post-pull.xsession-update} (100%) rename .config/vcsh/hooks-enabled/{xsession.post-run => post-run.xsession-update} (100%) diff --git a/.config/vcsh/hooks-enabled/xsession.post-clone b/.config/vcsh/hooks-enabled/post-clone.xsession-update similarity index 100% rename from .config/vcsh/hooks-enabled/xsession.post-clone rename to .config/vcsh/hooks-enabled/post-clone.xsession-update diff --git a/.config/vcsh/hooks-enabled/xsession.post-enter b/.config/vcsh/hooks-enabled/post-enter.xsession-update similarity index 100% rename from .config/vcsh/hooks-enabled/xsession.post-enter rename to .config/vcsh/hooks-enabled/post-enter.xsession-update diff --git a/.config/vcsh/hooks-enabled/xsession.post-pull b/.config/vcsh/hooks-enabled/post-pull.xsession-update similarity index 100% rename from .config/vcsh/hooks-enabled/xsession.post-pull rename to .config/vcsh/hooks-enabled/post-pull.xsession-update diff --git a/.config/vcsh/hooks-enabled/xsession.post-run b/.config/vcsh/hooks-enabled/post-run.xsession-update similarity index 100% rename from .config/vcsh/hooks-enabled/xsession.post-run rename to .config/vcsh/hooks-enabled/post-run.xsession-update -- 2.39.2 From 6cbdaad0231128540075681e8b19cd2217ea1990 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 31 Oct 2019 23:06:46 +1300 Subject: [PATCH 3/6] handle xinput xconfig --- .bin/xconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.bin/xconfig b/.bin/xconfig index 6d09d4a..06fac0c 100755 --- a/.bin/xconfig +++ b/.bin/xconfig @@ -32,9 +32,20 @@ load_xresources() { xrdb -load ~/.Xresources } +config_xinput() { + echo -n >&2 " xinput" + xinput set-float-prop "TPPS/2 IBM TrackPoint" "Device Accel Constant Deceleration" 0.7 2>/dev/null || : + + WIRELESS_RECEIVER=$(xinput | sed -rne 's,.*Lenovo USB Receiver[[:space:]]+id=([[:digit:]]+).*pointer.*,\1,p') + if [ -n "$WIRELESS_RECEIVER" ]; then + xinput set-button-map $WIRELESS_RECEIVER 1 2 3 4 5 6 7 0 0 0 >/dev/null || : + fi +} + echo -n >&2 "Configuring X [" [ -n "${SKIP_XKB:-}" ] || config_xkb [ -n "${SKIP_XSET:-}" ] || config_xset [ -n "${SKIP_XSETROOT:-}" ] || config_xsetroot [ -n "${SKIP_XRESOURCES:-}" ] || load_xresources +[ -n "${SKIP_XINPUT:-}" ] || config_xinput echo >&2 " ] done." -- 2.39.2 From 960023766038a2a644f43c4710b0430cde936d7e Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 31 Oct 2019 23:07:06 +1300 Subject: [PATCH 4/6] add non-breaking space to keymap --- .xkb/symbols/madduck | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.xkb/symbols/madduck b/.xkb/symbols/madduck index 3471a8d..ef781b3 100644 --- a/.xkb/symbols/madduck +++ b/.xkb/symbols/madduck @@ -72,6 +72,9 @@ xkb_symbols "group2_intl" { key { symbols[Group2] = [ BackSpace, BackSpace ] }; + key { + symbols[Group2] = [ nobreakspace, nobreakspace ] + }; key { symbols[Group2] = [ Tab, Tab ] }; -- 2.39.2 From c6d8460df56e6819fc2ee045bdca6af0cb726054 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 3 Feb 2022 07:34:33 +0100 Subject: [PATCH 5/6] enable 256 colours in rxvt-unicode --- .Xresources | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.Xresources b/.Xresources index 46cf364..ec47849 100644 --- a/.Xresources +++ b/.Xresources @@ -71,7 +71,7 @@ URxvt.matcher.rend.1: Uline // URxvt.background: rgba:0000/0000/0000/dddd URxvt.transparent: false -URxvt.termName: rxvt-unicode +URxvt.termName: rxvt-unicode-256color URxvt.keysym.A-t: eval:{ use POSIX qw(strftime); $self->{term}->tt_write_user_input($self->{term}->locale_encode(POSIX::strftime("%F", localtime))) } URxvt.keysym.A-T: eval:{ use POSIX qw(strftime); $self->{term}->tt_write_user_input($self->{term}->locale_encode(POSIX::strftime("%F-%H%M%S", localtime))) } -- 2.39.2 From ae1c961c048e6325b1640f67384d33e2e06341ff Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 3 Feb 2022 07:36:01 +0100 Subject: [PATCH 6/6] store temp xsession errors file on cleanup --- .xsession | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.xsession b/.xsession index 1c92e34..ea1683e 100755 --- a/.xsession +++ b/.xsession @@ -11,6 +11,15 @@ elif [ -L /tmp/xsession-$LOGNAME ]; then fi chmod 600 $NEW_ERRFILE ln -sf $NEW_ERRFILE $HOME/.xsession-errors + +TRAPS="0 1 2 3 4 5 6 7 8 10 11 12 13 14 15" +cleanup() { + rm -f $HOME/.xsession-errors + mv $NEW_ERRFILE $HOME/.xsession-errors + trap - $TRAPS +} +trap cleanup $TRAPS + exec >>$NEW_ERRFILE 2>&1 set -u -- 2.39.2