diff options
| author | Marc Vertes <mvertes@free.fr> | 2020-04-29 12:35:49 +0200 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2020-04-29 12:35:49 +0200 |
| commit | 60fcbaef26d676847ad1bb525c1c146434b7bdf7 (patch) | |
| tree | 2de4c2500c98a77be6d09cfdfe76a58c53c51ae4 | |
| parent | 6f90dc904c1cff1f82c2f8dbc8fd2b24f5fc9ef6 (diff) | |
feature: add hdmi automatic toggle
| -rw-r--r-- | .Xresources | 9 | ||||
| -rw-r--r-- | .bashrc | 5 | ||||
| -rw-r--r-- | .config/i3/config | 3 | ||||
| -rwxr-xr-x | bin/hdmi | 10 |
4 files changed, 18 insertions, 9 deletions
diff --git a/.Xresources b/.Xresources index 9bc5e4b..0a54cfc 100644 --- a/.Xresources +++ b/.Xresources @@ -7,13 +7,14 @@ URxvt.colorBD: blue3 URxvt.colorUL: magenta3 URxvt.cursorColor: red ! URxvt.color12: rgb:5c/5c/ff -URxvt.font: xft:Mono:size=12 -URxvt.letterSpace: -1 +!URxvt.font: xft:Mono:size=12 +!URxvt.letterSpace: -1 +Urxvt.font: 6x13 URxvt.perl-ext-common: font-size URxvt.keysym.C-Prior: font-size:increase URxvt.keysym.C-Next: font-size:decrease -URxvt.foreground: grey90 -URxvt.background: black +!URxvt.foreground: grey90 +!URxvt.background: black xterm*termName: xterm-256color xterm*VT100.Translations: #override \ @@ -23,6 +23,7 @@ shopt -s histappend # append to history, don't overwrite it cf() { printf '\e]710;%s\007' "${1:-fixed}"; } p() { [ -f "$1" -a ! -x "$1" ] && less -XF $1 || "$@" 2>&1 | less -XF ; } +export -f p fixab() { printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" ; tail -c +25 "$1"; } @@ -43,11 +44,11 @@ alias ls='ls --color=auto' alias ll='ls -AlFh' alias op='xdg-open' alias git='hub' -alias go='go1.14.1' +#alias go='go1.14.1' alias go11='go1.11.13' alias go12='go1.12.10' alias go13='go1.13.8' -alias go14='go1.14.1' +alias go14='go1.14.2' alias gob='go build' alias goh='p go help' alias god='p go doc' diff --git a/.config/i3/config b/.config/i3/config index 27b3f5e..1babd2a 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -78,13 +78,10 @@ floating_modifier $mod # start a terminal bindsym $mod+Return exec xt -bindsym F9 exec chromium -bindsym F10 exec xt # kill focused window bindsym $mod+Shift+a kill bindsym $mod+w kill -bindsym Scroll_Lock kill bindsym --release button2 kill # start dmenu (a program launcher) diff --git a/bin/hdmi b/bin/hdmi new file mode 100755 index 0000000..f5f7b1f --- /dev/null +++ b/bin/hdmi @@ -0,0 +1,10 @@ +#!/bin/sh + +# Toggle auxiliary HDMI screen on/off when connected/disconnected. +opt="--auto --right-of eDP-1" + +# Also add the following rule to /etc/udev/rules.d/hdmi.rules +# KERNEL=="card0", SUBSYSTEM=="drm", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/marc/.Xauthority", RUN+="/home/marc/bin/hdmi" + +xrandr | grep -q 'HDMI-1 connected' || opt="--off" +xrandr --output HDMI-1 $opt |
