From 8740db54043bf08982f5183572cdce266048afe0 Mon Sep 17 00:00:00 2001 From: Ewy~ Date: Mon, 17 Mar 2025 19:13:27 +0100 Subject: incremental improvements --- .config/mako/config | 4 ++++ .config/mpd/database | Bin 281611 -> 310739 bytes .config/sway/config.d/dualshock | 4 ++++ .config/sway/config.d/outputs | 2 +- .config/sway/config.d/satty | 10 +++++++++- .config/sway/config.d/soku | 5 +++++ .config/sway/hosts/wit/outputs | 11 +++++++++-- .config/zsh/themes/ewout.zsh-theme | 4 ++-- .local/bin/uwuload | 8 ++++++++ .local/bin/uwushot | 5 +++++ .profile | 2 ++ .zshrc | 2 ++ 12 files changed, 51 insertions(+), 6 deletions(-) create mode 100644 .config/sway/config.d/dualshock create mode 100644 .config/sway/config.d/soku create mode 100755 .local/bin/uwuload create mode 100755 .local/bin/uwushot diff --git a/.config/mako/config b/.config/mako/config index b61d208..699fb2c 100644 --- a/.config/mako/config +++ b/.config/mako/config @@ -8,6 +8,10 @@ layer=overlay format=%a  %s\n%b max-icon-size=64 padding=0,5,0,0 +group-by=summary + +[app-name="Nicotine+"] +group-by=app-name [app-icon=] padding=5 diff --git a/.config/mpd/database b/.config/mpd/database index 7c95566..85a56d9 100644 Binary files a/.config/mpd/database and b/.config/mpd/database differ diff --git a/.config/sway/config.d/dualshock b/.config/sway/config.d/dualshock new file mode 100644 index 0000000..aa5c424 --- /dev/null +++ b/.config/sway/config.d/dualshock @@ -0,0 +1,4 @@ +input type:touchpad { + events disabled +} + diff --git a/.config/sway/config.d/outputs b/.config/sway/config.d/outputs index ad45998..276ff5d 100644 --- a/.config/sway/config.d/outputs +++ b/.config/sway/config.d/outputs @@ -1,4 +1,4 @@ output * { - background "$(cat $HOME/.cache/wal/wal)" fill + background "$(cat $HOME/.cache/wal/wal)" fit } diff --git a/.config/sway/config.d/satty b/.config/sway/config.d/satty index 8204049..3d776cd 100644 --- a/.config/sway/config.d/satty +++ b/.config/sway/config.d/satty @@ -1 +1,9 @@ -bindsym $mod+Print exec grim -g "$(slurp -o -r -c '#ff0000ff')" -t ppm - | satty --filename - --fullscreen --output-filename ~/Pictures/Screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png +bindsym $mod+Print exec uwushot +for_window [app_id="satty"] { + fullscreen disable + move container to output HDMI-A-2 + resize set width 660 + resize set height 400 + move position 32 32 + border none +} diff --git a/.config/sway/config.d/soku b/.config/sway/config.d/soku new file mode 100644 index 0000000..801955c --- /dev/null +++ b/.config/sway/config.d/soku @@ -0,0 +1,5 @@ +for_window [instance="th123.exe"] { + floating enable + resize set 1920x1440 + position set 320,0 +} diff --git a/.config/sway/hosts/wit/outputs b/.config/sway/hosts/wit/outputs index 83bb6bf..9ca558c 100644 --- a/.config/sway/hosts/wit/outputs +++ b/.config/sway/hosts/wit/outputs @@ -1,9 +1,16 @@ -output DP-2 { +set $right "Philips Consumer Electronics Company PHL 243V7 AU01809002092" +set $left "LG Electronics LG ULTRAGEAR+ 303NTZN3Z085" + +output $left { resolution 2560x1440@239.970Hz position 0,0 } +workspace 1 output $left -output HDMI-A-1 { +output $right { resolution 1920x1080@60.000Hz position 2560,0 } +workspace 2 output $right + +exec mako --output "HDMI-A-2" diff --git a/.config/zsh/themes/ewout.zsh-theme b/.config/zsh/themes/ewout.zsh-theme index e44e887..ae992dd 100644 --- a/.config/zsh/themes/ewout.zsh-theme +++ b/.config/zsh/themes/ewout.zsh-theme @@ -11,8 +11,8 @@ __git() { } __wrap() { - [ -z "$@" ] && return - echo "─[$@]─" + [ -z "$*" ] && return + echo "─[$*]─" } __exitStatus() { diff --git a/.local/bin/uwuload b/.local/bin/uwuload new file mode 100755 index 0000000..f6ae737 --- /dev/null +++ b/.local/bin/uwuload @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +set -euo pipefail +filename=$(basename "$@") +rsync -r --progress --stats "$@" "root@ewy.one:/srv/uwu/$filename" +url="https://uwu.ewy.one/$filename" +echo "$url" | wl-copy +message="Uploaded $filename to uwu; copied result URL to clipboard." +notify-send -a uwuload -i /usr/share/icons/Papirus-Dark/128x128/devices/network-server.svg "$message" diff --git a/.local/bin/uwushot b/.local/bin/uwushot new file mode 100755 index 0000000..cc99316 --- /dev/null +++ b/.local/bin/uwushot @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +set -euo pipefail +filename="~/Pictures/Screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png" +grim -g "$(slurp -o -r -c '#ff0000ff')" -t ppm - | satty --filename - --disable-notifications --corner-roundness 12 --output-filename "$filename" +uwuload "$filename" diff --git a/.profile b/.profile index edcb498..1cc3179 100644 --- a/.profile +++ b/.profile @@ -1,4 +1,6 @@ +# Build dolphin open-with menus +XDG_MENU_PREFIX=plasma- kbuildsycoca6 # Added by Toolbox App export PATH="$PATH:/home/ewout/.local/share/JetBrains/Toolbox/scripts" diff --git a/.zshrc b/.zshrc index 773d7d5..25bf809 100644 --- a/.zshrc +++ b/.zshrc @@ -30,4 +30,6 @@ plugins=( zsh-navigation-tools ) +alias zluda="LD_LIBRARY_PATH=\":$LD_LIBRARY_PATH\"" + . /usr/share/oh-my-zsh/oh-my-zsh.sh -- cgit v1.3