mirror of
https://github.com/eRgo35/dots.git
synced 2025-12-16 15:36:11 +01:00
ulauncher setup
This commit is contained in:
3
thor/bin/magic-sysrq-enable
Normal file
3
thor/bin/magic-sysrq-enable
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
echo 1 | sudo tee /proc/sys/kernel/sysrq
|
||||
exit
|
||||
4
thor/bin/set-trackpoint-sensitivity
Normal file
4
thor/bin/set-trackpoint-sensitivity
Normal 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
|
||||
20
thor/bin/workspaces_multimonitor
Normal file
20
thor/bin/workspaces_multimonitor
Normal 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
|
||||
9
thor/bin/workspaces_prepare
Normal file
9
thor/bin/workspaces_prepare
Normal 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
|
||||
15
thor/systemd_units/magic-sysrq-enabler.service
Normal file
15
thor/systemd_units/magic-sysrq-enabler.service
Normal 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
|
||||
15
thor/systemd_units/thinktrackfix.service
Normal file
15
thor/systemd_units/thinktrackfix.service
Normal 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
3
thor/thor-setup.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/zsh
|
||||
sudo stow -t /usr/bin bin
|
||||
sudo stow -t /usr/lib/systemd/user systemd_units
|
||||
Reference in New Issue
Block a user