summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2022-05-31 18:02:39 +0200
committerAdam <56338480+adastx@users.noreply.github.com>2022-05-31 19:56:27 +0200
commit7482f70769f6dd0084757bde3a3b4d5eef58b28b (patch)
tree73e0b71aad6f92ff0c43fbc80a0216829232585e /.local
parent303f89536b6179a1b0a75e003d79d1fd46d0bc60 (diff)
Better organized startup process and scripts
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/key4
-rwxr-xr-x.local/bin/polybar-launch6
-rwxr-xr-x.local/bin/rate5
3 files changed, 12 insertions, 3 deletions
diff --git a/.local/bin/key b/.local/bin/key
new file mode 100755
index 0000000..d37c407
--- /dev/null
+++ b/.local/bin/key
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+systemctl restart keyd.service
+rate &
diff --git a/.local/bin/polybar-launch b/.local/bin/polybar-launch
index d425d48..b72556d 100755
--- a/.local/bin/polybar-launch
+++ b/.local/bin/polybar-launch
@@ -1,10 +1,10 @@
-#!/usr/bin/env bash
+#!/bin/sh
# Terminate already running bar instances
killall -q polybar
echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
-polybar bar1 -r 2>&1 | tee -a /tmp/polybar1.log & disown
-polybar bar2 -r 2>&1 | tee -a /tmp/polybar2.log & disown
+polybar bar1 -r 2>&1 | tee -a /tmp/polybar1.log &
+polybar bar2 -r 2>&1 | tee -a /tmp/polybar2.log &
echo "Bars launched..."
diff --git a/.local/bin/rate b/.local/bin/rate
new file mode 100755
index 0000000..fe8ccf3
--- /dev/null
+++ b/.local/bin/rate
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+sleep 2
+xset r rate 300 25
+setxkbmap -option grp:win_space_toggle us,dk