From 7a52d27b3733c51c8e2e8fd01acb110bef54ad49 Mon Sep 17 00:00:00 2001 From: c0dev0id Date: Wed, 12 Apr 2023 18:15:49 +0200 Subject: [PATCH] Update 2023-04-12 18:15 OpenBSD/amd64 --- .bin/dexec_audio | 3 +++ .bin/xpick_copy | 3 +++ .config/autorandr/mobile/config | 12 ++++++++++++ .config/autorandr/mobile/setup | 1 + .config/autorandr/postswitch | 21 +++++++++++++++++++++ .config/autorandr/workstation/config | 17 +++++++++++++++++ .config/autorandr/workstation/setup | 2 ++ .config/autorandr/workstation2/config | 17 +++++++++++++++++ .config/autorandr/workstation2/setup | 2 ++ 9 files changed, 78 insertions(+) create mode 100755 .bin/dexec_audio create mode 100755 .bin/xpick_copy create mode 100644 .config/autorandr/mobile/config create mode 100644 .config/autorandr/mobile/setup create mode 100755 .config/autorandr/postswitch create mode 100644 .config/autorandr/workstation/config create mode 100644 .config/autorandr/workstation/setup create mode 100644 .config/autorandr/workstation2/config create mode 100644 .config/autorandr/workstation2/setup diff --git a/.bin/dexec_audio b/.bin/dexec_audio new file mode 100755 index 0000000..4902cc9 --- /dev/null +++ b/.bin/dexec_audio @@ -0,0 +1,3 @@ +#!/bin/sh +. $HOME/.bin/_config +sndioctl -q server.device=$(setaudio | $DMENU_CMD -p "Device" -l 10 | cut -b3) diff --git a/.bin/xpick_copy b/.bin/xpick_copy new file mode 100755 index 0000000..7330d84 --- /dev/null +++ b/.bin/xpick_copy @@ -0,0 +1,3 @@ +#!/bin/sh +xpick -h | tr -d '\n' | xclip +notify-send "$(xclip -o)" diff --git a/.config/autorandr/mobile/config b/.config/autorandr/mobile/config new file mode 100644 index 0000000..473ce54 --- /dev/null +++ b/.config/autorandr/mobile/config @@ -0,0 +1,12 @@ +output HDMI-A-0 +off +output DisplayPort-0 +off +output DisplayPort-1 +off +output eDP +crtc 0 +mode 1920x1080 +pos 0x0 +primary +rate 60.03 diff --git a/.config/autorandr/mobile/setup b/.config/autorandr/mobile/setup new file mode 100644 index 0000000..ad4110e --- /dev/null +++ b/.config/autorandr/mobile/setup @@ -0,0 +1 @@ +eDP 00ffffffffffff0006af2d5a00000000001c0104a51d117802ee95a3544c99260f505400000001010101010101010101010101010101b43780a070383e403a2a350025a5100000180000000f0000000000000000000000000020000000fe0041554f0a202020202020202020000000fe004231333348414e30352e41200a0070 diff --git a/.config/autorandr/postswitch b/.config/autorandr/postswitch new file mode 100755 index 0000000..e4daefa --- /dev/null +++ b/.config/autorandr/postswitch @@ -0,0 +1,21 @@ +#!/bin/sh +notify-send -i display "Display profile" "$AUTORANDR_CURRENT_PROFILE" + +if [ "$AUTORANDR_CURRENT_PROFILE" == "workstation" ]; +then +xinput set-prop /dev/wsmouse "Device Accel Constant Deceleration" 0.8 +xinput set-prop /dev/wsmouse "Device Accel Adaptive Deceleration" 1.4 +fi + +if [ "$AUTORANDR_CURRENT_PROFILE" == "workstation2" ]; +then +xinput set-prop /dev/wsmouse "Device Accel Constant Deceleration" 0.8 +xinput set-prop /dev/wsmouse "Device Accel Adaptive Deceleration" 1.4 +fi + +if [ "$AUTORANDR_CURRENT_PROFILE" == "mobile" ]; +then +xinput set-prop /dev/wsmouse "Device Accel Constant Deceleration" 0.4 +xinput set-prop /dev/wsmouse "Device Accel Adaptive Deceleration" 1.2 +fi + diff --git a/.config/autorandr/workstation/config b/.config/autorandr/workstation/config new file mode 100644 index 0000000..8e20dd0 --- /dev/null +++ b/.config/autorandr/workstation/config @@ -0,0 +1,17 @@ +output HDMI-A-0 +off +output DisplayPort-0 +off +output DisplayPort-1 +off +output DisplayPort-3 +off +output DisplayPort-4 +off +output eDP +off +output DisplayPort-2 +crtc 1 +mode 3840x2160 +pos 0x0 +rate 60.00 diff --git a/.config/autorandr/workstation/setup b/.config/autorandr/workstation/setup new file mode 100644 index 0000000..b99e951 --- /dev/null +++ b/.config/autorandr/workstation/setup @@ -0,0 +1,2 @@ +DisplayPort-2 00ffffffffffff0010acb1414c355441111e0103803c2278eeee95a3544c99260f5054a54b00e1c0d100d1c0b300a94081808100714f08e80030f2705a80b0588a0055502100001e000000ff00315456525731330a2020202020000000fc0044454c4c205532373230510a20000000fd00184b1e8c3c000a2020202020200176020358f15261605f5e5d101f05140413121103020706016d030c001400183c20006001020367d85dc401788001e20f03e305ff01e6060701605628834f0000380f7f0715075035063c3e1ec04d02005706005f7e01677e00565e00a0a0a029503020350055502100001a114400a0800025503020360055502100001a000000af +eDP 00ffffffffffff0006af2d5a00000000001c0104a51d117802ee95a3544c99260f505400000001010101010101010101010101010101b43780a070383e403a2a350025a5100000180000000f0000000000000000000000000020000000fe0041554f0a202020202020202020000000fe004231333348414e30352e41200a0070 diff --git a/.config/autorandr/workstation2/config b/.config/autorandr/workstation2/config new file mode 100644 index 0000000..8e20dd0 --- /dev/null +++ b/.config/autorandr/workstation2/config @@ -0,0 +1,17 @@ +output HDMI-A-0 +off +output DisplayPort-0 +off +output DisplayPort-1 +off +output DisplayPort-3 +off +output DisplayPort-4 +off +output eDP +off +output DisplayPort-2 +crtc 1 +mode 3840x2160 +pos 0x0 +rate 60.00 diff --git a/.config/autorandr/workstation2/setup b/.config/autorandr/workstation2/setup new file mode 100644 index 0000000..20ec6c5 --- /dev/null +++ b/.config/autorandr/workstation2/setup @@ -0,0 +1,2 @@ +DisplayPort-2 00ffffffffffff002685646601010101011b0103803c2278eeee95a3544c99260f50542000000101010101010101010101010101010108e80030f2705a80b0588a0055502100001e023a801871382d40582c4500ba882100001e000000fc004844205056522050726f203630000000fd00184b1e8c3c000a2020202020200133020332f04f60611304051f100103020706111214230907078301000067030c001000003ce200fb67d85dc401788001e20f03000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000089 +eDP 00ffffffffffff0006af2d5a00000000001c0104a51d117802ee95a3544c99260f505400000001010101010101010101010101010101b43780a070383e403a2a350025a5100000180000000f0000000000000000000000000020000000fe0041554f0a202020202020202020000000fe004231333348414e30352e41200a0070