Added some scripts I use,

Optimized keybinds and other settings,
Added a script to install my personaly preferred apps via yay
This commit is contained in:
2021-07-16 23:05:01 +02:00
parent ee94e5a967
commit 37f9d69162
7 changed files with 157 additions and 17 deletions

View File

@@ -151,7 +151,7 @@ bell:
color: '#4C566A'
command:
program: play
program: aplay
args: ["/home/vectorkappa/Music/beeps/wav/honk-sound.wav"]
hints:
# URL launcher

3
bin/magic-sysrq-enable Executable file
View File

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

4
bin/set-trackpoint-sensitivity Executable file
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

59
bin/workspaces_multimonitor Executable file
View File

@@ -0,0 +1,59 @@
#!/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
##Then, create workspaces on all monitors
I=1
M=$(bspc query -M | wc -l)
if [[ "$M" == 1 ]]; then
bspc monitor -d I II III IV V VI VII VIII IX X
elif [[ "$M" == 2 ]]; then
bspc monitor $(bspc query -M | awk NR==1) -d I II III IV V
bspc monitor $(bspc query -M | awk NR==2) -d VI VII VIII IX X
elif [[ "$M" == 3 ]]; then
bspc monitor $(bspc query -M | awk NR==1) -d I II III IV
bspc monitor $(bspc query -M | awk NR==2) -d V VI VII
bspc monitor $(bspc query -M | awk NR==3) -d VIII IX X
elif [[ "$M" == 4 ]]; then
bspc monitor $(bspc query -M | awk NR==1) -d I II III
bspc monitor $(bspc query -M | awk NR==2) -d IV V VI
bspc monitor $(bspc query -M | awk NR==3) -d VII VIII
bspc monitor $(bspc query -M | awk NR==4) -d IX X
elif [[ "$M" == 5 ]]; then
bspc monitor $(bspc query -M | awk NR==1) -d I II
bspc monitor $(bspc query -M | awk NR==2) -d III IV
bspc monitor $(bspc query -M | awk NR==3) -d V VI
bspc monitor $(bspc query -M | awk NR==4) -d VII VIII
bspc monitor $(bspc query -M | awk NR==5) -d IX X
else
for monitor in $(bspc query -M); do
bspc monitor $monitor \
-n "$I" \
-d $I/{a,b,c}
let I++
done
fi
##Polybar launch
/home/$USER/.dotfiles/polybar/.config/polybar/launch.sh &
##Set wallpaper
/home/$USER/.fehbg

View File

@@ -51,9 +51,10 @@ padding-right = 2
module-margin-left = 1
module-margin-right = 1
font-0 = SauceCodePro Nerd Font Mono:size=10
font-0 = "SauceCodePro Nerd Font Mono:size=10"
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = siji:pixelsize=10;1
font-3 = "SauceCodePro Nerd Font Mono:size=16;4"
modules-left = rofi bspwm
modules-center = mpd title
@@ -182,6 +183,8 @@ format = <label>
format-foreground = ${colors.foreground-alt}
format-padding = 0
click-left = bspc node -c
label = %title%
label-maxlen = 40
@@ -398,10 +401,14 @@ menu-2-1 = cancel
menu-2-1-exec = menu-open-0
[module/rofi]
type = custom/script
click-left = rofi -modi drun,run,window,calc -show drun
label = 
type = custom/text
click-left = xlunch --bc 2e3440aa >> /tmp/xlunchlog.log 2>&1
;click-left = rofi -modi drun,run,window,calc -show drun
content = 
content-padding = 1
content-background = #BF616A
content-foreground = #2E3440
content-font = 4
[settings]
screenchange-reload = true
;compositing-background = xor

View File

@@ -265,11 +265,9 @@ super + space
#dmenu_recent -fn 'xos4 Terminus:size=15' -i -l 14 -w 600 -y $PANEL_HEIGHT
# Triggered by jus tapping super
super + shift + space
#xlunch --
gnome-pie -o 460
#super + p
super + shift + @space
xlunch --
#gnome-pie -o 460 --display=:0
# dmenu_recent -h $PANEL_HEIGHT -fn 'xos4 Terminus:size=15' -i
super + shift + Return
@@ -294,8 +292,8 @@ super + shift + e
alacritty -e ranger
Print
scrot
# scrot
flameshot gui
#
# Media keys
@@ -348,11 +346,11 @@ super + shift + Escape
alt + space
rofi -modi drun,run,window,calc -show drun
super + shift + s
flameshot gui
super + shift + @S
#flameshot gui
scrot
# In case bspwmrc fails to execute/you wish have plugged in a new monitor
super + shift + r
super + shift + R
bspwmrc
#edit this file
alt + ctrl + space

69
yay.sh Normal file
View File

@@ -0,0 +1,69 @@
#!/bin/zsh
yay -S \
zsh \
stow \
git \
polybar \
dunst \
rofi \
bspwm \
sxhkd \
picom \
bat \
exa \
vim \
ranger \
alacritty \
alsa-utils \
thefuck \
nerd-fonts-complete \
polkit-dumb-agent-git \
kvantum-qt5 \
lxappearance \
nordic-darker-theme\
papirus-folders-nordic \
capitaine-cursors\
noto-fonts-emoji \
noto-fonts-cjk \
noto-fonts-extra \
noto-fonts \
nodejs \
packagekit \
kvantum-theme-nordic-git \
atool \
ffmpeg \
tigervnc \
xlunch \
rofi-calc \
rofi-emoji \
rofimoji \
cockpit \
cockpit-pcp \
cockpit-machines \
xss-lock \
qemu \
ebtables \
radvd \
dmidecode \
lsof \
strace \
dockd \
xclip \
xsel \
xdotool \
ffmpegthumbnailer \
highlight \
libcaca \
mediainfo \
transmission-cli \
transmission-qt \
ueberzug \
w3m \
poppler \
odt2txt \
gnome-keyring \
i3lock-fancy-dualmonitors-git \
lxrandr \
feh