From 2e09b3099db2431876a710bab46f2560331eb631 Mon Sep 17 00:00:00 2001 From: wollu Date: Fri, 26 Jul 2024 11:21:48 +0300 Subject: [PATCH] Upload files to ".config/labwc" --- .config/labwc/autostart | 38 +++ .config/labwc/environment | 85 +++++ .config/labwc/menu.xml | 72 +++++ .config/labwc/rc.xml.all | 638 ++++++++++++++++++++++++++++++++++++++ .config/labwc/shutdown | 4 + 5 files changed, 837 insertions(+) create mode 100644 .config/labwc/autostart create mode 100644 .config/labwc/environment create mode 100644 .config/labwc/menu.xml create mode 100644 .config/labwc/rc.xml.all create mode 100644 .config/labwc/shutdown diff --git a/.config/labwc/autostart b/.config/labwc/autostart new file mode 100644 index 0000000..4c7968f --- /dev/null +++ b/.config/labwc/autostart @@ -0,0 +1,38 @@ +# Example autostart file + +# Set background color. +#swaybg -c '#113344' >/dev/null 2>&1 & +swaybg -i ~/Kuvat/taustakuvat/wp11058332.png 2>&1 & + +# Configure output directives such as mode, position, scale and transform. +# Use wlr-randr to get your output names +# Example ~/.config/kanshi/config below: +# profile { +# output HDMI-A-1 position 1366,0 +# output eDP-1 position 0,0 +# } +#kanshi >/dev/null 2>&1 & +wlr-randr --output DP-2 --mode 2560x1440@164.847000 2>&1 & + +# Launch a panel such as yambar or waybar. +#waybar >/dev/null 2>&1 & + +# Enable notifications. Typically GNOME/KDE application notifications go +# through the org.freedesktop.Notifications D-Bus API and require a client such +# as mako to function correctly. Thunderbird is an example of this. +#mako >/dev/null 2>&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 +# idea to turn off displays by 'disabling outputs' for example by +# `wlr-randr --output --off` because this re-arranges views +# (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 DP-2 \*' \ + resume 'wlopm --on DP-2 \*' \ + before-sleep 'swaylock -f -c 000000' >/dev/null 2>&1 & + +/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 2>&1 & diff --git a/.config/labwc/environment b/.config/labwc/environment new file mode 100644 index 0000000..7c72716 --- /dev/null +++ b/.config/labwc/environment @@ -0,0 +1,85 @@ +## +## Example ~/.config/labwc/environment file. +## Uncomment lines starting with one '#' to suit your needs. +## + +## +## 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 +## your country code is, refer to the layout section of: +## /usr/share/X11/xkb/rules/evdev.lst +## +## Multiple keyboard layouts can be set by comma-separating the country codes. +## If a variant layout is needed, the syntax is layout(variant) +## If multiple layouts are used, specify the toggle-keybind using +## XKB_DEFAULT_OPTIONS as show below. +## +## For further details, see xkeyboard-config(7) +## + +XKB_DEFAULT_LAYOUT=fi +# XKB_DEFAULT_LAYOUT=se,us(intl) +# XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle +# XKB_DEFAULT_OPTIONS=grp:shift_caps_toggle + +## +## Force Mozilla software like Firefox and Thunderbird to use wayland backend. +## Firefox (>= v121) enables Wayland by default, but we include this note here +## for those on non-rolling distributions. +## + +# MOZ_ENABLE_WAYLAND=1 + +## +## Set cursor theme and size. Find system icons themes with: +## `find /usr/share/icons/ -type d -name "cursors"` +## + +XCURSOR_THEME=Notwaita-White +# XCURSOR_THEME=capitaine-cursors +XCURSOR_SIZE=24 + +## +## Disable hardware cursors. Most users would not want to do this, but if you +## are experiencing issues with disappearing cursors, this might fix it. +## + +# WLR_NO_HARDWARE_CURSORS=1 + +## +## In order for labwc to work out of the box, the environment variable below +## is set to "1" by default to avoid menus with incorrect offset and blank +## windows with Java applications such as JetBrains and Intellij Idea. +## See https://github.com/swaywm/sway/issues/595 +## labwc will not override any already set environment variables, so if you for +## some reason do not want this, then just set it to "0" (not recommended, but +## mentioned here for completeness). +## + +# _JAVA_AWT_WM_NONREPARENTING=0 + +## +## This allows xdg-desktop-portal-wlr to function (e.g. for screen-recording). +## It is automatically set to "wlroots" by labwc though, so it is only +## included here for completeness. Again, labwc will not over-write an +## already set environment variable, so if you need it set to something else, +## then uncomment and adjust. +## + +# XDG_CURRENT_DESKTOP=wlroots + +## +## This causes a virtual output to be created automatically whenever there +## are no outputs around. This helps for cases like wayvnc so there is always +## an output available to connect to. The name can be chosen freely but there +## must be no duplicate output names, for this reason using VIRTUAL-x or a +## physical connector name like HDMI-A-1 is not recommended as wlroots may +## want to create outputs with those names later on which would then fail. +## +## Using an output name that starts with NOOP- has the additional benefit +## that wayvnc will detect it being a virtual output and allow clients to +## resize the output to match the client resolution. +## + +# LABWC_FALLBACK_OUTPUT=NOOP-fallback + diff --git a/.config/labwc/menu.xml b/.config/labwc/menu.xml new file mode 100644 index 0000000..b345180 --- /dev/null +++ b/.config/labwc/menu.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.config/labwc/rc.xml.all b/.config/labwc/rc.xml.all new file mode 100644 index 0000000..c537b03 --- /dev/null +++ b/.config/labwc/rc.xml.all @@ -0,0 +1,638 @@ + + + + + + + + server + 0 + no + no + no + no + + + + center + + + + + + + 8 + yes + no + + sans + 10 + normal + normal + + + sans + 10 + normal + normal + + + sans + 10 + normal + normal + + + sans + 10 + normal + normal + + + + + + + + + + + + + + + + + + 20 + 20 + + + + + Never + + yes + + + + no + yes + no + + + + + 1 + + + + yes + always + + + + + 1000 + + Default + + + + + + + + + + + on + global + 25 + 600 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 500 + 1.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + yes + + + + + + + + + + + + + + + 250 + + + + + 400 + 400 + 2.0 + 0.2 + true + + + diff --git a/.config/labwc/shutdown b/.config/labwc/shutdown new file mode 100644 index 0000000..970eaa2 --- /dev/null +++ b/.config/labwc/shutdown @@ -0,0 +1,4 @@ +# Example shutdown file + +# This file is executed as a shell script when labwc is preparing to terminate itself. +# For further details see labwc-config(5).