From 7482f70769f6dd0084757bde3a3b4d5eef58b28b Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Tue, 31 May 2022 18:02:39 +0200 Subject: Better organized startup process and scripts --- .local/bin/key | 4 ++++ .local/bin/polybar-launch | 6 +++--- .local/bin/rate | 5 +++++ 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100755 .local/bin/key create mode 100755 .local/bin/rate (limited to '.local/bin') 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 -- cgit v1.2.3-70-g09d2