From 0c2365419686be96a68355675fa0af7d9f027bc6 Mon Sep 17 00:00:00 2001 From: eneller Date: Sat, 1 Feb 2025 11:09:30 +0100 Subject: [PATCH] minor updates --- .config/autorandr/beamer/config | 28 +++++++++++++++++++++++ .config/autorandr/beamer/setup | 2 ++ .config/autorandr/home_setup/config | 6 ----- .config/autorandr/home_setup/setup | 2 +- .config/autorandr/home_tv/config | 28 +++++++++++++++++++++++ .config/autorandr/home_tv/setup | 2 ++ .config/autorandr/u2711/config | 34 ++++++++++++++++++++++++++++ .config/autorandr/u2711/setup | 2 ++ .config/autorandr/u_setup_new/config | 28 +++++++++++++++++++++++ .config/autorandr/u_setup_new/setup | 2 ++ .config/gh/config.yml | 1 + .config/shell/alias.sh | 17 ++++++-------- 12 files changed, 135 insertions(+), 17 deletions(-) create mode 100644 .config/autorandr/beamer/config create mode 100644 .config/autorandr/beamer/setup create mode 100644 .config/autorandr/home_tv/config create mode 100644 .config/autorandr/home_tv/setup create mode 100644 .config/autorandr/u2711/config create mode 100644 .config/autorandr/u2711/setup create mode 100644 .config/autorandr/u_setup_new/config create mode 100644 .config/autorandr/u_setup_new/setup diff --git a/.config/autorandr/beamer/config b/.config/autorandr/beamer/config new file mode 100644 index 0000000..f3fcbb4 --- /dev/null +++ b/.config/autorandr/beamer/config @@ -0,0 +1,28 @@ +output DP-1 +off +output HDMI-1 +off +output DP-2 +off +output eDP-1 +crtc 0 +mode 1920x1080 +pos 0x0 +primary +rate 60.02 +x-prop-broadcast_rgb Automatic +x-prop-colorspace Default +x-prop-max_bpc 12 +x-prop-non_desktop 0 +x-prop-scaling_mode Full aspect +output HDMI-2 +crtc 1 +mode 1920x1080 +pos 0x0 +rate 60.00 +x-prop-aspect_ratio Automatic +x-prop-audio auto +x-prop-broadcast_rgb Automatic +x-prop-colorspace Default +x-prop-max_bpc 12 +x-prop-non_desktop 0 diff --git a/.config/autorandr/beamer/setup b/.config/autorandr/beamer/setup new file mode 100644 index 0000000..f1a0d95 --- /dev/null +++ b/.config/autorandr/beamer/setup @@ -0,0 +1,2 @@ +HDMI-2 00ffffffffffff004ca319a501010101311a0103800000780ade50a3544c99260f5054210800a9c090c0b300950095408140a9408180023a801871382d40582c450040846300001e662156aa51001e30468f330040846300001e000000fd0017550f5c11000a202020202020000000fc004550534f4e20504a0a202020200197020328f151901f202205140413030212110706161501230907078301000066030c00100080e200fb9e20009051201f304880360040846300001c023a80d072382d40102c458040846300001e283c80a070b023403020360040846300001a011d8018711c1620582c250040846300009e00000000000000000000000000000082 +eDP-1 00ffffffffffff0030e4080600000000001c0104a51f117802e085a3544e9b260e5054000000010101010101010101010101010101012e3680a070381f403020350035ae1000001a542b80a070381f403020350035ae1000001a000000fe004c4720446973706c61790a2020000000fe004c503134305746392d5350463100d5 diff --git a/.config/autorandr/home_setup/config b/.config/autorandr/home_setup/config index f5cc11b..39f99f5 100644 --- a/.config/autorandr/home_setup/config +++ b/.config/autorandr/home_setup/config @@ -4,12 +4,6 @@ output HDMI-1 off output DP-2 off -output DP-2-1 -off -output DP-2-2 -off -output DP-2-3 -off output eDP-1 crtc 0 mode 1920x1080 diff --git a/.config/autorandr/home_setup/setup b/.config/autorandr/home_setup/setup index e3a5f7a..e854c3e 100644 --- a/.config/autorandr/home_setup/setup +++ b/.config/autorandr/home_setup/setup @@ -1,2 +1,2 @@ -HDMI-2 00ffffffffffff0010ac5f4157563541281d0103803c2278eeee95a3544c99260f5054a54b00714f8180a940d1c00101010101010101565e00a0a0a029503020350055502100001a000000ff00335a53465253320a2020202020000000fc0044454c4c205532373139440a20000000fd00384c1e5a19000a20202020202001c7020322f14f90050403020716010611121513141f23097f078301000065030c001000023a801871382d40582c450055502100001e7e3900a080381f4030203a0055502100001a011d007251d01e206e28550055502100001ebf1600a08038134030203a0055502100001a00000000000000000000000000000000000000000088 +HDMI-2 00ffffffffffff0010ac67d04c47443014190103803c2278ee4455a9554d9d260f5054a54b00b300d100714fa9408180778001010101565e00a0a0a029503020350055502100001a000000ff0047483835443535423044474c0a000000fc0044454c4c205532373135480a20000000fd0038561e711e000a20202020202001e0020322f14f1005040302071601141f1213202122230907078301000065030c001000023a801871382d40582c250055502100001e011d8018711c1620582c250055502100009e011d007251d01e206e28550055502100001e8c0ad08a20e02d10103e9600555021000018483f00ca808030401a50130055502100001e00000094 eDP-1 00ffffffffffff0030e4080600000000001c0104a51f117802e085a3544e9b260e5054000000010101010101010101010101010101012e3680a070381f403020350035ae1000001a542b80a070381f403020350035ae1000001a000000fe004c4720446973706c61790a2020000000fe004c503134305746392d5350463100d5 diff --git a/.config/autorandr/home_tv/config b/.config/autorandr/home_tv/config new file mode 100644 index 0000000..9db18a7 --- /dev/null +++ b/.config/autorandr/home_tv/config @@ -0,0 +1,28 @@ +output DP-1 +off +output HDMI-1 +off +output DP-2 +off +output eDP-1 +crtc 0 +mode 1920x1080 +pos 0x0 +primary +rate 60.02 +x-prop-broadcast_rgb Automatic +x-prop-colorspace Default +x-prop-max_bpc 12 +x-prop-non_desktop 0 +x-prop-scaling_mode Full aspect +output HDMI-2 +crtc 1 +mode 1920x1080 +pos 1920x0 +rate 60.00 +x-prop-aspect_ratio Automatic +x-prop-audio auto +x-prop-broadcast_rgb Automatic +x-prop-colorspace Default +x-prop-max_bpc 12 +x-prop-non_desktop 0 diff --git a/.config/autorandr/home_tv/setup b/.config/autorandr/home_tv/setup new file mode 100644 index 0000000..f749e27 --- /dev/null +++ b/.config/autorandr/home_tv/setup @@ -0,0 +1,2 @@ +HDMI-2 00ffffffffffff004c2d7d0a010000002e160103806639780aee91a3544c99260f5054bdef80714f81c0810081809500a9c0b3000101023a801871382d40582c450024724200001e662156aa51001e30468f330024724200001e000000fd00184b0f5117000a202020202020000000fc0053414d53554e470a20202020200153020330f14d901f04130514031220212207162309070783010000e2000f72030c002000b82d21d0080140073f405090a0011d80d0721c1620102c258024724200009e011d8018711c1620582c250024724200009e011d00bc52d01e20b828554024724200001e011d007251d01e206e28550024724200001e000000000000000e +eDP-1 00ffffffffffff0030e4080600000000001c0104a51f117802e085a3544e9b260e5054000000010101010101010101010101010101012e3680a070381f403020350035ae1000001a542b80a070381f403020350035ae1000001a000000fe004c4720446973706c61790a2020000000fe004c503134305746392d5350463100d5 diff --git a/.config/autorandr/u2711/config b/.config/autorandr/u2711/config new file mode 100644 index 0000000..f5cc11b --- /dev/null +++ b/.config/autorandr/u2711/config @@ -0,0 +1,34 @@ +output DP-1 +off +output HDMI-1 +off +output DP-2 +off +output DP-2-1 +off +output DP-2-2 +off +output DP-2-3 +off +output eDP-1 +crtc 0 +mode 1920x1080 +pos 0x0 +primary +rate 60.02 +x-prop-broadcast_rgb Automatic +x-prop-colorspace Default +x-prop-max_bpc 12 +x-prop-non_desktop 0 +x-prop-scaling_mode Full aspect +output HDMI-2 +crtc 1 +mode 2560x1440 +pos 1920x0 +rate 59.95 +x-prop-aspect_ratio Automatic +x-prop-audio auto +x-prop-broadcast_rgb Automatic +x-prop-colorspace Default +x-prop-max_bpc 12 +x-prop-non_desktop 0 diff --git a/.config/autorandr/u2711/setup b/.config/autorandr/u2711/setup new file mode 100644 index 0000000..e3a5f7a --- /dev/null +++ b/.config/autorandr/u2711/setup @@ -0,0 +1,2 @@ +HDMI-2 00ffffffffffff0010ac5f4157563541281d0103803c2278eeee95a3544c99260f5054a54b00714f8180a940d1c00101010101010101565e00a0a0a029503020350055502100001a000000ff00335a53465253320a2020202020000000fc0044454c4c205532373139440a20000000fd00384c1e5a19000a20202020202001c7020322f14f90050403020716010611121513141f23097f078301000065030c001000023a801871382d40582c450055502100001e7e3900a080381f4030203a0055502100001a011d007251d01e206e28550055502100001ebf1600a08038134030203a0055502100001a00000000000000000000000000000000000000000088 +eDP-1 00ffffffffffff0030e4080600000000001c0104a51f117802e085a3544e9b260e5054000000010101010101010101010101010101012e3680a070381f403020350035ae1000001a542b80a070381f403020350035ae1000001a000000fe004c4720446973706c61790a2020000000fe004c503134305746392d5350463100d5 diff --git a/.config/autorandr/u_setup_new/config b/.config/autorandr/u_setup_new/config new file mode 100644 index 0000000..39f99f5 --- /dev/null +++ b/.config/autorandr/u_setup_new/config @@ -0,0 +1,28 @@ +output DP-1 +off +output HDMI-1 +off +output DP-2 +off +output eDP-1 +crtc 0 +mode 1920x1080 +pos 0x0 +primary +rate 60.02 +x-prop-broadcast_rgb Automatic +x-prop-colorspace Default +x-prop-max_bpc 12 +x-prop-non_desktop 0 +x-prop-scaling_mode Full aspect +output HDMI-2 +crtc 1 +mode 2560x1440 +pos 1920x0 +rate 59.95 +x-prop-aspect_ratio Automatic +x-prop-audio auto +x-prop-broadcast_rgb Automatic +x-prop-colorspace Default +x-prop-max_bpc 12 +x-prop-non_desktop 0 diff --git a/.config/autorandr/u_setup_new/setup b/.config/autorandr/u_setup_new/setup new file mode 100644 index 0000000..a3afea9 --- /dev/null +++ b/.config/autorandr/u_setup_new/setup @@ -0,0 +1,2 @@ +HDMI-2 00ffffffffffff001e6db35baa2a020002220103803c2278ea8cb5af4f43ab260e5054210800d1c06140010101010101010101010101f8e300a0a0a032503020480055502100001a000000fd0030901ee63c000a202020202020000000fc004c4720554c545241474541520a000000ff003430324e54585234353939340a01ec020349f1230907074d100403011f13123f5d5e5f60616d030c001000b83c20006001020367d85dc401788003e30f00186d1a00000205309000045a445a44e305c000e60605015a5a446fc200a0a0a055503020350055502100001a5aa000a0a0a0465030203a0055502100001a565e00a0a0a029503020350055502100001ad1 +eDP-1 00ffffffffffff0030e4080600000000001c0104a51f117802e085a3544e9b260e5054000000010101010101010101010101010101012e3680a070381f403020350035ae1000001a542b80a070381f403020350035ae1000001a000000fe004c4720446973706c61790a2020000000fe004c503134305746392d5350463100d5 diff --git a/.config/gh/config.yml b/.config/gh/config.yml index 8c79b98..43b2b01 100644 --- a/.config/gh/config.yml +++ b/.config/gh/config.yml @@ -12,6 +12,7 @@ pager: aliases: co: pr checkout upload: '!gh-upload' + clone: repo clone # The path to a unix socket through which send HTTP connections. If blank, HTTP traffic will be handled by net/http.DefaultTransport. http_unix_socket: # What web browser gh should use when opening URLs. If blank, will refer to environment. diff --git a/.config/shell/alias.sh b/.config/shell/alias.sh index a93ae4e..c853453 100644 --- a/.config/shell/alias.sh +++ b/.config/shell/alias.sh @@ -14,7 +14,7 @@ alias r='R' alias xar="xarchiver" alias g="git" alias u="dict" -alias todo="rg '(TODO|FIXME|NOTE)'" +alias todo="rg -A 1 -B 1 '(TODO|FIXME|NOTE)'" # Add an "alert" alias for long running commands. Use like so: 'sleep 10; alert' @@ -63,14 +63,7 @@ colors() { done } -wttr() #alternatively use schachmat/wego -{ - for city in "$@"; do - curl "wttr.in/$city"; - done -} - - +#alternatively use schachmat/wego for weather pwd() # print path of files { echo "$PWD/$1" @@ -93,5 +86,9 @@ py() { } act() { - source .venv/bin/activate + args="$@" + if [ $# -eq 0 ]; then + args="./.venv" + fi + source "$args/bin/activate" }