ulauncher setup

This commit is contained in:
2023-02-28 16:12:00 +01:00
parent 5382be2aa7
commit f03f03021c
181 changed files with 5220 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
#!/bin/sh
echo 1 | sudo tee /proc/sys/kernel/sysrq
exit

View File

@@ -0,0 +1,4 @@
#!/bin/sh
echo "100" | tee /sys/devices/platform/i8042/serio1/serio2/sensitivity
echo "75" | tee /sys/devices/platform/i8042/serio1/serio2/speed

View File

@@ -0,0 +1,20 @@
#!/bin/bash
all_monitors=$(xrandr -q | awk '/ connected/ {print $1}')
default_screen=$(xrandr | awk '/ connected/ {print $1;exit;}')
extra_monitors=$(xrandr -q | awk '/ connected/ {print $1}' | grep -v $default_screen)
#First, configure stuff with xrandr
#Get user path
[[ $(who) != "" ]] && USER=$(who | grep :0\) | cut -f 1 -d ' ') || \
USER=$(echo /home/* | cut -f 3 -d '/')
export DISPLAY=:0.0
export XAUTHORITY=/home/$USER/.Xauthority
for monitor in $extra_monitors; do
prev_mon=$(xrandr | awk '/ connected/ {print $1}' | grep -B1 "^$monitor" | grep -vE "^$monitor|^--$")
xrandr --output $monitor \
--auto \
--right-of $prev_mon
done

View File

@@ -0,0 +1,9 @@
#!/bin/bash
#First, configure stuff with xrandr
#Get user path
[[ $(who) != "" ]] && USER=$(who | grep :0\) | cut -f 1 -d ' ') || \
USER=$(echo /home/* | cut -f 3 -d '/')
export DISPLAY=:0.0
export XAUTHORITY=/home/$USER/.Xauthority

View File

@@ -0,0 +1,15 @@
[Unit]
Description=Magic Sysrq key enabler
Wants=network.target
After=default.target
[Service]
Type=simple
ExecStart=/usr/bin/magic-sysrq-enable
Restart=on-failure
RestartSec=10
KillMode=process
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,15 @@
[Unit]
Description=Thinkpad Trackpoint sensitivity fix
Wants=network.target
After=default.target
[Service]
Type=simple
ExecStart=/usr/bin/set-trackpoint-sensitivity
Restart=on-failure
RestartSec=10
KillMode=process
[Install]
WantedBy=default.target

3
thor/thor-setup.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/zsh
sudo stow -t /usr/bin bin
sudo stow -t /usr/lib/systemd/user systemd_units