several changes

This commit is contained in:
speediegq 2022-10-09 15:21:20 +02:00
parent edb73ef90b
commit 935495109b
3 changed files with 20 additions and 4 deletions

View file

@ -23,7 +23,7 @@ static const char *autostart[] = {
shell, "-c", NOTIFICATION "& > /tmp/notification-log", NULL,
/* Run the defined status bar */
shell, "-c", "pkill speedwm_status ; speedwm_status &", NULL,
shell, "-c", "pkill status ; speedwm_status &", NULL,
/* Autostart script, if it exists */
shell, "-c", "$HOME/.config/speedwm-de/autostart.sh", NULL,

View file

@ -9,7 +9,6 @@ mkdir -p /usr/share/xsessions
printf "[Desktop Entry]\nEncoding=UTF-8\nName=speedwm\nComment=speedwm: speedie's window manager\nExec=/usr/bin/speedwm_run\nIcon=speedwm\nType=XSession" > /usr/share/xsessions/speedwm.desktop
# Print all of it
echo $(pwd) > /usr/share/speedwm/sourcedir
sed "s/#define //g" toggle.h | grep LAYOUT | sed "s|/[*]|#|g; s|[*]/||g; s/ //g; s/1/=1/g; s/0/=0/g; s/#/ # /g" > /usr/share/speedwm/layouts
. /usr/share/speedwm/layouts

View file

@ -59,13 +59,31 @@ HELP() {
printf "\nlayout Let the user select a speedwm layout"
printf "\nreloadcolors Reload .Xresources"
printf "\nexec <signum> Execute an fsignal signum"
printf "\nlist List all available signums"
printf "\n"
}
# Source layout data
if [ -e "/usr/share/speedwm/layouts" ]; then
. /usr/share/speedwm/layouts
else
L1="$(printf "L1: Tiling\n")"
L17="$(printf "L17: Tiling (5:4)\n")"
L3="$(printf "L3: Monocle\n")"
L4="$(printf "L4: Grid\n")"
L9="$(printf "L8: Dwindle\n")"
L8="$(printf "L8: Spiral\n")"
L10="$(printf "L10: Three Columns\n")"
L11="$(printf "L11: Bottom Stack Vertical\n")"
L12="$(printf "L12: Bottom Stack Horizontal\n")"
L13="$(printf "L13: Horizontal Grid\n")"
L19="$(printf "L19: Dynamic Grid\n")"
L14="$(printf "L14: Tatami\n")"
L15="$(printf "L15: Tilewide\n")"
L6="$(printf "L6: Centered Master\n")"
L7="$(printf "L7: Centered Floating Master\n")"
L5="$(printf "L5: Deck\n")"
L18="$(printf "L18: Column\n")"
L16="$(printf "L16: Stairs\n")"
fi
# Tile
@ -160,7 +178,6 @@ fi
case "$1" in
"layout") SEL_LAYOUT=$(printf "${L1}\nL2: Floating\n${L3}\n${L4}\n${L5}\n${L6}\n${L7}\n${L8}\n${L9}\n${L10}\n${L11}\n${L12}\n${L13}\n${L14}\n${L15}\n${L16}\n${L17}\n${L18}\n${L19}\nPrevious Layout\nNext Layout" | $RUNLAUNCHER -l 21 -p "Pick a layout: ") ;;
"list") sed 's|xsetroot -name "fsignal:||g; s|"||g; s| - ||g; s@|@-@g' /usr/share/speedwm/example.fsignal | head -n "$(expr "$(cat /usr/share/speedwm/example.fsignal | wc -l)" - 1)" ;;
"reloadcolors") xsetroot -name "fsignal:31" ;;
"-help") HELP ;;
"exec")