feat!: move everything around to accomodate two system configurations in one repo
This commit is contained in:
parent
d735060641
commit
53a2609204
82 changed files with 1786 additions and 863 deletions
18
modules/home-manager/scripts/create_feedback_sink.sh
Executable file
18
modules/home-manager/scripts/create_feedback_sink.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Load sinks
|
||||
#
|
||||
pactl load-module module-null-sink formats=pcm,float32le sink_name=output sink_properties=device.description="Output"
|
||||
pactl load-module module-null-sink formats=pcm,float32le sink_name=applications sink_properties=device.description="Applications"
|
||||
|
||||
#
|
||||
# Loopback audio to the correct places
|
||||
#
|
||||
|
||||
# Application audio forwarded to microphone
|
||||
pactl load-module module-loopback latency_msec=25 source=applications.monitor sink=output
|
||||
# Microphone
|
||||
pactl load-module module-loopback latency_msec=25 source=rnnoise_source sink=output
|
||||
# Application audio forwarded to me
|
||||
pactl load-module module-loopback latency_msec=25 source=applications.monitor sink=alsa_output.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.pro-output-0
|
4
modules/home-manager/scripts/delete_feedback_sink.sh
Executable file
4
modules/home-manager/scripts/delete_feedback_sink.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
pactl unload-module module-loopback
|
||||
pactl unload-module module-null-sink
|
7
modules/home-manager/scripts/games/launch.sh
Executable file
7
modules/home-manager/scripts/games/launch.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# I've removed all environment variables
|
||||
# but there might be useful ones in the future.
|
||||
# https://docs.mesa3d.org/envvars.html
|
||||
|
||||
mangohud gamemoderun "$@"
|
6
modules/home-manager/scripts/hyprland/screenshot.sh
Executable file
6
modules/home-manager/scripts/hyprland/screenshot.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
FILE_PATH="/mnt/internal/personal/screenshots/$(date +'%Y-%m-%d_%H-%M-%S').png"
|
||||
|
||||
grim -t png -o DP-2 $FILE_PATH
|
||||
wl-copy <$FILE_PATH
|
6
modules/home-manager/scripts/hyprland/screenshot_area.sh
Executable file
6
modules/home-manager/scripts/hyprland/screenshot_area.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
FILE_PATH="/mnt/internal/personal/screenshots/$(date +'%Y-%m-%d_%H-%M-%S').png"
|
||||
|
||||
grim -t png -g "$(slurp -w 0 -b '#6E738D77')" $FILE_PATH
|
||||
wl-copy <$FILE_PATH
|
13
modules/home-manager/scripts/hyprland/start_apps.sh
Executable file
13
modules/home-manager/scripts/hyprland/start_apps.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Open qbittorrent
|
||||
qbittorrent &
|
||||
|
||||
# Open vesktop
|
||||
vesktop &
|
||||
|
||||
# Open steam
|
||||
steam &
|
||||
|
||||
# Open firefox
|
||||
firefox
|
62
modules/home-manager/scripts/hyprland/start_services.sh
Executable file
62
modules/home-manager/scripts/hyprland/start_services.sh
Executable file
|
@ -0,0 +1,62 @@
|
|||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Make sure xdg-desktop-portal-hyprland has access to what it needs
|
||||
#
|
||||
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
|
||||
|
||||
#
|
||||
# Start waybar.
|
||||
#
|
||||
waybar &
|
||||
|
||||
#
|
||||
# Start xwaylandvideobridge
|
||||
#
|
||||
xwaylandvideobridge &
|
||||
|
||||
#
|
||||
## Start wallpaper daemon and set one.
|
||||
#
|
||||
OUTPUT_1="DP-2"
|
||||
IMAGE_1="/mnt/internal/personal/wallpapers/wallhaven-vqlvm8.jpg"
|
||||
|
||||
OUTPUT_2="DP-3"
|
||||
IMAGE_2="/mnt/internal/personal/wallpapers/wallhaven-2yl6px.jpg"
|
||||
|
||||
function load_wallpapers() {
|
||||
swww img -t any --transition-bezier 0.0,0.0,1.0,1.0 --transition-duration .8 --transition-step 255 --transition-fps 60 -o $OUTPUT_1 $IMAGE_1;
|
||||
swww img -t any --transition-bezier 0.0,0.0,1.0,1.0 --transition-duration .8 --transition-step 255 --transition-fps 60 -o $OUTPUT_2 $IMAGE_2
|
||||
}
|
||||
|
||||
if ! swww query; then
|
||||
swww-daemon &
|
||||
fi
|
||||
|
||||
load_wallpapers &
|
||||
|
||||
#
|
||||
# Start notification daemon.
|
||||
#
|
||||
mako &
|
||||
|
||||
#
|
||||
# Refresh kdeconnect connections
|
||||
#
|
||||
kdeconnect-cli --refresh &
|
||||
|
||||
#
|
||||
# Clipboard manager
|
||||
#
|
||||
wl-paste --type text --watch cliphist store &
|
||||
wl-paste --type image --watch cliphist store &
|
||||
|
||||
#
|
||||
# Start Fcitx5
|
||||
#
|
||||
fcitx5 &
|
||||
|
||||
#
|
||||
# Start the blueman applet for managing bluetooth devices
|
||||
#
|
||||
blueman-applet &
|
Loading…
Add table
Add a link
Reference in a new issue