Initial commit

This commit is contained in:
Alexander
2026-02-08 01:53:11 +03:00
commit 73088e39cd
145 changed files with 13671 additions and 0 deletions

39
ml4w/scripts/keybindings.sh Executable file
View File

@@ -0,0 +1,39 @@
#!/bin/bash
# _ _ _ _ _
# | | _____ _ _| |__ (_)_ __ __| (_)_ __ __ _ ___
# | |/ / _ \ | | | '_ \| | '_ \ / _` | | '_ \ / _` / __|
# | < __/ |_| | |_) | | | | | (_| | | | | | (_| \__ \
# |_|\_\___|\__, |_.__/|_|_| |_|\__,_|_|_| |_|\__, |___/
# |___/ |___/
# by Stephan Raabe (2024)
# -----------------------------------------------------
config_file=~/.config/ml4w/scripts/keybindings.conf
echo "Reading from: $config_file"
keybinds=""
# Detect Start String
while read -r line
do
if [[ "$line" == "bind"* ]]; then
line="$(echo "$line" | sed 's/$mainMod/SUPER/g')"
line="$(echo "$line" | sed 's/bind = //g')"
line="$(echo "$line" | sed 's/bindm = //g')"
IFS='#'
read -a strarr <<<"$line"
kb_str=${strarr[0]}
cm_str=${strarr[1]}
IFS=','
read -a kbarr <<<"$kb_str"
item="${kbarr[0]} + ${kbarr[1]}"$'\r'"${cm_str:1}"
keybinds=$keybinds$item$'\n'
fi
done < "$config_file"
sleep 0.2
rofi -dmenu -i -markup -eh 2 -replace -p "Keybinds" <<< "$keybinds"

3
ml4w/scripts/locale.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
layout=$(hyprctl devices | grep "active keymap" | awk '{print($3, $4)}' | sort | uniq | tail -n 1)
echo "$layout"

View File

@@ -0,0 +1,4 @@
#!/bin/bash
killall hyprpaper
sleep 1
hyprpaper &

4
ml4w/scripts/reload-waybar.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
killall -9 waybar
sleep 1
waybar &

2
ml4w/scripts/wlogout.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
wlogout -b 4