diff options
Diffstat (limited to 'raveos-hyprland-theme/theme-data/hypr')
8 files changed, 14 insertions, 152 deletions
diff --git a/raveos-hyprland-theme/theme-data/hypr/config/keybinds.lua b/raveos-hyprland-theme/theme-data/hypr/config/keybinds.lua index f5afb72..12b58b9 100644 --- a/raveos-hyprland-theme/theme-data/hypr/config/keybinds.lua +++ b/raveos-hyprland-theme/theme-data/hypr/config/keybinds.lua @@ -14,14 +14,17 @@ for i = 1, 10 do end -- Shell Binds -hl.bind("SUPER", hl.dsp.exec_cmd("dms ipc call spotlight toggle")) +hl.bind("SUPER + SUPER_L", hl.dsp.exec_cmd("dms ipc call spotlight toggle"), { release = true }) hl.bind(mainMod .. " + P", hl.dsp.exec_cmd("dms ipc call clipboard toggle")) hl.bind(mainMod .. " + M", hl.dsp.exec_cmd("dms ipc call processlist toggle")) -hl.bind(mainMod .. " + SHIFT + N", hl.dsp.exec_cmd("dms ipc call spotlight toggle")) -hl.bind(mainMod .. " + N", hl.dsp.exec_cmd("dms ipc call notifications toggle")) +hl.bind(mainMod .. " + SHIFT + N", hl.dsp.exec_cmd("dms ipc call notifications toggle")) +hl.bind(mainMod .. " + N", hl.dsp.exec_cmd("dms ipc call notepad toggle")) hl.bind(mainMod .. " + S", hl.dsp.exec_cmd("dms ipc call settings toggle")) hl.bind(mainMod .. " + Y", hl.dsp.exec_cmd("dms ipc call dankdash wallpaper")) +-- RaveSwitch +hl.bind("SUPER + TAB", hl.dsp.exec_cmd([[raveswitch socat '{"OpenSwitch":{"reverse":false}}']])) + -- Apps hl.bind(secondMod .. " + T", hl.dsp.exec_cmd("kitty")) hl.bind(secondMod .. " + F", hl.dsp.exec_cmd("freetube")) @@ -36,8 +39,7 @@ hl.bind("CTRL + SUPER + End", hl.dsp.exec_cmd("poweroff")) -- Window management hl.bind(mainMod .. " + Q", hl.dsp.window.kill()) hl.bind(mainMod .. " + V", hl.dsp.window.float()) -hl.bind(mainMod .. " + Tab", hl.dsp.exec_cmd([[hyprshell socat '{"OpenSwitch":{"reverse":false}}']])) -hl.bind(mainMod .. " + SHIFT + Tab", hl.dsp.exec_cmd([[hyprshell socat '{"OpenSwitch":{"reverse":true}}']])) +hl.bind(mainMod .. " + SHIFT + Tab", hl.dsp.exec_cmd([[raveswitch socat '{"OpenSwitch":{"reverse":true}}']])) -- Move focus with mainMod + arrow keys hl.bind(mainMod .. " + left", hl.dsp.focus({ direction = "left" })) @@ -49,6 +51,11 @@ hl.bind(mainMod .. " + down", hl.dsp.focus({ direction = "down" })) hl.bind(mainMod .. " + mouse:272", hl.dsp.window.drag()) hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize()) +-- Screenshots (Hyprshot) +hl.bind("Print", hl.dsp.exec_cmd("hyprshot -m output")) +hl.bind("SHIFT + Print", hl.dsp.exec_cmd("hyprshot -m region")) +hl.bind(mainMod .. " + Print", hl.dsp.exec_cmd("hyprshot -m window")) + -- Laptop multimedia keys hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"), { locked = true, repeating = true }) hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"), { locked = true, repeating = true }) diff --git a/raveos-hyprland-theme/theme-data/hypr/dms/colors.conf b/raveos-hyprland-theme/theme-data/hypr/dms/colors.conf deleted file mode 100644 index ecd3dc1..0000000 --- a/raveos-hyprland-theme/theme-data/hypr/dms/colors.conf +++ /dev/null @@ -1,25 +0,0 @@ -# ! Auto-generated file. Do not edit directly. -# Remove source = ./dms/colors.conf from your config to override. - -$primary = rgb(4caf50) -$outline = rgb(8c9388) -$error = rgb(f2b8b5) - -general { - col.active_border = $primary - col.inactive_border = $outline -} - -group { - col.border_active = $primary - col.border_inactive = $outline - col.border_locked_active = $error - col.border_locked_inactive = $outline - - groupbar { - col.active = $primary - col.inactive = $outline - col.locked_active = $error - col.locked_inactive = $outline - } -} diff --git a/raveos-hyprland-theme/theme-data/hypr/dms/cursor.conf b/raveos-hyprland-theme/theme-data/hypr/dms/cursor.conf deleted file mode 100644 index 1054579..0000000 --- a/raveos-hyprland-theme/theme-data/hypr/dms/cursor.conf +++ /dev/null @@ -1,6 +0,0 @@ -# Auto-generated by DMS - do not edit manually - -env = HYPRCURSOR_THEME,default -env = XCURSOR_THEME,default -env = HYPRCURSOR_SIZE,24 -env = XCURSOR_SIZE,24 diff --git a/raveos-hyprland-theme/theme-data/hypr/dms/layout.conf b/raveos-hyprland-theme/theme-data/hypr/dms/layout.conf deleted file mode 100644 index b9a8ad9..0000000 --- a/raveos-hyprland-theme/theme-data/hypr/dms/layout.conf +++ /dev/null @@ -1,11 +0,0 @@ -# Auto-generated by DMS - do not edit manually - -general { - gaps_in = 4 - gaps_out = 4 - border_size = 2 -} - -decoration { - rounding = 12 -} diff --git a/raveos-hyprland-theme/theme-data/hypr/dms/outputs.conf b/raveos-hyprland-theme/theme-data/hypr/dms/outputs.conf deleted file mode 100644 index 022f5c0..0000000 --- a/raveos-hyprland-theme/theme-data/hypr/dms/outputs.conf +++ /dev/null @@ -1,3 +0,0 @@ -# Auto-generated by DMS - do not edit manually - -monitor = HDMI-A-2, 2560x1440@59.951, 0x0, 1.5, vrr, 0 diff --git a/raveos-hyprland-theme/theme-data/hypr/dms/windowrules.conf b/raveos-hyprland-theme/theme-data/hypr/dms/windowrules.conf deleted file mode 100644 index e69de29..0000000 --- a/raveos-hyprland-theme/theme-data/hypr/dms/windowrules.conf +++ /dev/null diff --git a/raveos-hyprland-theme/theme-data/hypr/hyprland.lua b/raveos-hyprland-theme/theme-data/hypr/hyprland.lua index ca6eb2b..af3ce8d 100644 --- a/raveos-hyprland-theme/theme-data/hypr/hyprland.lua +++ b/raveos-hyprland-theme/theme-data/hypr/hyprland.lua @@ -19,11 +19,11 @@ hl.monitor({ -- Autostart hl.on("hyprland.start", function() hl.exec_cmd("dms run") - hl.exec_cmd("HYPRSHELL_NO_USE_PLUGIN=1 hyprshell run") + hl.exec_cmd("raveswitch run") hl.exec_cmd("dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP") hl.exec_cmd("dbus-update-activation-environment --systemd --all") hl.exec_cmd("systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP") - hl.exec_cmd("systemctl --user start hyprpolkitagent.service") + hl.exec_cmd("/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1") hl.exec_cmd("gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'") hl.exec_cmd("bash -c 'wl-paste --watch cliphist store &'") -- raveos-welcome: itt nincs /etc/xdg/autostart feldolgozas (Hyprland diff --git a/raveos-hyprland-theme/theme-data/hypr/scripts/raveos-monitor-setup.sh b/raveos-hyprland-theme/theme-data/hypr/scripts/raveos-monitor-setup.sh deleted file mode 100755 index 2790ee4..0000000 --- a/raveos-hyprland-theme/theme-data/hypr/scripts/raveos-monitor-setup.sh +++ /dev/null @@ -1,100 +0,0 @@ -#!/bin/bash -# raveos-monitor-setup - Auto-detect monitors and generate Hyprland config -# Sets each monitor to max resolution at 60Hz -# -# Usage: raveos-monitor-setup.sh [--hypr-dir PATH] -# Default hypr dir: ~/.config/hypr - -HYPR_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/hypr" - -# Parse arguments -while [[ $# -gt 0 ]]; do - case "$1" in - --hypr-dir) HYPR_DIR="$2"; shift 2 ;; - *) shift ;; - esac -done - -MONITORS_CONF="$HYPR_DIR/monitors.conf" -WORKSPACES_CONF="$HYPR_DIR/workspaces.conf" - -# Find connected monitors via DRM sysfs -declare -a MON_NAMES -declare -a MON_RESOLUTIONS -declare -a MON_WIDTHS - -for card_output in /sys/class/drm/card*-*; do - [[ ! -d "$card_output" ]] && continue - - status=$(cat "$card_output/status" 2>/dev/null) - [[ "$status" != "connected" ]] && continue - - # Get output name: card0-DP-1 → DP-1, card1-HDMI-A-1 → HDMI-A-1 - raw_name=$(basename "$card_output") - name="${raw_name#card*-}" - - # Get available modes (first line = highest resolution) - modes_file="$card_output/modes" - if [[ -f "$modes_file" ]]; then - max_mode=$(head -1 "$modes_file") - if [[ -n "$max_mode" ]]; then - # Extract width from resolution (e.g., 2560x1440 → 2560) - width="${max_mode%%x*}" - MON_NAMES+=("$name") - MON_RESOLUTIONS+=("$max_mode") - MON_WIDTHS+=("$width") - fi - fi -done - -# If no monitors found, use fallback -if [[ ${#MON_NAMES[@]} -eq 0 ]]; then - cat > "$MONITORS_CONF" << 'EOF' -# Auto-generated by raveos-monitor-setup -# No monitors detected - using fallback -monitor=,preferred,auto,1 -EOF - cat > "$WORKSPACES_CONF" << 'EOF' -# Auto-generated by raveos-monitor-setup -# No monitors detected -EOF - echo "No monitors detected, using fallback config" - exit 0 -fi - -# Generate monitors.conf -cat > "$MONITORS_CONF" << 'EOF' -# Auto-generated by raveos-monitor-setup -# Run raveos-monitor-setup.sh to reconfigure monitors -EOF - -pos_x=0 -for ((i=0; i<${#MON_NAMES[@]}; i++)); do - echo "monitor=${MON_NAMES[$i]}, ${MON_RESOLUTIONS[$i]}@60, ${pos_x}x0, 1" >> "$MONITORS_CONF" - pos_x=$((pos_x + MON_WIDTHS[i])) -done - -# Generate workspaces.conf - distribute 10 workspaces across monitors -cat > "$WORKSPACES_CONF" << 'EOF' -# Auto-generated by raveos-monitor-setup -EOF - -num_monitors=${#MON_NAMES[@]} -ws_per_mon=$((10 / num_monitors)) -remaining=$((10 % num_monitors)) - -ws=1 -for ((i=0; i<num_monitors; i++)); do - count=$ws_per_mon - [[ $i -lt $remaining ]] && ((count++)) - - for ((j=0; j<count; j++)); do - echo "workspace=$ws, monitor:${MON_NAMES[$i]}, persistent:1" >> "$WORKSPACES_CONF" - ((ws++)) - done -done - -echo "Monitor setup complete: ${#MON_NAMES[@]} monitor(s) configured" -for ((i=0; i<${#MON_NAMES[@]}; i++)); do - echo " ${MON_NAMES[$i]}: ${MON_RESOLUTIONS[$i]}@60" -done |