From e209bb00272164687bcef21534988e1bafcd1aec Mon Sep 17 00:00:00 2001 From: Lizzy Hunt Date: Wed, 24 Jan 2024 19:17:25 -0700 Subject: [PATCH] make wofi actually look nice --- .config/sway/config | 2 +- .config/wofi/style.css | 51 +++++++++++++++++++++++++ .gitignore | 4 ++ scripts/machine-specific-zsh/yagami.zsh | 2 + scripts/pashare | 13 +++++++ scripts/start-subnet-router.sh | 6 +++ 6 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 .config/wofi/style.css create mode 100755 scripts/pashare create mode 100755 scripts/start-subnet-router.sh diff --git a/.config/sway/config b/.config/sway/config index 01d22bd..77555d2 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -14,7 +14,7 @@ set $browser xdg-open "https://static.simponic.xyz/dvd-logo/" # Your preferred application launcher # Note: pass the final command to swaymsg so that the resulting window can be opened # on the original workspace that the command was run on. -set $menu wofi --show=drun --lines=5 --prompt="" +set $menu wofi --show=drun --lines=2 --prompt=">" set $wallpapers_path $HOME/Wallpapers ### Output configuration diff --git a/.config/wofi/style.css b/.config/wofi/style.css new file mode 100644 index 0000000..634543f --- /dev/null +++ b/.config/wofi/style.css @@ -0,0 +1,51 @@ +window { +margin: 0px; +border: 1px solid #bd93f9; +background-color: #282a36; +} + +#input { +margin: 5px; +border: none; +color: #f8f8f2; +background-color: #44475a; +} + +#inner-box { +margin: 5px; +border: none; +background-color: #282a36; +} + +#outer-box { +margin: 5px; +border: none; +background-color: #282a36; +} + +#scroll { +margin: 0px; +border: none; +} + +#text { +margin: 5px; +border: none; +color: #f8f8f2; +} + +#entry.activatable #text { +color: #282a36; +} + +#entry > * { +color: #f8f8f2; +} + +#entry:selected { +background-color: #44475a; +} + +#entry:selected #text { +font-weight: bold; +} diff --git a/.gitignore b/.gitignore index 75f7cd1..eb1464e 100644 --- a/.gitignore +++ b/.gitignore @@ -27,6 +27,10 @@ !.config/picom !.config/picom/* +!.config +!.config/wofi +!.config/wofi/* + !.config/alacritty !.config/alacritty/* diff --git a/scripts/machine-specific-zsh/yagami.zsh b/scripts/machine-specific-zsh/yagami.zsh index 10ce143..4260ec9 100644 --- a/scripts/machine-specific-zsh/yagami.zsh +++ b/scripts/machine-specific-zsh/yagami.zsh @@ -16,3 +16,5 @@ export QT_QPA_PLATFORMTHEME=qt5ct export QT_QPA_PLATFORM=wayland #export GDK_BACKEND=wayland export MOZ_ENABLE_WAYLAND=1 + +export DARK_MODE=True diff --git a/scripts/pashare b/scripts/pashare new file mode 100755 index 0000000..b5f268c --- /dev/null +++ b/scripts/pashare @@ -0,0 +1,13 @@ +#!/bin/sh +case "$1" in + start) + $0 stop + pactl load-module module-simple-protocol-tcp rate=48000 format=s16le channels=2 source=alsa_output.pci-0000_03_00.1.hdmi-stereo-extra1 record=true port=8000 + ;; + stop) + pactl unload-module `pactl list | grep tcp -B1 | grep M | sed 's/[^0-9]//g'` + ;; + *) + echo "Usage: $0 start|stop" >&2 + ;; +esac diff --git a/scripts/start-subnet-router.sh b/scripts/start-subnet-router.sh new file mode 100755 index 0000000..d94f51c --- /dev/null +++ b/scripts/start-subnet-router.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +NETDEV=$(ip route show 0/0 | cut -f5 -d' ') +sudo ethtool -K $NETDEV rx-udp-gro-forwarding on rx-gro-list off + +sudo tailscale up --advertise-routes=10.0.0.0/24,10.0.1.0/24