From b7dfa5fdb2330f1e1cd222365055c3d45ad473be Mon Sep 17 00:00:00 2001 From: Rose Date: Fri, 10 Oct 2025 11:29:10 +0200 Subject: all: Rework system structure --- desktop/.config/kitty/kitty.conf | 10 - desktop/.config/kitty/quick-access-terminal.conf | 8 - desktop/.config/niri/config.kdl | 219 --------------------- desktop/.local/bin/barstatus | 8 - desktop/.local/bin/kittenbar | 4 - desktop/.local/share/barmodules/battery.sh | 3 - desktop/.local/share/barmodules/ice.sh | 21 -- desktop/.local/share/barmodules/mpv.sh | 6 - desktop/.local/share/barmodules/qmmp.sh | 13 -- desktop/Config/kitty/kitty.conf | 10 + desktop/Config/kitty/quick-access-terminal.conf | 8 + desktop/Local/bin/barstatus | 8 + desktop/Local/bin/kittenbar | 4 + desktop/Local/share/barmodules/battery.sh | 3 + desktop/Local/share/barmodules/enabled/mpv.sh | 1 + desktop/Local/share/barmodules/enabled/qmmp.sh | 1 + desktop/Local/share/barmodules/ice.sh | 21 ++ desktop/Local/share/barmodules/mpv.sh | 8 + desktop/Local/share/barmodules/qmmp.sh | 13 ++ fish/.config/fish/config.fish | 34 ---- fish/.config/fish/fish_variables | 32 --- fish/.config/fish/functions/fish_greeting.fish | 5 - fish/.config/fish/functions/fish_prompt.fish | 42 ---- fish/.local/bin/git.sh | 7 - fish/.local/bin/launch.sh | 3 - fish/.local/bin/launchvm.sh | 3 - fish/.local/bin/mediactl.sh | 19 -- fish/.local/bin/sysctls.sh | 7 - fish/.local/bin/upload.sh | 2 - fish/.local/bin/vm.sh | 11 -- fish/Config/fish/config.fish | 37 ++++ fish/Config/fish/fish_variables | 32 +++ fish/Config/fish/functions/fish_greeting.fish | 5 + fish/Config/fish/functions/fish_prompt.fish | 42 ++++ fish/Local/bin/git.sh | 7 + fish/Local/bin/launch.sh | 3 + fish/Local/bin/launchvm.sh | 3 + fish/Local/bin/mediactl.sh | 19 ++ fish/Local/bin/sysctls.sh | 7 + fish/Local/bin/upload.sh | 2 + fish/Local/bin/vm.sh | 11 ++ foot/.config/foot/foot.ini | 4 - foot/Config/foot/foot.ini | 4 + mpv/.config/mpv/mpv.conf | 28 --- mpv/Config/mpv/mpv.conf | 28 +++ rc/.config/rc/rc.conf | 1 - rc/.config/rc/runlevels/gui/autodarkmode | 4 - rc/.config/rc/runlevels/gui/footserver | 5 - rc/.config/rc/runlevels/gui/himitsu-secret-service | 1 - rc/.config/rc/runlevels/gui/himitsud | 1 - rc/.config/rc/runlevels/gui/hissh-agent | 1 - rc/.config/rc/runlevels/gui/kittenbar | 4 - rc/.config/rc/runlevels/gui/pipewire | 11 -- rc/.config/rc/runlevels/gui/pipewire-pulse | 12 -- rc/.config/rc/runlevels/gui/swaybg | 5 - rc/.config/rc/runlevels/gui/wireplumber | 11 -- rc/Config/rc/rc.conf | 1 + rc/Config/rc/runlevels/gui/autodarkmode | 4 + rc/Config/rc/runlevels/gui/footserver | 5 + rc/Config/rc/runlevels/gui/himitsu-secret-service | 1 + rc/Config/rc/runlevels/gui/himitsud | 1 + rc/Config/rc/runlevels/gui/hissh-agent | 1 + rc/Config/rc/runlevels/gui/kittenbar | 4 + rc/Config/rc/runlevels/gui/pipewire | 11 ++ rc/Config/rc/runlevels/gui/pipewire-pulse | 12 ++ rc/Config/rc/runlevels/gui/swaybg | 5 + rc/Config/rc/runlevels/gui/wireplumber | 11 ++ 67 files changed, 333 insertions(+), 545 deletions(-) delete mode 100644 desktop/.config/kitty/kitty.conf delete mode 100644 desktop/.config/kitty/quick-access-terminal.conf delete mode 100644 desktop/.config/niri/config.kdl delete mode 100755 desktop/.local/bin/barstatus delete mode 100755 desktop/.local/bin/kittenbar delete mode 100755 desktop/.local/share/barmodules/battery.sh delete mode 100755 desktop/.local/share/barmodules/ice.sh delete mode 100755 desktop/.local/share/barmodules/mpv.sh delete mode 100755 desktop/.local/share/barmodules/qmmp.sh create mode 100644 desktop/Config/kitty/kitty.conf create mode 100644 desktop/Config/kitty/quick-access-terminal.conf create mode 100755 desktop/Local/bin/barstatus create mode 100755 desktop/Local/bin/kittenbar create mode 100755 desktop/Local/share/barmodules/battery.sh create mode 120000 desktop/Local/share/barmodules/enabled/mpv.sh create mode 120000 desktop/Local/share/barmodules/enabled/qmmp.sh create mode 100755 desktop/Local/share/barmodules/ice.sh create mode 100755 desktop/Local/share/barmodules/mpv.sh create mode 100755 desktop/Local/share/barmodules/qmmp.sh delete mode 100644 fish/.config/fish/config.fish delete mode 100644 fish/.config/fish/fish_variables delete mode 100644 fish/.config/fish/functions/fish_greeting.fish delete mode 100644 fish/.config/fish/functions/fish_prompt.fish delete mode 100755 fish/.local/bin/git.sh delete mode 100755 fish/.local/bin/launch.sh delete mode 100755 fish/.local/bin/launchvm.sh delete mode 100755 fish/.local/bin/mediactl.sh delete mode 100755 fish/.local/bin/sysctls.sh delete mode 100755 fish/.local/bin/upload.sh delete mode 100755 fish/.local/bin/vm.sh create mode 100644 fish/Config/fish/config.fish create mode 100644 fish/Config/fish/fish_variables create mode 100644 fish/Config/fish/functions/fish_greeting.fish create mode 100644 fish/Config/fish/functions/fish_prompt.fish create mode 100755 fish/Local/bin/git.sh create mode 100755 fish/Local/bin/launch.sh create mode 100755 fish/Local/bin/launchvm.sh create mode 100755 fish/Local/bin/mediactl.sh create mode 100755 fish/Local/bin/sysctls.sh create mode 100755 fish/Local/bin/upload.sh create mode 100755 fish/Local/bin/vm.sh delete mode 100644 foot/.config/foot/foot.ini create mode 100644 foot/Config/foot/foot.ini delete mode 100644 mpv/.config/mpv/mpv.conf create mode 100644 mpv/Config/mpv/mpv.conf delete mode 100644 rc/.config/rc/rc.conf delete mode 100755 rc/.config/rc/runlevels/gui/autodarkmode delete mode 100755 rc/.config/rc/runlevels/gui/footserver delete mode 120000 rc/.config/rc/runlevels/gui/himitsu-secret-service delete mode 120000 rc/.config/rc/runlevels/gui/himitsud delete mode 120000 rc/.config/rc/runlevels/gui/hissh-agent delete mode 100755 rc/.config/rc/runlevels/gui/kittenbar delete mode 100755 rc/.config/rc/runlevels/gui/pipewire delete mode 100755 rc/.config/rc/runlevels/gui/pipewire-pulse delete mode 100755 rc/.config/rc/runlevels/gui/swaybg delete mode 100755 rc/.config/rc/runlevels/gui/wireplumber create mode 100644 rc/Config/rc/rc.conf create mode 100755 rc/Config/rc/runlevels/gui/autodarkmode create mode 100755 rc/Config/rc/runlevels/gui/footserver create mode 120000 rc/Config/rc/runlevels/gui/himitsu-secret-service create mode 120000 rc/Config/rc/runlevels/gui/himitsud create mode 120000 rc/Config/rc/runlevels/gui/hissh-agent create mode 100755 rc/Config/rc/runlevels/gui/kittenbar create mode 100755 rc/Config/rc/runlevels/gui/pipewire create mode 100755 rc/Config/rc/runlevels/gui/pipewire-pulse create mode 100755 rc/Config/rc/runlevels/gui/swaybg create mode 100755 rc/Config/rc/runlevels/gui/wireplumber diff --git a/desktop/.config/kitty/kitty.conf b/desktop/.config/kitty/kitty.conf deleted file mode 100644 index 8fd84e5..0000000 --- a/desktop/.config/kitty/kitty.conf +++ /dev/null @@ -1,10 +0,0 @@ -# font_family Misc Fixed -font_size 13.0 - - -# BEGIN_KITTY_FONTS -font_family family="OG Courier Zero Slash" -bold_font auto -italic_font auto -bold_italic_font auto -# END_KITTY_FONTS \ No newline at end of file diff --git a/desktop/.config/kitty/quick-access-terminal.conf b/desktop/.config/kitty/quick-access-terminal.conf deleted file mode 100644 index 80a6f0c..0000000 --- a/desktop/.config/kitty/quick-access-terminal.conf +++ /dev/null @@ -1,8 +0,0 @@ -lines 30 -columns 100 -edge top -background_opacity 0.90 -hide_on_focus_loss yes -grab_keyboard no -start_as_hidden yes -shell /usr/bin/fish diff --git a/desktop/.config/niri/config.kdl b/desktop/.config/niri/config.kdl deleted file mode 100644 index ae8bdb1..0000000 --- a/desktop/.config/niri/config.kdl +++ /dev/null @@ -1,219 +0,0 @@ -cursor { - xcursor-theme "whiteglass" - xcursor-size 21 -} - -input { - keyboard { - xkb { - layout "us" - variant "altgr-intl" - // variant "colemak" - // options "grp:win_space_toggle,compose:ralt,ctrl:nocaps" - } - numlock - } - - tablet { - map-to-output "DP-7" - } -} - -output "eDP-1" { - off -} - -output "DP-4" { - mode "1920x1080" - position x=0 y=0 -} - -output "DP-5" { - mode "1920x1080" - position x=0 y=0 -} - -output "DP-6" { - transform "90" - position x=-1080 y=-390 -} - -output "DP-7" { - mode "1920x1080" - position x=0 y=0 -} - -output "DP-8" { - transform "90" - position x=-1080 y=-390 -} - -output "DP-9" { - transform "90" - position x=-1080 y=-390 -} - -layout { - gaps 0 - - center-focused-column "never" - - preset-column-widths { - proportion 0.33333 - proportion 0.5 - proportion 0.66667 - } - - default-column-width { proportion 0.5; } - - focus-ring { - off - } - - border { - width 4 - active-color "#aa85e1" - inactive-color "#21222d" - urgent-color "#9b0000" - } - - tab-indicator { - width 9 - gap 0 - place-within-column - length total-proportion=1.0 - position "left" - active-color "#e78a4e" - } -} - -spawn-at-startup "openrc" "--user" "gui" -spawn-at-startup "kdeconnectd" -spawn-at-startup "kitten" "quick-access-terminal" -screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png" - -prefer-no-csd - -animations { - slowdown 0.75 -} - -window-rule { - match app-id=r#"firefox$"# title="^Picture-in-Picture$" - open-floating true -} - -window-rule { - match app-id=r#"^org\.keepassxc\.KeePassXC$"# - match app-id=r#"^org\.gnome\.World\.Secrets$"# - block-out-from "screen-capture" -} - -hotkey-overlay { - skip-at-startup -} - -environment { - QT_QPA_PLATFORM "wayland" -} - -binds { - Mod+T hotkey-overlay-title="Open a Terminal: foot" { spawn "footclient"; } - Mod+D hotkey-overlay-title="Run an Application: kitten" { spawn "kitten" "quick-access-terminal"; } - Mod+E hotkey-overlay-title="Open emoji picker" { spawn "/home/lain/.local/bin/wofi-emoji"; } - Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; } - - XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.025+"; } - XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.025-"; } - XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; } - XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; } - - Mod+O repeat=false { toggle-overview; } - - Mod+Q { close-window; } - - Mod+Left { focus-column-left; } - Mod+Down { focus-window-or-workspace-down; } - Mod+Up { focus-window-or-workspace-up; } - Mod+Right { focus-column-right; } - - Mod+Ctrl+Left { move-column-left; } - Mod+Ctrl+Down { move-window-down-or-to-workspace-down; } - Mod+Ctrl+Up { move-window-up-or-to-workspace-up; } - Mod+Ctrl+Right { move-column-right; } - - Mod+Home { focus-column-first; } - Mod+End { focus-column-last; } - Mod+Ctrl+Home { move-column-to-first; } - Mod+Ctrl+End { move-column-to-last; } - - Mod+Shift+Left { focus-monitor-left; } - Mod+Shift+Down { focus-monitor-down; } - Mod+Shift+Up { focus-monitor-up; } - Mod+Shift+Right { focus-monitor-right; } - - Mod+Shift+Ctrl+Left { move-column-to-monitor-left; } - Mod+Shift+Ctrl+Down { move-column-to-monitor-down; } - Mod+Shift+Ctrl+Up { move-column-to-monitor-up; } - Mod+Shift+Ctrl+Right { move-column-to-monitor-right; } - - Mod+Page_Down { focus-workspace-down; } - Mod+Page_Up { focus-workspace-up; } - Mod+U { focus-workspace-down; } - Mod+I { focus-workspace-up; } - Mod+Ctrl+Page_Down { move-column-to-workspace-down; } - Mod+Ctrl+Page_Up { move-column-to-workspace-up; } - Mod+Ctrl+U { move-column-to-workspace-down; } - Mod+Ctrl+I { move-column-to-workspace-up; } - - Mod+Shift+Page_Down { move-workspace-down; } - Mod+Shift+Page_Up { move-workspace-up; } - Mod+Shift+U { move-workspace-down; } - Mod+Shift+I { move-workspace-up; } - - Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; } - Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; } - Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; } - Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; } - Mod+Shift+WheelScrollDown { focus-column-right; } - Mod+Shift+WheelScrollUp { focus-column-left; } - Mod+Ctrl+Shift+WheelScrollDown { move-column-right; } - Mod+Ctrl+Shift+WheelScrollUp { move-column-left; } - - Mod+BracketLeft { consume-or-expel-window-left; } - Mod+BracketRight { consume-or-expel-window-right; } - Mod+Comma { consume-window-into-column; } - Mod+Period { expel-window-from-column; } - - Mod+R { switch-preset-column-width; } - Mod+Shift+R { switch-preset-window-height; } - Mod+Ctrl+R { reset-window-height; } - Mod+F { maximize-column; } - Mod+Shift+F { fullscreen-window; } - - Mod+Ctrl+F { expand-column-to-available-width; } - - Mod+C { center-column; } - Mod+Ctrl+C { center-visible-columns; } - - Mod+k { set-column-width "-10%"; } - Mod+m { set-column-width "+10%"; } - - Mod+Shift+k { set-window-height "-10%"; } - Mod+Shift+m { set-window-height "+10%"; } - - Mod+V { toggle-window-floating; } - Mod+Shift+V { switch-focus-between-floating-and-tiling; } - - Mod+W { toggle-column-tabbed-display; } - - Print { screenshot; } - Ctrl+Print { screenshot-screen; } - Alt+Print { screenshot-window; } - - Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; } - - Mod+Shift+E { quit; } - Ctrl+Alt+Delete { quit; } - Mod+Shift+P { power-off-monitors; } -} diff --git a/desktop/.local/bin/barstatus b/desktop/.local/bin/barstatus deleted file mode 100755 index 9a8d79f..0000000 --- a/desktop/.local/bin/barstatus +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -echo -n "SPKR: $(wpctl get-volume @DEFAULT_AUDIO_SINK@ 2> /dev/null | sed 's/\.//g' )% ; MIC: $(wpctl get-volume @DEFAULT_AUDIO_SOURCE@ 2> /dev/null | sed 's/\.//g')%" -echo -n " | " -echo -n "$(date)" -for f in ${HOME}/.local/share/barmodules/enabled/*; do - echo -n " | " - [ -x "$f" ] && [ ! -d "$f" ] && "$f" -done diff --git a/desktop/.local/bin/kittenbar b/desktop/.local/bin/kittenbar deleted file mode 100755 index a2b14c2..0000000 --- a/desktop/.local/bin/kittenbar +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -kitten panel -o allow_remote_control=socket-only \ - --lines=1 \ - --listen-on=unix:${XDG_RUNTIME_DIR}/kittenbar watch -t -n1 /home/lain/.local/bin/barstatus diff --git a/desktop/.local/share/barmodules/battery.sh b/desktop/.local/share/barmodules/battery.sh deleted file mode 100755 index 9ff7330..0000000 --- a/desktop/.local/share/barmodules/battery.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -echo -n "BATTERY: $(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep 'percentage' | tr -d ' ' | sed 's/:/: /g'); " -echo -n "$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep 'state' | tr -d ' ' | sed 's/:/: /g')" diff --git a/desktop/.local/share/barmodules/ice.sh b/desktop/.local/share/barmodules/ice.sh deleted file mode 100755 index ae04fcc..0000000 --- a/desktop/.local/share/barmodules/ice.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/bash - -iceStatus=$(curl https://iceportal.de/api1/rs/status 2>/dev/null) -iceTrip=$(curl https://iceportal.de/api1/rs/tripInfo/trip 2> /dev/null) - -nextStopID=$(echo ${iceTrip} | jq -r .trip.stopInfo.actualNext) -nextStopObject=$(echo ${iceTrip} | jq -c ".trip.stops | map(select(.station.evaNr == \"${nextStopID}\"))") - -scheduledArrival=$(echo ${nextStopObject} | jq -r ".[0].timetable.scheduledDepartureTime/1000") -actualArrival=$(echo ${nextStopObject} | jq -r ".[0].timetable.actualArrivalTime/1000") -arrivalDelay=$(echo ${nextStopObject} | jq -r ".[0].timetable.arrivalDelay") - -trainDistanceSinceStop=$(echo ${iceTrip} | jq -r ".trip.distanceFromLastStop") -nextStopDistance=$(echo ${nextStopObject} | jq -r "(.[0].info.distance-${trainDistanceSinceStop})/1000") - - -echo -n "ICE $(echo ${iceTrip} | jq -r '.trip.vzn'): " -echo -n "Speed: $(echo ${iceStatus} | jq -r '.speed')km/h; " -echo -n "Next Stop: $(echo ${nextStopObject} | jq -r '.[0].station.name') " -echo -n $(date --date="@${actualArrival}" +"%H:%M")" (${arrivalDelay}) " -echo -n "${nextStopDistance}km" diff --git a/desktop/.local/share/barmodules/mpv.sh b/desktop/.local/share/barmodules/mpv.sh deleted file mode 100755 index 78b2f7a..0000000 --- a/desktop/.local/share/barmodules/mpv.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -if [ -f /tmp/mpvout ]; then - echo -n "mpv: " - tail -1 /tmp/mpvout | tr -d '\n' -fi diff --git a/desktop/.local/share/barmodules/qmmp.sh b/desktop/.local/share/barmodules/qmmp.sh deleted file mode 100755 index a0ec01e..0000000 --- a/desktop/.local/share/barmodules/qmmp.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -pidof qmmp 2> /dev/null > /dev/null -if [ $? -eq 0 ]; then - nowplaying=$(qmmp --nowplaying '%p - %a: %t') - if [ ${#nowplaying} -gt 80 ]; then - echo -n "${nowplaying:0:77}... " - else - echo -n "$nowplaying" - fi - echo -n "$(qmmp --status | head -1)" -else - echo -n "qmmp: Exited" -fi diff --git a/desktop/Config/kitty/kitty.conf b/desktop/Config/kitty/kitty.conf new file mode 100644 index 0000000..8fd84e5 --- /dev/null +++ b/desktop/Config/kitty/kitty.conf @@ -0,0 +1,10 @@ +# font_family Misc Fixed +font_size 13.0 + + +# BEGIN_KITTY_FONTS +font_family family="OG Courier Zero Slash" +bold_font auto +italic_font auto +bold_italic_font auto +# END_KITTY_FONTS \ No newline at end of file diff --git a/desktop/Config/kitty/quick-access-terminal.conf b/desktop/Config/kitty/quick-access-terminal.conf new file mode 100644 index 0000000..80a6f0c --- /dev/null +++ b/desktop/Config/kitty/quick-access-terminal.conf @@ -0,0 +1,8 @@ +lines 30 +columns 100 +edge top +background_opacity 0.90 +hide_on_focus_loss yes +grab_keyboard no +start_as_hidden yes +shell /usr/bin/fish diff --git a/desktop/Local/bin/barstatus b/desktop/Local/bin/barstatus new file mode 100755 index 0000000..ecb461c --- /dev/null +++ b/desktop/Local/bin/barstatus @@ -0,0 +1,8 @@ +#!/bin/sh +echo -n "SPKR: $(wpctl get-volume @DEFAULT_AUDIO_SINK@ 2> /dev/null | sed 's/0\.//g' | sed 's/\.//g' )% ; MIC: $(wpctl get-volume @DEFAULT_AUDIO_SOURCE@ 2> /dev/null | sed 's/0\.//g' | sed 's/\.//g')%" +echo -n " | " +echo -n "$(date)" +for f in ${HOME}/.local/share/barmodules/enabled/*; do + echo -n " | " + [ -x "$f" ] && [ ! -d "$f" ] && "$f" +done diff --git a/desktop/Local/bin/kittenbar b/desktop/Local/bin/kittenbar new file mode 100755 index 0000000..a2b14c2 --- /dev/null +++ b/desktop/Local/bin/kittenbar @@ -0,0 +1,4 @@ +#!/bin/sh +kitten panel -o allow_remote_control=socket-only \ + --lines=1 \ + --listen-on=unix:${XDG_RUNTIME_DIR}/kittenbar watch -t -n1 /home/lain/.local/bin/barstatus diff --git a/desktop/Local/share/barmodules/battery.sh b/desktop/Local/share/barmodules/battery.sh new file mode 100755 index 0000000..9ff7330 --- /dev/null +++ b/desktop/Local/share/barmodules/battery.sh @@ -0,0 +1,3 @@ +#!/bin/sh +echo -n "BATTERY: $(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep 'percentage' | tr -d ' ' | sed 's/:/: /g'); " +echo -n "$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep 'state' | tr -d ' ' | sed 's/:/: /g')" diff --git a/desktop/Local/share/barmodules/enabled/mpv.sh b/desktop/Local/share/barmodules/enabled/mpv.sh new file mode 120000 index 0000000..d0c9416 --- /dev/null +++ b/desktop/Local/share/barmodules/enabled/mpv.sh @@ -0,0 +1 @@ +../mpv.sh \ No newline at end of file diff --git a/desktop/Local/share/barmodules/enabled/qmmp.sh b/desktop/Local/share/barmodules/enabled/qmmp.sh new file mode 120000 index 0000000..7a7bc04 --- /dev/null +++ b/desktop/Local/share/barmodules/enabled/qmmp.sh @@ -0,0 +1 @@ +../qmmp.sh \ No newline at end of file diff --git a/desktop/Local/share/barmodules/ice.sh b/desktop/Local/share/barmodules/ice.sh new file mode 100755 index 0000000..ae04fcc --- /dev/null +++ b/desktop/Local/share/barmodules/ice.sh @@ -0,0 +1,21 @@ +#!/usr/bin/bash + +iceStatus=$(curl https://iceportal.de/api1/rs/status 2>/dev/null) +iceTrip=$(curl https://iceportal.de/api1/rs/tripInfo/trip 2> /dev/null) + +nextStopID=$(echo ${iceTrip} | jq -r .trip.stopInfo.actualNext) +nextStopObject=$(echo ${iceTrip} | jq -c ".trip.stops | map(select(.station.evaNr == \"${nextStopID}\"))") + +scheduledArrival=$(echo ${nextStopObject} | jq -r ".[0].timetable.scheduledDepartureTime/1000") +actualArrival=$(echo ${nextStopObject} | jq -r ".[0].timetable.actualArrivalTime/1000") +arrivalDelay=$(echo ${nextStopObject} | jq -r ".[0].timetable.arrivalDelay") + +trainDistanceSinceStop=$(echo ${iceTrip} | jq -r ".trip.distanceFromLastStop") +nextStopDistance=$(echo ${nextStopObject} | jq -r "(.[0].info.distance-${trainDistanceSinceStop})/1000") + + +echo -n "ICE $(echo ${iceTrip} | jq -r '.trip.vzn'): " +echo -n "Speed: $(echo ${iceStatus} | jq -r '.speed')km/h; " +echo -n "Next Stop: $(echo ${nextStopObject} | jq -r '.[0].station.name') " +echo -n $(date --date="@${actualArrival}" +"%H:%M")" (${arrivalDelay}) " +echo -n "${nextStopDistance}km" diff --git a/desktop/Local/share/barmodules/mpv.sh b/desktop/Local/share/barmodules/mpv.sh new file mode 100755 index 0000000..a3fe2ec --- /dev/null +++ b/desktop/Local/share/barmodules/mpv.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +if [ -f /tmp/mpvout ]; then + echo -n "mpv: " + tail -1 /tmp/mpvout | tr -d '\n' +else + echo -n "mpv: stopped" +fi diff --git a/desktop/Local/share/barmodules/qmmp.sh b/desktop/Local/share/barmodules/qmmp.sh new file mode 100755 index 0000000..a0ec01e --- /dev/null +++ b/desktop/Local/share/barmodules/qmmp.sh @@ -0,0 +1,13 @@ +#!/bin/sh +pidof qmmp 2> /dev/null > /dev/null +if [ $? -eq 0 ]; then + nowplaying=$(qmmp --nowplaying '%p - %a: %t') + if [ ${#nowplaying} -gt 80 ]; then + echo -n "${nowplaying:0:77}... " + else + echo -n "$nowplaying" + fi + echo -n "$(qmmp --status | head -1)" +else + echo -n "qmmp: Exited" +fi diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish deleted file mode 100644 index f7b919a..0000000 --- a/fish/.config/fish/config.fish +++ /dev/null @@ -1,34 +0,0 @@ -if status is-interactive - alias w='dbus-run-session startxfce4 --wayland niri --session' - alias :vpn='doas /etc/init.d/wg-quick.vpn ' - alias :launch launch.sh - alias :media mediactl.sh - alias :sys sysctls.sh - alias :firefox "launch.sh firefox-bin" - alias :music "launch.sh qmmp" - alias :edit "launch.sh foot emacs -nw" - alias :files "launch.sh thunar" - alias :git git.sh - alias :upload upload.sh - alias :ytdlp "yt-dlp (wl-paste)" - alias :download "curl -SL (wl-paste) -o" - alias :play "mpv --keep-open (wl-paste) > /tmp/mpvout" - if test (hostname) = "bamboo" - alias :vm vm.sh - alias :launchvm launchvm.sh - alias :edge "launchvm.sh microsoft-edge-stable --ozone-platform=wayland" - end - #alias w='dbus-run-session startplasma-wayland' - #alias w='dbus-run-session sway' - # Commands to run in interactive sessions can go here -end -set SSH_AUTH_SOCK $XDG_RUNTIME_DIR/hissh-agent -set EDITOR emacs -set GPG_TTY (tty) -export SSH_AUTH_SOCK -export EDITOR -export GPG_TTY - -#if test "$TERM" = "xterm-kitty" -# tput cup $COLUMNS 0 -#end diff --git a/fish/.config/fish/fish_variables b/fish/.config/fish/fish_variables deleted file mode 100644 index 72fe39c..0000000 --- a/fish/.config/fish/fish_variables +++ /dev/null @@ -1,32 +0,0 @@ -# This file contains fish universal variable definitions. -# VERSION: 3.0 -SETUVAR __fish_initialized:3400 -SETUVAR fish_color_autosuggestion:brblack -SETUVAR fish_color_cancel:\x2dr -SETUVAR fish_color_command:blue -SETUVAR fish_color_comment:red -SETUVAR fish_color_cwd:green -SETUVAR fish_color_cwd_root:red -SETUVAR fish_color_end:green -SETUVAR fish_color_error:brred -SETUVAR fish_color_escape:brcyan -SETUVAR fish_color_history_current:\x2d\x2dbold -SETUVAR fish_color_host:normal -SETUVAR fish_color_host_remote:yellow -SETUVAR fish_color_normal:normal -SETUVAR fish_color_operator:brcyan -SETUVAR fish_color_param:cyan -SETUVAR fish_color_quote:yellow -SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold -SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack -SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack -SETUVAR fish_color_status:red -SETUVAR fish_color_user:brgreen -SETUVAR fish_color_valid_path:\x2d\x2dunderline -SETUVAR fish_key_bindings:fish_default_key_bindings -SETUVAR fish_pager_color_completion:normal -SETUVAR fish_pager_color_description:yellow\x1e\x2di -SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline -SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan -SETUVAR fish_pager_color_selected_background:\x2dr -SETUVAR fish_user_paths:/home/lain/\x2elocal/bin diff --git a/fish/.config/fish/functions/fish_greeting.fish b/fish/.config/fish/functions/fish_greeting.fish deleted file mode 100644 index 3b024f3..0000000 --- a/fish/.config/fish/functions/fish_greeting.fish +++ /dev/null @@ -1,5 +0,0 @@ -function fish_greeting - if test "$TERM" != "xterm-kitty" - /home/lain/.local/bin/nofetch - end -end diff --git a/fish/.config/fish/functions/fish_prompt.fish b/fish/.config/fish/functions/fish_prompt.fish deleted file mode 100644 index 3a5c04d..0000000 --- a/fish/.config/fish/functions/fish_prompt.fish +++ /dev/null @@ -1,42 +0,0 @@ -function fish_prompt - if test "$TERM" = "xterm-kitty" - tput cup 0 0 - pwd - tput cup $COLUMNS 0 - echo -n "] " - else - orig_fish_prompt - end -end - -function orig_fish_prompt --description 'Write out the prompt' - set -l last_pipestatus $pipestatus - set -lx __fish_last_status $status # Export for __fish_print_pipestatus. - set -l normal (set_color normal) - set -q fish_color_status - or set -g fish_color_status red - - # Color the prompt differently when we're root - set -l color_cwd $fish_color_cwd - set -l suffix '%' - if functions -q fish_is_root_user; and fish_is_root_user - if set -q fish_color_cwd_root - set color_cwd $fish_color_cwd_root - end - set suffix '%' - end - - # Write pipestatus - # If the status was carried over (if no command is issued or if `set` leaves the status untouched), don't bold it. - set -l bold_flag --bold - set -q __fish_prompt_status_generation; or set -g __fish_prompt_status_generation $status_generation - if test $__fish_prompt_status_generation = $status_generation - set bold_flag - end - set __fish_prompt_status_generation $status_generation - set -l status_color (set_color $fish_color_status) - set -l statusb_color (set_color $bold_flag $fish_color_status) - set -l prompt_status (__fish_print_pipestatus "[" "]" "|" "$status_color" "$statusb_color" $last_pipestatus) - - echo -n -s (prompt_login)' ' (set_color $color_cwd) (prompt_pwd) $normal (fish_vcs_prompt) $normal " "$suffix " " -end diff --git a/fish/.local/bin/git.sh b/fish/.local/bin/git.sh deleted file mode 100755 index 2d4eb43..0000000 --- a/fish/.local/bin/git.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/bash - -if [[ "$1" == "clean" ]]; then - git clean -fdX -else - git "$@" -fi diff --git a/fish/.local/bin/launch.sh b/fish/.local/bin/launch.sh deleted file mode 100755 index 169b911..0000000 --- a/fish/.local/bin/launch.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/bash - -$@ 2> /dev/null > /dev/null & disown diff --git a/fish/.local/bin/launchvm.sh b/fish/.local/bin/launchvm.sh deleted file mode 100755 index bd71fb4..0000000 --- a/fish/.local/bin/launchvm.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/bash - -waypipe ssh lain@ubuntu.bamboo $@ 2> /dev/null > /dev/null & disown diff --git a/fish/.local/bin/mediactl.sh b/fish/.local/bin/mediactl.sh deleted file mode 100755 index 40ef71a..0000000 --- a/fish/.local/bin/mediactl.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/bash - -if [[ "$1" == "status" ]]; then - qmmp --status -elif [[ "$1" == "play" ]]; then - qmmp -p -elif [[ "$1" == "pause" ]]; then - qmmp -u -elif [[ "$1" == "prev" ]]; then - qmmp --previous -elif [[ "$1" == "next" ]]; then - qmmp --next -elif [[ "$1" == "fwd" ]]; then - qmmp --seek-fwd "$2" -elif [[ "$1" == "bwd" ]]; then - qmmp --seek-bwd "$2" -else - qmmp "$@" -fi diff --git a/fish/.local/bin/sysctls.sh b/fish/.local/bin/sysctls.sh deleted file mode 100755 index ab72c13..0000000 --- a/fish/.local/bin/sysctls.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/bash - -if [[ "$1" == "poweroff" ]]; then - doas poweroff -elif [[ "$1" == "reboot" ]]; then - doas reboot -fi diff --git a/fish/.local/bin/upload.sh b/fish/.local/bin/upload.sh deleted file mode 100755 index 1ec895a..0000000 --- a/fish/.local/bin/upload.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -curl -F'file=@${1}' https://0x0.st diff --git a/fish/.local/bin/vm.sh b/fish/.local/bin/vm.sh deleted file mode 100755 index d56d201..0000000 --- a/fish/.local/bin/vm.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/bash - -if [[ "$1" == "stop" ]]; then - virsh -c qemu:///system shutdown "${@:2}" -elif [[ "$1" == "start" ]]; then - virsh -c qemu:///system start "${@:2}" -elif [[ "$1" == "files" ]]; then - sshfs -o default_permissions lain@ubuntu.bamboo:/home/lain /home/lain/Shared -else - virsh -c qemu:///system "$@" -fi diff --git a/fish/Config/fish/config.fish b/fish/Config/fish/config.fish new file mode 100644 index 0000000..af29a37 --- /dev/null +++ b/fish/Config/fish/config.fish @@ -0,0 +1,37 @@ +if status is-interactive + alias w='dbus-run-session startxfce4 --wayland niri --session' + alias :vpn='doas /etc/init.d/wg-quick.vpn ' + alias :launch launch.sh + alias :media mediactl.sh + alias :sys sysctls.sh + alias :firefox "launch.sh firefox-bin" + alias :music "launch.sh qmmp" + alias :edit "launch.sh foot emacs -nw" + alias :files "launch.sh thunar" + alias :git git.sh + alias :upload upload.sh + alias :ytdlp "yt-dlp (wl-paste)" + alias :download "curl -SL (wl-paste) -o" + alias :play "mpv --keep-open (wl-paste) > /tmp/mpvout" + if test (hostname) = "cherryblossom" + alias :phone "sshfs defaultuser@tulip:/home/defaultuser Phone -o allow_other" + end + if test (hostname) = "bamboo" + alias :vm vm.sh + alias :launchvm launchvm.sh + alias :edge "launchvm.sh microsoft-edge-stable --ozone-platform=wayland" + end + #alias w='dbus-run-session startplasma-wayland' + #alias w='dbus-run-session sway' + # Commands to run in interactive sessions can go here +end +set SSH_AUTH_SOCK $XDG_RUNTIME_DIR/hissh-agent +set EDITOR emacs +set GPG_TTY (tty) +export SSH_AUTH_SOCK +export EDITOR +export GPG_TTY + +#if test "$TERM" = "xterm-kitty" +# tput cup $COLUMNS 0 +#end diff --git a/fish/Config/fish/fish_variables b/fish/Config/fish/fish_variables new file mode 100644 index 0000000..72fe39c --- /dev/null +++ b/fish/Config/fish/fish_variables @@ -0,0 +1,32 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR __fish_initialized:3400 +SETUVAR fish_color_autosuggestion:brblack +SETUVAR fish_color_cancel:\x2dr +SETUVAR fish_color_command:blue +SETUVAR fish_color_comment:red +SETUVAR fish_color_cwd:green +SETUVAR fish_color_cwd_root:red +SETUVAR fish_color_end:green +SETUVAR fish_color_error:brred +SETUVAR fish_color_escape:brcyan +SETUVAR fish_color_history_current:\x2d\x2dbold +SETUVAR fish_color_host:normal +SETUVAR fish_color_host_remote:yellow +SETUVAR fish_color_normal:normal +SETUVAR fish_color_operator:brcyan +SETUVAR fish_color_param:cyan +SETUVAR fish_color_quote:yellow +SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold +SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_status:red +SETUVAR fish_color_user:brgreen +SETUVAR fish_color_valid_path:\x2d\x2dunderline +SETUVAR fish_key_bindings:fish_default_key_bindings +SETUVAR fish_pager_color_completion:normal +SETUVAR fish_pager_color_description:yellow\x1e\x2di +SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline +SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +SETUVAR fish_pager_color_selected_background:\x2dr +SETUVAR fish_user_paths:/home/lain/\x2elocal/bin diff --git a/fish/Config/fish/functions/fish_greeting.fish b/fish/Config/fish/functions/fish_greeting.fish new file mode 100644 index 0000000..3b024f3 --- /dev/null +++ b/fish/Config/fish/functions/fish_greeting.fish @@ -0,0 +1,5 @@ +function fish_greeting + if test "$TERM" != "xterm-kitty" + /home/lain/.local/bin/nofetch + end +end diff --git a/fish/Config/fish/functions/fish_prompt.fish b/fish/Config/fish/functions/fish_prompt.fish new file mode 100644 index 0000000..3a5c04d --- /dev/null +++ b/fish/Config/fish/functions/fish_prompt.fish @@ -0,0 +1,42 @@ +function fish_prompt + if test "$TERM" = "xterm-kitty" + tput cup 0 0 + pwd + tput cup $COLUMNS 0 + echo -n "] " + else + orig_fish_prompt + end +end + +function orig_fish_prompt --description 'Write out the prompt' + set -l last_pipestatus $pipestatus + set -lx __fish_last_status $status # Export for __fish_print_pipestatus. + set -l normal (set_color normal) + set -q fish_color_status + or set -g fish_color_status red + + # Color the prompt differently when we're root + set -l color_cwd $fish_color_cwd + set -l suffix '%' + if functions -q fish_is_root_user; and fish_is_root_user + if set -q fish_color_cwd_root + set color_cwd $fish_color_cwd_root + end + set suffix '%' + end + + # Write pipestatus + # If the status was carried over (if no command is issued or if `set` leaves the status untouched), don't bold it. + set -l bold_flag --bold + set -q __fish_prompt_status_generation; or set -g __fish_prompt_status_generation $status_generation + if test $__fish_prompt_status_generation = $status_generation + set bold_flag + end + set __fish_prompt_status_generation $status_generation + set -l status_color (set_color $fish_color_status) + set -l statusb_color (set_color $bold_flag $fish_color_status) + set -l prompt_status (__fish_print_pipestatus "[" "]" "|" "$status_color" "$statusb_color" $last_pipestatus) + + echo -n -s (prompt_login)' ' (set_color $color_cwd) (prompt_pwd) $normal (fish_vcs_prompt) $normal " "$suffix " " +end diff --git a/fish/Local/bin/git.sh b/fish/Local/bin/git.sh new file mode 100755 index 0000000..2d4eb43 --- /dev/null +++ b/fish/Local/bin/git.sh @@ -0,0 +1,7 @@ +#!/usr/bin/bash + +if [[ "$1" == "clean" ]]; then + git clean -fdX +else + git "$@" +fi diff --git a/fish/Local/bin/launch.sh b/fish/Local/bin/launch.sh new file mode 100755 index 0000000..169b911 --- /dev/null +++ b/fish/Local/bin/launch.sh @@ -0,0 +1,3 @@ +#!/usr/bin/bash + +$@ 2> /dev/null > /dev/null & disown diff --git a/fish/Local/bin/launchvm.sh b/fish/Local/bin/launchvm.sh new file mode 100755 index 0000000..bd71fb4 --- /dev/null +++ b/fish/Local/bin/launchvm.sh @@ -0,0 +1,3 @@ +#!/usr/bin/bash + +waypipe ssh lain@ubuntu.bamboo $@ 2> /dev/null > /dev/null & disown diff --git a/fish/Local/bin/mediactl.sh b/fish/Local/bin/mediactl.sh new file mode 100755 index 0000000..40ef71a --- /dev/null +++ b/fish/Local/bin/mediactl.sh @@ -0,0 +1,19 @@ +#!/usr/bin/bash + +if [[ "$1" == "status" ]]; then + qmmp --status +elif [[ "$1" == "play" ]]; then + qmmp -p +elif [[ "$1" == "pause" ]]; then + qmmp -u +elif [[ "$1" == "prev" ]]; then + qmmp --previous +elif [[ "$1" == "next" ]]; then + qmmp --next +elif [[ "$1" == "fwd" ]]; then + qmmp --seek-fwd "$2" +elif [[ "$1" == "bwd" ]]; then + qmmp --seek-bwd "$2" +else + qmmp "$@" +fi diff --git a/fish/Local/bin/sysctls.sh b/fish/Local/bin/sysctls.sh new file mode 100755 index 0000000..ab72c13 --- /dev/null +++ b/fish/Local/bin/sysctls.sh @@ -0,0 +1,7 @@ +#!/usr/bin/bash + +if [[ "$1" == "poweroff" ]]; then + doas poweroff +elif [[ "$1" == "reboot" ]]; then + doas reboot +fi diff --git a/fish/Local/bin/upload.sh b/fish/Local/bin/upload.sh new file mode 100755 index 0000000..1ec895a --- /dev/null +++ b/fish/Local/bin/upload.sh @@ -0,0 +1,2 @@ +#!/bin/bash +curl -F'file=@${1}' https://0x0.st diff --git a/fish/Local/bin/vm.sh b/fish/Local/bin/vm.sh new file mode 100755 index 0000000..d56d201 --- /dev/null +++ b/fish/Local/bin/vm.sh @@ -0,0 +1,11 @@ +#!/usr/bin/bash + +if [[ "$1" == "stop" ]]; then + virsh -c qemu:///system shutdown "${@:2}" +elif [[ "$1" == "start" ]]; then + virsh -c qemu:///system start "${@:2}" +elif [[ "$1" == "files" ]]; then + sshfs -o default_permissions lain@ubuntu.bamboo:/home/lain /home/lain/Shared +else + virsh -c qemu:///system "$@" +fi diff --git a/foot/.config/foot/foot.ini b/foot/.config/foot/foot.ini deleted file mode 100644 index 77326a8..0000000 --- a/foot/.config/foot/foot.ini +++ /dev/null @@ -1,4 +0,0 @@ -shell=/usr/bin/fish -#font=OG Courier Zero slash:size=13 -font=Misc Fixed:size=13 - diff --git a/foot/Config/foot/foot.ini b/foot/Config/foot/foot.ini new file mode 100644 index 0000000..77326a8 --- /dev/null +++ b/foot/Config/foot/foot.ini @@ -0,0 +1,4 @@ +shell=/usr/bin/fish +#font=OG Courier Zero slash:size=13 +font=Misc Fixed:size=13 + diff --git a/mpv/.config/mpv/mpv.conf b/mpv/.config/mpv/mpv.conf deleted file mode 100644 index 8394adf..0000000 --- a/mpv/.config/mpv/mpv.conf +++ /dev/null @@ -1,28 +0,0 @@ -cache=auto -screenshot-template='~/Desktop/%F (%P) %n' - -embeddedfonts=yes -sub-ass-override=strip - -slang=enm,en,eng,de,deu,ger -alang=ja,jp,jpn,en,eng,de,deu,ger - -[extension.mkv] -keep-open=yes -volume-max=150 - -[extension.gif] -osc=no -loop-file - -[extension.png] -keep-open=yes - -[extension.jpg] -keep-open=yes - -[extension.webp] -keep-open=yes - -[protocol.cdda] -no-video diff --git a/mpv/Config/mpv/mpv.conf b/mpv/Config/mpv/mpv.conf new file mode 100644 index 0000000..8394adf --- /dev/null +++ b/mpv/Config/mpv/mpv.conf @@ -0,0 +1,28 @@ +cache=auto +screenshot-template='~/Desktop/%F (%P) %n' + +embeddedfonts=yes +sub-ass-override=strip + +slang=enm,en,eng,de,deu,ger +alang=ja,jp,jpn,en,eng,de,deu,ger + +[extension.mkv] +keep-open=yes +volume-max=150 + +[extension.gif] +osc=no +loop-file + +[extension.png] +keep-open=yes + +[extension.jpg] +keep-open=yes + +[extension.webp] +keep-open=yes + +[protocol.cdda] +no-video diff --git a/rc/.config/rc/rc.conf b/rc/.config/rc/rc.conf deleted file mode 100644 index 239bd8d..0000000 --- a/rc/.config/rc/rc.conf +++ /dev/null @@ -1 +0,0 @@ -rc_env_allow="WAYLAND_DISPLAY DBUS_SESSION_BUS_ADDRESS XDG_RUNTIME_DIR NIRI_SOCKET" diff --git a/rc/.config/rc/runlevels/gui/autodarkmode b/rc/.config/rc/runlevels/gui/autodarkmode deleted file mode 100755 index 7b342a9..0000000 --- a/rc/.config/rc/runlevels/gui/autodarkmode +++ /dev/null @@ -1,4 +0,0 @@ -#!/sbin/openrc-run - -supervisor=supervise-daemon -command="/home/lain/.local/bin/autodarkmode" diff --git a/rc/.config/rc/runlevels/gui/footserver b/rc/.config/rc/runlevels/gui/footserver deleted file mode 100755 index d1a54cf..0000000 --- a/rc/.config/rc/runlevels/gui/footserver +++ /dev/null @@ -1,5 +0,0 @@ -#!/sbin/openrc-run - -supervisor=supervise-daemon -command="foot" -command_args="--server" diff --git a/rc/.config/rc/runlevels/gui/himitsu-secret-service b/rc/.config/rc/runlevels/gui/himitsu-secret-service deleted file mode 120000 index 5d01cdb..0000000 --- a/rc/.config/rc/runlevels/gui/himitsu-secret-service +++ /dev/null @@ -1 +0,0 @@ -/etc/user/init.d/himitsu-secret-service \ No newline at end of file diff --git a/rc/.config/rc/runlevels/gui/himitsud b/rc/.config/rc/runlevels/gui/himitsud deleted file mode 120000 index 949b50b..0000000 --- a/rc/.config/rc/runlevels/gui/himitsud +++ /dev/null @@ -1 +0,0 @@ -/etc/user/init.d/himitsud \ No newline at end of file diff --git a/rc/.config/rc/runlevels/gui/hissh-agent b/rc/.config/rc/runlevels/gui/hissh-agent deleted file mode 120000 index 9c20203..0000000 --- a/rc/.config/rc/runlevels/gui/hissh-agent +++ /dev/null @@ -1 +0,0 @@ -/etc/user/init.d/hissh-agent \ No newline at end of file diff --git a/rc/.config/rc/runlevels/gui/kittenbar b/rc/.config/rc/runlevels/gui/kittenbar deleted file mode 100755 index 1139517..0000000 --- a/rc/.config/rc/runlevels/gui/kittenbar +++ /dev/null @@ -1,4 +0,0 @@ -#!/sbin/openrc-run - -supervisor=supervise-daemon -command="/home/lain/.local/bin/kittenbar" diff --git a/rc/.config/rc/runlevels/gui/pipewire b/rc/.config/rc/runlevels/gui/pipewire deleted file mode 100755 index 76a0f19..0000000 --- a/rc/.config/rc/runlevels/gui/pipewire +++ /dev/null @@ -1,11 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License, v2 or later - -depend() { - need dbus -} - -export DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus" -supervisor=supervise-daemon -command="/usr/bin/pipewire" diff --git a/rc/.config/rc/runlevels/gui/pipewire-pulse b/rc/.config/rc/runlevels/gui/pipewire-pulse deleted file mode 100755 index af7de86..0000000 --- a/rc/.config/rc/runlevels/gui/pipewire-pulse +++ /dev/null @@ -1,12 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License, v2 or later - -depend() { - need pipewire dbus -} - -export DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus" -supervisor=supervise-daemon -command="/usr/bin/pipewire" -command_args="-c pipewire-pulse.conf" diff --git a/rc/.config/rc/runlevels/gui/swaybg b/rc/.config/rc/runlevels/gui/swaybg deleted file mode 100755 index 37fbcb2..0000000 --- a/rc/.config/rc/runlevels/gui/swaybg +++ /dev/null @@ -1,5 +0,0 @@ -#!/sbin/openrc-run - -supervisor=supervise-daemon -command="/usr/bin/swaybg" -command_args="-i /home/lain/Desktop/wallpaper.jpg -m fill" diff --git a/rc/.config/rc/runlevels/gui/wireplumber b/rc/.config/rc/runlevels/gui/wireplumber deleted file mode 100755 index ea4c6f2..0000000 --- a/rc/.config/rc/runlevels/gui/wireplumber +++ /dev/null @@ -1,11 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License, v2 or later - -depend() { - need pipewire dbus -} - -DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus" -supervisor=supervise-daemon -command="/usr/bin/wireplumber" diff --git a/rc/Config/rc/rc.conf b/rc/Config/rc/rc.conf new file mode 100644 index 0000000..239bd8d --- /dev/null +++ b/rc/Config/rc/rc.conf @@ -0,0 +1 @@ +rc_env_allow="WAYLAND_DISPLAY DBUS_SESSION_BUS_ADDRESS XDG_RUNTIME_DIR NIRI_SOCKET" diff --git a/rc/Config/rc/runlevels/gui/autodarkmode b/rc/Config/rc/runlevels/gui/autodarkmode new file mode 100755 index 0000000..7b342a9 --- /dev/null +++ b/rc/Config/rc/runlevels/gui/autodarkmode @@ -0,0 +1,4 @@ +#!/sbin/openrc-run + +supervisor=supervise-daemon +command="/home/lain/.local/bin/autodarkmode" diff --git a/rc/Config/rc/runlevels/gui/footserver b/rc/Config/rc/runlevels/gui/footserver new file mode 100755 index 0000000..d1a54cf --- /dev/null +++ b/rc/Config/rc/runlevels/gui/footserver @@ -0,0 +1,5 @@ +#!/sbin/openrc-run + +supervisor=supervise-daemon +command="foot" +command_args="--server" diff --git a/rc/Config/rc/runlevels/gui/himitsu-secret-service b/rc/Config/rc/runlevels/gui/himitsu-secret-service new file mode 120000 index 0000000..5d01cdb --- /dev/null +++ b/rc/Config/rc/runlevels/gui/himitsu-secret-service @@ -0,0 +1 @@ +/etc/user/init.d/himitsu-secret-service \ No newline at end of file diff --git a/rc/Config/rc/runlevels/gui/himitsud b/rc/Config/rc/runlevels/gui/himitsud new file mode 120000 index 0000000..949b50b --- /dev/null +++ b/rc/Config/rc/runlevels/gui/himitsud @@ -0,0 +1 @@ +/etc/user/init.d/himitsud \ No newline at end of file diff --git a/rc/Config/rc/runlevels/gui/hissh-agent b/rc/Config/rc/runlevels/gui/hissh-agent new file mode 120000 index 0000000..9c20203 --- /dev/null +++ b/rc/Config/rc/runlevels/gui/hissh-agent @@ -0,0 +1 @@ +/etc/user/init.d/hissh-agent \ No newline at end of file diff --git a/rc/Config/rc/runlevels/gui/kittenbar b/rc/Config/rc/runlevels/gui/kittenbar new file mode 100755 index 0000000..1139517 --- /dev/null +++ b/rc/Config/rc/runlevels/gui/kittenbar @@ -0,0 +1,4 @@ +#!/sbin/openrc-run + +supervisor=supervise-daemon +command="/home/lain/.local/bin/kittenbar" diff --git a/rc/Config/rc/runlevels/gui/pipewire b/rc/Config/rc/runlevels/gui/pipewire new file mode 100755 index 0000000..76a0f19 --- /dev/null +++ b/rc/Config/rc/runlevels/gui/pipewire @@ -0,0 +1,11 @@ +#!/sbin/openrc-run +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License, v2 or later + +depend() { + need dbus +} + +export DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus" +supervisor=supervise-daemon +command="/usr/bin/pipewire" diff --git a/rc/Config/rc/runlevels/gui/pipewire-pulse b/rc/Config/rc/runlevels/gui/pipewire-pulse new file mode 100755 index 0000000..af7de86 --- /dev/null +++ b/rc/Config/rc/runlevels/gui/pipewire-pulse @@ -0,0 +1,12 @@ +#!/sbin/openrc-run +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License, v2 or later + +depend() { + need pipewire dbus +} + +export DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus" +supervisor=supervise-daemon +command="/usr/bin/pipewire" +command_args="-c pipewire-pulse.conf" diff --git a/rc/Config/rc/runlevels/gui/swaybg b/rc/Config/rc/runlevels/gui/swaybg new file mode 100755 index 0000000..37fbcb2 --- /dev/null +++ b/rc/Config/rc/runlevels/gui/swaybg @@ -0,0 +1,5 @@ +#!/sbin/openrc-run + +supervisor=supervise-daemon +command="/usr/bin/swaybg" +command_args="-i /home/lain/Desktop/wallpaper.jpg -m fill" diff --git a/rc/Config/rc/runlevels/gui/wireplumber b/rc/Config/rc/runlevels/gui/wireplumber new file mode 100755 index 0000000..ea4c6f2 --- /dev/null +++ b/rc/Config/rc/runlevels/gui/wireplumber @@ -0,0 +1,11 @@ +#!/sbin/openrc-run +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License, v2 or later + +depend() { + need pipewire dbus +} + +DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus" +supervisor=supervise-daemon +command="/usr/bin/wireplumber" -- cgit v1.2.3