diff --git a/bin/mabox-labwc-menu b/bin/mabox-labwc-menu new file mode 100755 index 0000000..9c4b846 --- /dev/null +++ b/bin/mabox-labwc-menu @@ -0,0 +1,21 @@ +#!/bin/bash + +CFG_DIR=${LABWC_CONFIG_DIR:=~/.config/labwc} + +# static top menu +cat ${CFG_DIR}/MENU_TOP.txt > ${CFG_DIR}/menu.xml + +if [ "${1}" == "-p" ];then + +echo "" >> ${CFG_DIR}/menu.xml +echo "" >> ${CFG_DIR}/menu.xml + +else +echo "" >> ${CFG_DIR}/menu.xml +labwc-menu-generator -b -i ${CFG_DIR}/MENU_IGNORE.txt -t foot >> ${CFG_DIR}/menu.xml +fi +# static bottom menu +cat ${CFG_DIR}/MENU_BOTTOM.txt >> ${CFG_DIR}/menu.xml + +# reload labwc config +LABWC_PID=$(pgrep -x labwc) labwc -r diff --git a/config/labwc/MENU_BOTTOM.txt b/config/labwc/MENU_BOTTOM.txt new file mode 100644 index 0000000..e5637e6 --- /dev/null +++ b/config/labwc/MENU_BOTTOM.txt @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/config/labwc/MENU_IGNORE.txt b/config/labwc/MENU_IGNORE.txt new file mode 100644 index 0000000..6031b36 --- /dev/null +++ b/config/labwc/MENU_IGNORE.txt @@ -0,0 +1,4 @@ +mcc.desktop +obconf.desktop +nitrogen.desktop +picom-conf.desktop diff --git a/config/labwc/MENU_TOP.txt b/config/labwc/MENU_TOP.txt new file mode 100644 index 0000000..ecddd3b --- /dev/null +++ b/config/labwc/MENU_TOP.txt @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + diff --git a/config/labwc/autostart b/config/labwc/autostart index fb3548b..03d7ffc 100644 --- a/config/labwc/autostart +++ b/config/labwc/autostart @@ -1,7 +1,9 @@ # Example autostart file +swaybg -i /usr/share/backgrounds/labwall0-1920x1080.png -m fill >/dev/null 2>&1 & + # Set background color. -swaybg -c '#113344' >/dev/null 2>&1 & +# swaybg -c '#113344' >/dev/null 2>&1 & # Configure output directives such as mode, position, scale and transform. # Use wlr-randr to get your output names @@ -20,6 +22,8 @@ waybar >/dev/null 2>&1 & # as mako to function correctly. Thunderbird is an example of this. mako >/dev/null 2>&1 & +/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & + # Lock screen after 5 minutes; turn off display after another 5 minutes. # # Note that in the context of idle system power management, it is *NOT* a good @@ -28,7 +32,7 @@ mako >/dev/null 2>&1 & # (since a837fef). Instead use a wlr-output-power-management client such as # https://git.sr.ht/~leon_plickat/wlopm swayidle -w \ - timeout 300 'swaylock -f -c 000000' \ - timeout 600 'wlopm --off \*' \ - resume 'wlopm --on \*' \ - before-sleep 'swaylock -f -c 000000' >/dev/null 2>&1 & + timeout 300 'swaylock -f -c 000000' \ + timeout 600 'wlopm --off \*' \ + resume 'wlopm --on \*' \ + before-sleep 'swaylock -f -c 000000' >/dev/null 2>&1 & diff --git a/config/labwc/environment b/config/labwc/environment index f9c59b1..7552b4d 100644 --- a/config/labwc/environment +++ b/config/labwc/environment @@ -27,9 +27,6 @@ ## `find /usr/share/icons/ -type d -name "cursors"` ## -# XCURSOR_THEME=breeze_cursors -# XCURSOR_THEME=capitaine-cursors -# XCURSOR_SIZE=24 ## ## Disable hardware cursors. Most users would not want to do this, but if you @@ -75,3 +72,5 @@ # LABWC_FALLBACK_OUTPUT=NOOP-fallback +XCURSOR_THEME= +XCURSOR_SIZE=24 diff --git a/config/labwc/menu.xml b/config/labwc/menu.xml index bd2f966..d554676 100644 --- a/config/labwc/menu.xml +++ b/config/labwc/menu.xml @@ -1,75 +1,35 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - + - + + + + + + - + + + + + diff --git a/config/labwc/rc.xml b/config/labwc/rc.xml index b17b742..a419644 100644 --- a/config/labwc/rc.xml +++ b/config/labwc/rc.xml @@ -1,41 +1,652 @@ - - - + + server + 0 + no + no + no + yes + + + Cascade + + + Mabox-Labwc - 8 - + + + icon:iconify,max,close + yes + + 4 + yes + yes + + sans + 10 + normal + normal + + + sans + 10 + normal + normal + + + sans + 10 + normal + normal + + + sans + 10 + normal + normal + + + sans + 10 + normal + normal + + + + + + + + + + + + + + 20 + 20 + + 20 + + 150 + + + + Never + + yes + + + no + yes + no + + + + 1 + + + + yes + always + + + + 1000 + + 1 + 2 + + + + + + + + + + + + + + + + - - - - + on + global + 25 + 600 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + center + center + + --> + - - - + + 500 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + yes + + + + + + + + + 1.0 + + + + + 250 + + + + 400 + 400 + 2.0 + 0.2 + true + diff --git a/config/mabox-labwc/MENU_BOTTOM.txt b/config/mabox-labwc/MENU_BOTTOM.txt new file mode 100644 index 0000000..e5637e6 --- /dev/null +++ b/config/mabox-labwc/MENU_BOTTOM.txt @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/config/mabox-labwc/MENU_IGNORE.txt b/config/mabox-labwc/MENU_IGNORE.txt new file mode 100644 index 0000000..6031b36 --- /dev/null +++ b/config/mabox-labwc/MENU_IGNORE.txt @@ -0,0 +1,4 @@ +mcc.desktop +obconf.desktop +nitrogen.desktop +picom-conf.desktop diff --git a/config/mabox-labwc/MENU_TOP.txt b/config/mabox-labwc/MENU_TOP.txt new file mode 100644 index 0000000..ecddd3b --- /dev/null +++ b/config/mabox-labwc/MENU_TOP.txt @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + diff --git a/config/mabox-labwc/autostart b/config/mabox-labwc/autostart index fb3548b..03d7ffc 100644 --- a/config/mabox-labwc/autostart +++ b/config/mabox-labwc/autostart @@ -1,7 +1,9 @@ # Example autostart file +swaybg -i /usr/share/backgrounds/labwall0-1920x1080.png -m fill >/dev/null 2>&1 & + # Set background color. -swaybg -c '#113344' >/dev/null 2>&1 & +# swaybg -c '#113344' >/dev/null 2>&1 & # Configure output directives such as mode, position, scale and transform. # Use wlr-randr to get your output names @@ -20,6 +22,8 @@ waybar >/dev/null 2>&1 & # as mako to function correctly. Thunderbird is an example of this. mako >/dev/null 2>&1 & +/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & + # Lock screen after 5 minutes; turn off display after another 5 minutes. # # Note that in the context of idle system power management, it is *NOT* a good @@ -28,7 +32,7 @@ mako >/dev/null 2>&1 & # (since a837fef). Instead use a wlr-output-power-management client such as # https://git.sr.ht/~leon_plickat/wlopm swayidle -w \ - timeout 300 'swaylock -f -c 000000' \ - timeout 600 'wlopm --off \*' \ - resume 'wlopm --on \*' \ - before-sleep 'swaylock -f -c 000000' >/dev/null 2>&1 & + timeout 300 'swaylock -f -c 000000' \ + timeout 600 'wlopm --off \*' \ + resume 'wlopm --on \*' \ + before-sleep 'swaylock -f -c 000000' >/dev/null 2>&1 & diff --git a/config/mabox-labwc/environment b/config/mabox-labwc/environment index c0c7504..0268cdd 100644 --- a/config/mabox-labwc/environment +++ b/config/mabox-labwc/environment @@ -5,6 +5,8 @@ LABWC_CONFIG_DIR=$HOME/.config/mabox-labwc +export PATH="$HOME/bin:$PATH" + ## ## Use the XKB_DEFAULT_LAYOUT variable to set the keyboard layout. For example ## to start with Swedish keyboard layout set it to 'se'. If you are unsure what diff --git a/config/mabox-labwc/menu.xml b/config/mabox-labwc/menu.xml index bd2f966..d554676 100644 --- a/config/mabox-labwc/menu.xml +++ b/config/mabox-labwc/menu.xml @@ -1,75 +1,35 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - + - + + + + + + - + + + + + diff --git a/config/mabox-labwc/rc.xml b/config/mabox-labwc/rc.xml index 4e04971..a419644 100644 --- a/config/mabox-labwc/rc.xml +++ b/config/mabox-labwc/rc.xml @@ -1,12 +1,9 @@ - - - server 0 @@ -15,27 +12,25 @@ no yes - - cascade + Cascade - Mabox-Labwc - + icon:iconify,max,close yes - 8 + 4 yes - no + yes sans 10 @@ -67,20 +62,18 @@ normal - - - + + - + - - 20 @@ -123,30 +115,26 @@ 150 - Never yes - no yes no - 1 - + yes always - - - - - - - - - - - - - - - + + + + + + + + + + + + - + - + - + - + - + - + - + - + - + - - - + - - 500 - - - + + - + - - + + - + - - + - + - + - + - + - + - + - + - - - + + - - + + - - + + - - + + - - + - + - + - - + - + - + - - + - + - - + - + - - + - - + - - + - - + - - - + + - - + + - - + + - - + - + - - + + - + - + - - - - - - - + + + + - - - + - - - - + + + + yes - - - - - - - - + + + + + + + + 1.0 - - 250 -