From a68bf4057e6fdfe6d2ec35e8b36944563574e2d8 Mon Sep 17 00:00:00 2001 From: Cory Sands Date: Thu, 1 May 2025 21:26:17 -0500 Subject: [PATCH] Added labwc config --- .config/aliases | 15 ++++--- .config/fish/config.fish | 2 + .config/hypr/conf/monitors.conf | 2 +- .config/hypr/conf/visual.conf | 29 ++++++------- .config/hypr/monitors.conf | 0 .config/hypr/workspaces.conf | 0 .config/kanshi/config | 12 ++++++ .config/labwc/autostart | 34 +++++++++++++++ .config/labwc/environment | 76 +++++++++++++++++++++++++++++++++ .config/labwc/rc.xml | 56 ++++++++++++++++++++++++ .config/waybar/config.jsonc | 2 +- 11 files changed, 203 insertions(+), 25 deletions(-) create mode 100644 .config/hypr/monitors.conf create mode 100644 .config/hypr/workspaces.conf create mode 100644 .config/kanshi/config create mode 100644 .config/labwc/autostart create mode 100644 .config/labwc/environment create mode 100644 .config/labwc/rc.xml diff --git a/.config/aliases b/.config/aliases index 2dbe17e..b1a3baf 100644 --- a/.config/aliases +++ b/.config/aliases @@ -7,9 +7,12 @@ alias pacin="sudo pacman -S" alias pacre="sudo pacman -R" alias pacup="sudo pacman -Syu" -alias hyprconf="nvim ~/.config/hypr/hyprland.conf" -alias waybarconf="nvim ~/.config/waybar/config.jsonc" -alias aliasconf="nvim ~/.config/aliases" -alias kittyconf="nvim ~/.config/kitty/kitty.conf" -alias fishconf="nvim ~/.config/fish/config.fish" -alias roficonf="nvim ~/.config/rofi/config.rasi" +alias hyprconf="nvim ~/dotfiles/.config/hypr/hyprland.conf" +alias swayconf="nvim ~/dotfiles/.config/sway/config" +alias labconf="nvim ~/dotfiles/.config/labwc/rc.xml" +alias kanshiconf="nvim ~/dotfiles/.config/kanshi/config" +alias waybarconf="nvim ~/dotfiles/.config/waybar/config.jsonc" +alias aliasconf="nvim ~/dotfiles/.config/aliases" +alias kittyconf="nvim ~/dotfiles/.config/kitty/kitty.conf" +alias fishconf="nvim ~/dotfiles/.config/fish/config.fish" +alias roficonf="nvim ~/dotfiles/.config/rofi/config.rasi" diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 23fc1b8..f5ca22e 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -1,4 +1,6 @@ source ~/.config/aliases +zoxide init fish | source +alias cd="z" set fish_greeting if status is-interactive # Commands to run in interactive sessions can go here diff --git a/.config/hypr/conf/monitors.conf b/.config/hypr/conf/monitors.conf index 1772450..2bc2303 100644 --- a/.config/hypr/conf/monitors.conf +++ b/.config/hypr/conf/monitors.conf @@ -1,3 +1,3 @@ #---MONITORS---# -monitor = DP-1, highres@highrr, 0x420, 1, vrr, 1 +monitor = DP-1, highres@highrr, 0x420, 1, vrr, 1, bitdepth, 10 monitor = HDMI-A-1, highres@highrr, 2560x0, 1, transform, 1 diff --git a/.config/hypr/conf/visual.conf b/.config/hypr/conf/visual.conf index dbc1e6c..86bf8b3 100644 --- a/.config/hypr/conf/visual.conf +++ b/.config/hypr/conf/visual.conf @@ -1,8 +1,8 @@ #---GENERAL---# general { - gaps_in = 3 - gaps_out = 10 + gaps_in = 0 + gaps_out = 0 border_size = 3 col.active_border = rgba(99bbffff) @@ -14,6 +14,7 @@ general { misc { force_default_wallpaper = 0 disable_hyprland_logo = true + vfr = true } gestures { workspace_swipe = false @@ -23,19 +24,13 @@ gestures { #---DECORATION---# decoration { - rounding = 5 + rounding = 0 active_opacity = 1.0 inactive_opacity = 1.0 - #drop_shadow = true - #shadow_range = 4 - #shadow_render_power = 3 - #col.shadow = rgba(1a1a1aee) + shadow:enabled = true + shadow:range = 4 blur { - enabled = true - size = 3 - passes = 3 - - vibrancy = 0.1696 + enabled = true } } @@ -57,9 +52,9 @@ dwindle { #----RENDER----# -#render { - #explicit_sync = 1 - #explicit_sync_kms = 1 - #direct_scanout = true -#} +render { + explicit_sync = 1 + explicit_sync_kms = 1 + direct_scanout = true +} diff --git a/.config/hypr/monitors.conf b/.config/hypr/monitors.conf new file mode 100644 index 0000000..e69de29 diff --git a/.config/hypr/workspaces.conf b/.config/hypr/workspaces.conf new file mode 100644 index 0000000..e69de29 diff --git a/.config/kanshi/config b/.config/kanshi/config new file mode 100644 index 0000000..f404b8f --- /dev/null +++ b/.config/kanshi/config @@ -0,0 +1,12 @@ +profile { + output DP-1 { + mode 2560x1440 + position 0,420 + adaptive_sync on + } + output HDMI-A-1 { + mode 1920x1080 + position 2560,0 + transform 90 + } +} diff --git a/.config/labwc/autostart b/.config/labwc/autostart new file mode 100644 index 0000000..d363a22 --- /dev/null +++ b/.config/labwc/autostart @@ -0,0 +1,34 @@ +# Example autostart file + +# Set background color. +waypaper --restore + +# 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 & + +# 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 \*' \ + resume 'wlopm --on \*' \ + before-sleep 'swaylock -f -c 000000' >/dev/null 2>&1 & diff --git a/.config/labwc/environment b/.config/labwc/environment new file mode 100644 index 0000000..4ff9e36 --- /dev/null +++ b/.config/labwc/environment @@ -0,0 +1,76 @@ +## +## 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=se +# XKB_DEFAULT_LAYOUT=se,us(intl) +# XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle +XKB_DEFAULT_OPTIONS=grp:caps:escape + +## +## Set cursor theme and size. Find system icons themes with: +## `find /usr/share/icons/ -type d -name "cursors"` +## + +XCURSOR_THEME=PolarCursorTheme +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 "labwc: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=labwc: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/rc.xml b/.config/labwc/rc.xml new file mode 100644 index 0000000..7addf2b --- /dev/null +++ b/.config/labwc/rc.xml @@ -0,0 +1,56 @@ + + + + + + + + yes + yes + + + + 8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index a73dcf0..89f616a 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -71,7 +71,7 @@ } }, "tray": { - // "icon-size": 21, + "icon-size": 22, "spacing": 10 }, "clock": {