From ec6c3a92fd8bbf502cb0bb6c246607da2f737425 Mon Sep 17 00:00:00 2001 From: jabuxas Date: Sat, 16 Nov 2024 13:13:00 -0300 Subject: [PATCH] refactor: move scripts to be tracked by stow --- .../scripts}/scripts/animations.sh | 0 .../scripts}/scripts/change-colorscheme.sh | 2 +- desktop/{ => configs/scripts}/scripts/choices | 0 .../{ => configs/scripts}/scripts/elash.sh | 0 .../scripts}/scripts/firefox_to_workspace.sh | 0 desktop/{ => configs/scripts}/scripts/fix.sh | 0 desktop/{ => configs/scripts}/scripts/hypr.sh | 0 desktop/{ => configs/scripts}/scripts/init.sh | 0 desktop/{ => configs/scripts}/scripts/kvm.sh | 0 .../{ => configs/scripts}/scripts/macro.sh | 0 .../scripts}/scripts/screenlayout.sh | 0 desktop/{ => configs/scripts}/scripts/sfp.sh | 0 desktop/configs/scripts/scripts/switch.fish | 40 +++++++++++++ desktop/{ => configs/scripts}/scripts/swww.sh | 36 ++++++------ .../scripts/toggle_opacity_alacritty.fish | 22 +++++++ .../scripts}/scripts/volume_brightness.sh | 0 .../{ => configs/scripts}/scripts/weechat.sh | 0 .../scripts}/scripts/wppengine.sh | 0 desktop/scripts/autostart.sh | 47 --------------- desktop/scripts/cpu.sh | 3 - desktop/scripts/idle | 3 - desktop/scripts/memory.sh | 12 ---- desktop/scripts/mouse.sh | 9 --- desktop/scripts/mpd.sh | 9 --- desktop/scripts/print-fullscreen.sh | 12 ---- desktop/scripts/print-select.sh | 13 ----- desktop/scripts/print-tmp.sh | 11 ---- desktop/scripts/print-window.sh | 30 ---------- desktop/scripts/readme.md | 5 -- desktop/scripts/switch.fish | 29 ---------- desktop/scripts/upt.sh | 7 --- desktop/scripts/volume.sh | 5 -- desktop/scripts/way-print.sh | 45 --------------- desktop/scripts/xfce.sh | 21 ------- desktop/scripts/xmonad.sh | 57 ------------------- 35 files changed, 81 insertions(+), 337 deletions(-) rename desktop/{ => configs/scripts}/scripts/animations.sh (100%) rename desktop/{ => configs/scripts}/scripts/change-colorscheme.sh (98%) rename desktop/{ => configs/scripts}/scripts/choices (100%) rename desktop/{ => configs/scripts}/scripts/elash.sh (100%) rename desktop/{ => configs/scripts}/scripts/firefox_to_workspace.sh (100%) rename desktop/{ => configs/scripts}/scripts/fix.sh (100%) rename desktop/{ => configs/scripts}/scripts/hypr.sh (100%) rename desktop/{ => configs/scripts}/scripts/init.sh (100%) rename desktop/{ => configs/scripts}/scripts/kvm.sh (100%) rename desktop/{ => configs/scripts}/scripts/macro.sh (100%) rename desktop/{ => configs/scripts}/scripts/screenlayout.sh (100%) rename desktop/{ => configs/scripts}/scripts/sfp.sh (100%) create mode 100755 desktop/configs/scripts/scripts/switch.fish rename desktop/{ => configs/scripts}/scripts/swww.sh (51%) create mode 100755 desktop/configs/scripts/scripts/toggle_opacity_alacritty.fish rename desktop/{ => configs/scripts}/scripts/volume_brightness.sh (100%) rename desktop/{ => configs/scripts}/scripts/weechat.sh (100%) rename desktop/{ => configs/scripts}/scripts/wppengine.sh (100%) delete mode 100755 desktop/scripts/autostart.sh delete mode 100755 desktop/scripts/cpu.sh delete mode 100755 desktop/scripts/idle delete mode 100755 desktop/scripts/memory.sh delete mode 100755 desktop/scripts/mouse.sh delete mode 100755 desktop/scripts/mpd.sh delete mode 100755 desktop/scripts/print-fullscreen.sh delete mode 100755 desktop/scripts/print-select.sh delete mode 100755 desktop/scripts/print-tmp.sh delete mode 100755 desktop/scripts/print-window.sh delete mode 100644 desktop/scripts/readme.md delete mode 100755 desktop/scripts/switch.fish delete mode 100755 desktop/scripts/upt.sh delete mode 100755 desktop/scripts/volume.sh delete mode 100755 desktop/scripts/way-print.sh delete mode 100755 desktop/scripts/xfce.sh delete mode 100755 desktop/scripts/xmonad.sh diff --git a/desktop/scripts/animations.sh b/desktop/configs/scripts/scripts/animations.sh similarity index 100% rename from desktop/scripts/animations.sh rename to desktop/configs/scripts/scripts/animations.sh diff --git a/desktop/scripts/change-colorscheme.sh b/desktop/configs/scripts/scripts/change-colorscheme.sh similarity index 98% rename from desktop/scripts/change-colorscheme.sh rename to desktop/configs/scripts/scripts/change-colorscheme.sh index 4f5f67c..8418d49 100755 --- a/desktop/scripts/change-colorscheme.sh +++ b/desktop/configs/scripts/scripts/change-colorscheme.sh @@ -29,7 +29,7 @@ case "$CHOICE" in ~/scripts/swww.sh $EVERFOREST_WIDE_WPP $EVERFOREST_NORMAL_WPP gsettings set org.gnome.desktop.interface gtk-theme Everforest-Dark-BL - gsettings set org.gnome.desktop.interface icon-theme Everforest-Dark + gsettings set org.gnome.desktop.interface icon-theme ln -sf ~/.config/tmux/themes/tmux-everforest.conf ~/.config/tmux/theme.conf tmux source-file ~/.config/tmux/tmux.conf diff --git a/desktop/scripts/choices b/desktop/configs/scripts/scripts/choices similarity index 100% rename from desktop/scripts/choices rename to desktop/configs/scripts/scripts/choices diff --git a/desktop/scripts/elash.sh b/desktop/configs/scripts/scripts/elash.sh similarity index 100% rename from desktop/scripts/elash.sh rename to desktop/configs/scripts/scripts/elash.sh diff --git a/desktop/scripts/firefox_to_workspace.sh b/desktop/configs/scripts/scripts/firefox_to_workspace.sh similarity index 100% rename from desktop/scripts/firefox_to_workspace.sh rename to desktop/configs/scripts/scripts/firefox_to_workspace.sh diff --git a/desktop/scripts/fix.sh b/desktop/configs/scripts/scripts/fix.sh similarity index 100% rename from desktop/scripts/fix.sh rename to desktop/configs/scripts/scripts/fix.sh diff --git a/desktop/scripts/hypr.sh b/desktop/configs/scripts/scripts/hypr.sh similarity index 100% rename from desktop/scripts/hypr.sh rename to desktop/configs/scripts/scripts/hypr.sh diff --git a/desktop/scripts/init.sh b/desktop/configs/scripts/scripts/init.sh similarity index 100% rename from desktop/scripts/init.sh rename to desktop/configs/scripts/scripts/init.sh diff --git a/desktop/scripts/kvm.sh b/desktop/configs/scripts/scripts/kvm.sh similarity index 100% rename from desktop/scripts/kvm.sh rename to desktop/configs/scripts/scripts/kvm.sh diff --git a/desktop/scripts/macro.sh b/desktop/configs/scripts/scripts/macro.sh similarity index 100% rename from desktop/scripts/macro.sh rename to desktop/configs/scripts/scripts/macro.sh diff --git a/desktop/scripts/screenlayout.sh b/desktop/configs/scripts/scripts/screenlayout.sh similarity index 100% rename from desktop/scripts/screenlayout.sh rename to desktop/configs/scripts/scripts/screenlayout.sh diff --git a/desktop/scripts/sfp.sh b/desktop/configs/scripts/scripts/sfp.sh similarity index 100% rename from desktop/scripts/sfp.sh rename to desktop/configs/scripts/scripts/sfp.sh diff --git a/desktop/configs/scripts/scripts/switch.fish b/desktop/configs/scripts/scripts/switch.fish new file mode 100755 index 0000000..b441743 --- /dev/null +++ b/desktop/configs/scripts/scripts/switch.fish @@ -0,0 +1,40 @@ +#!/usr/bin/env fish +set CURRENT_THEME (cat ~/colorscheme) +echo $CURRENT_THEME + +set wpp1_white ~/pics/wallpapers/wh1.png +set wpp2_white ~/pics/wallpapers/wh2.jpg + +set wpp1_solarized ~/pics/wallpapers/b1.png +set wpp2_solarized ~/pics/wallpapers/b2.png + +swaymsg reload + +switch $CURRENT_THEME + case black + echo changing to white ... + gsettings set org.gnome.desktop.interface gtk-theme "Windows-95" + gsettings set org.gnome.desktop.interface icon-theme "nineicons-redux-v0.6" + swaymsg shadows enable + sed -i 's|black.toml|white.toml|' ~/.config/alacritty/alacritty.toml + pkill waybar; waybar -s ~/.config/waybar/style-white.css &> /dev/null & disown + ~/scripts/swww.sh $wpp1_white $wpp2_white + ln -sf ~/.config/tmux/themes/tmux-white.conf ~/.config/tmux/theme.conf + tmux source ~/.config/tmux/tmux.conf + echo white > ~/colorscheme + case white + echo changing to black... + gsettings set org.gnome.desktop.interface gtk-theme "Material-Black-Blueberry-LA" + gsettings set org.gnome.desktop.interface icon-theme "We10X-black-dark" + swaymsg shadows disable + swaymsg client.focused "#ffffff #ffffff #c1c1c1" + swaymsg client.focused_inactive "#c1c1c1 #212121 #cecece" + sed -i 's|white.toml|black.toml|' ~/.config/alacritty/alacritty.toml + pkill waybar; waybar &> /dev/null & disown + ~/scripts/swww.sh $wpp1_solarized $wpp2_solarized + ln -sf ~/.config/tmux/themes/tmux-monochrome.conf ~/.config/tmux/theme.conf + tmux source ~/.config/tmux/tmux.conf + echo black > ~/colorscheme + case '*' + echo mmmm what? +end diff --git a/desktop/scripts/swww.sh b/desktop/configs/scripts/scripts/swww.sh similarity index 51% rename from desktop/scripts/swww.sh rename to desktop/configs/scripts/scripts/swww.sh index 9785849..0be0cf1 100755 --- a/desktop/scripts/swww.sh +++ b/desktop/configs/scripts/scripts/swww.sh @@ -11,26 +11,26 @@ if [[ -z "$1" ]]; then red) FIRST=~/pics/wallpapers/bm5.jpg SECOND=~/pics/wallpapers/bm3.png - ;; + ;; melange) FIRST=~/pics/wallpapers/melange2.png SECOND=~/pics/wallpapers/melange1.jpg - ;; - white) # todo - FIRST=~/pics/wallpapers/sl3.jpg - SECOND=~/pics/wallpapers/sl2.png - ;; - solarized) - FIRST=~/pics/wallpapers/solarized5.jpg - SECOND=~/pics/wallpapers/solarized4.png - ;; - monochrome) - FIRST=~/pics/wallpapers/monochrome-1.png - SECOND=~/pics/wallpapers/monochrome-1.jpg - ;; -forest) - FIRST=~/pics/wallpapers/ef1.jpg - SECOND=~/pics/wallpapers/ef2.jpg + ;; + white) + FIRST=~/pics/wallpapers/wh1.png + SECOND=~/pics/wallpapers/wh2.jpg + ;; + solarized) + FIRST=~/pics/wallpapers/sl6.jpg + SECOND=~/pics/wallpapers/sl7.jpg + ;; + monochrome) + FIRST=~/pics/wallpapers/monochrome-1.png + SECOND=~/pics/wallpapers/monochrome-1.jpg + ;; + forest) + FIRST=~/pics/wallpapers/ef1.jpg + SECOND=~/pics/wallpapers/ef2.jpg esac else FIRST=$1 @@ -43,4 +43,4 @@ sleep 0.3 swww img -o HDMI-A-1 $FIRST swww img -o DP-2 $SECOND -swww img -o DP-3 ~/pics/wallpapers/cottage.jpg +swww img -o DP-3 ~/pics/wallpapers/sl4.jpg diff --git a/desktop/configs/scripts/scripts/toggle_opacity_alacritty.fish b/desktop/configs/scripts/scripts/toggle_opacity_alacritty.fish new file mode 100755 index 0000000..a18427c --- /dev/null +++ b/desktop/configs/scripts/scripts/toggle_opacity_alacritty.fish @@ -0,0 +1,22 @@ +#!/usr/bin/env fish + +# Check if alacritty.toml exists; if not, raise an alert and exit +if not test -f ~/.config/alacritty/alacritty.toml + notify-send "alacritty.toml does not exist" + exit 0 +end + +# Fetch opacity from alacritty.toml +set opacity (awk '$1 == "opacity" && $2 == "=" {print $3; exit}' ~/.config/alacritty/alacritty.toml) + +# Assign toggle opacity value +switch $opacity + case 1 + set toggle_opacity 0.93 + case '*' + set toggle_opacity 1 +end + +# Replace opacity value in alacritty.toml +sed -i -- "s/opacity = $opacity/opacity = $toggle_opacity/" ~/.config/alacritty/alacritty.toml + diff --git a/desktop/scripts/volume_brightness.sh b/desktop/configs/scripts/scripts/volume_brightness.sh similarity index 100% rename from desktop/scripts/volume_brightness.sh rename to desktop/configs/scripts/scripts/volume_brightness.sh diff --git a/desktop/scripts/weechat.sh b/desktop/configs/scripts/scripts/weechat.sh similarity index 100% rename from desktop/scripts/weechat.sh rename to desktop/configs/scripts/scripts/weechat.sh diff --git a/desktop/scripts/wppengine.sh b/desktop/configs/scripts/scripts/wppengine.sh similarity index 100% rename from desktop/scripts/wppengine.sh rename to desktop/configs/scripts/scripts/wppengine.sh diff --git a/desktop/scripts/autostart.sh b/desktop/scripts/autostart.sh deleted file mode 100755 index c7cce2a..0000000 --- a/desktop/scripts/autostart.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -sh ~/scripts/screenlayout.sh - -nitrogen --restore & - -nvidia-settings --load-config-only - -setxkbmap br abnt2 - -xinput --set-prop 'pointer:''Gaming Mouse' 'libinput Accel Profile Enabled' 0, 1 -xinput --set-prop 'pointer:''Gaming Mouse' 'libinput Accel Speed' 0.1 - -#pulseaudio --start - -#picom & -/home/klein/.local/bin/picom-pijulius -b --experimental-backends --animations --animation-for-open-window zoom --vsync & -# /home/klein/.local/bin/picom-jonaburg & - -numlockx on - -mpd & - -dunst & - -lxqt-policykit-agent & - -touch ~/tmp/touchy -rm -rf ~/tmp/* - -#killall pasystray; pasystray & # killlall is needed in case you reset dwm, it will just spawn infinites pasystrays - -/usr/bin/emacs --daemon & - -#/home/lucas/.local/bin/idle & - -#urxvtd --quiet --opendisplay --fork -#xrdb -merge ~/.Xresources - -#otd & - -#discord & # If using regular discord. -#flatpak run com.discordapp.Discord & # If using flatpak - -#steam & - -#nohup xwinwrap -g 1920x1080 -s -b -un -nf -ni -fdt -argb -st -ov -sp -- mpv -wid WID --framedrop=vo --no-audio --really-quiet --panscan="1.0" /home/lucas/wpp\&stuff/wallpapers/Fireworks-Reflections.mp4 -loop 0 & -#nohup xwinwrap -g 1400x900+1920+180 -s -b -un -nf -ni -fdt -argb -st -ov -sp -- mpv -wid WID --framedrop=vo --no-audio --really-quiet --panscan="1.0" /home/lucas/wpp\&stuff/kyoko_animated_wallpaper.mp4 -loop 0 diff --git a/desktop/scripts/cpu.sh b/desktop/scripts/cpu.sh deleted file mode 100755 index afa7c7f..0000000 --- a/desktop/scripts/cpu.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -top -bn2 | grep '%Cpu' | tail -1 | grep -P '(....|...) id,'|awk '{print "" 100-$8 "%"}' diff --git a/desktop/scripts/idle b/desktop/scripts/idle deleted file mode 100755 index 1603b97..0000000 --- a/desktop/scripts/idle +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -exec xautolock -detectsleep -time 10 -locker "/usr/bin/betterlockscreen -l" -notify 30 -notifier "notify-send -u critical -t 10000 -- 'LOCKING screen in 30 seconds" diff --git a/desktop/scripts/memory.sh b/desktop/scripts/memory.sh deleted file mode 100755 index 057b68f..0000000 --- a/desktop/scripts/memory.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - - -# More efficient version of the above. -free -h | while read What TTL Used _; do - if [ "$What" = 'Mem:' ]; then - printf '%s/%s \n' "$Used" "$TTL" - break - fi -done - - diff --git a/desktop/scripts/mouse.sh b/desktop/scripts/mouse.sh deleted file mode 100755 index 11844a9..0000000 --- a/desktop/scripts/mouse.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - - -setxkbmap br abnt2 - -xinput --set-prop 'pointer:''Gaming Mouse' 'libinput Accel Profile Enabled' 0, 1 -xinput --set-prop 'pointer:''Gaming Mouse' 'libinput Accel Speed' 0.1 -# xinput --set-prop 'pointer:''Microsoft Microsoft Basic Optical Mouse v2.0 ' 'libinput Accel Profile Enabled' 0, 1 -# xinput --set-prop 'pointer:''Microsoft Microsoft Basic Optical Mouse v2.0 ' 'libinput Accel Speed' 0.1 diff --git a/desktop/scripts/mpd.sh b/desktop/scripts/mpd.sh deleted file mode 100755 index e54a8b4..0000000 --- a/desktop/scripts/mpd.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -mpt=$(mpc current -f %title%) -mpa=$(mpc current -f %artist%) -icon1=' ' -icon2='' -echo "$mpt" - - diff --git a/desktop/scripts/print-fullscreen.sh b/desktop/scripts/print-fullscreen.sh deleted file mode 100755 index bba867f..0000000 --- a/desktop/scripts/print-fullscreen.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -name="$HOME/pics/screenshots/screenshot-$(date -Iseconds | cut -d '+' -f1).png" -if [[ $XDG_SESSION_TYPE == "x11" ]]; then - maim -u -n -l -c 0.157,0.333,0.466,0.4 $name - xclip -selection clipboard -t image/png $name -fi - -if [[ $XDG_SESSION_TYPE == "wayland" ]]; then - grim $name - $name -fi - diff --git a/desktop/scripts/print-select.sh b/desktop/scripts/print-select.sh deleted file mode 100755 index 822ca68..0000000 --- a/desktop/scripts/print-select.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -name="$HOME/pics/screenshots/screenshot-$(date -Iseconds | cut -d '+' -f1).png" -if [[ $XDG_SESSION_TYPE == "x11" ]]; then - maim -u -s $name - xclip -selection clipboard -t image/png $name -fi - -if [[ $XDG_SESSION_TYPE == "wayland" ]]; then - grim -g "$(slurp)" $name - xclip -selection clipboard -t image/png $name - wl-copy < $name -fi - diff --git a/desktop/scripts/print-tmp.sh b/desktop/scripts/print-tmp.sh deleted file mode 100755 index 2da7d44..0000000 --- a/desktop/scripts/print-tmp.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -tmp="$HOME/tmp/tmp.png" -if [[ $XDG_SESSION_TYPE == "x11" ]]; then - maim -u -s "$tmp" - curl -F'file=@'"${tmp}" https://0x0.st | xclip -sel clip -fi - -if [[ $XDG_SESSION_TYPE == "wayland" ]]; then - grim -g "$(slurp)" $tmp - curl -F'file=@'"${tmp}" -H 'X-Auth: '$(cat ~/.key) https://paste.jabuxas.xyz | wl-copy -fi diff --git a/desktop/scripts/print-window.sh b/desktop/scripts/print-window.sh deleted file mode 100755 index 051e1aa..0000000 --- a/desktop/scripts/print-window.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash -swpy_dir="${XDG_CONFIG_HOME:-$HOME/.config}/swappy" -save_dir="$HOME/pics/screenshots" -save_file="screenshot-$(date -Iseconds | cut -d '+' -f1).png" -temp_screenshot="/tmp/screenshot.png" - -mkdir -p $save_dir -mkdir -p $swpy_dir -echo -e "[Default]\nsave_dir=$save_dir\nsave_filename_format=$save_file" > $swpy_dir/config -if [[ $XDG_SESSION_TYPE == "x11" ]]; then - maim -i $(xdotool getactivewindow) | xclip -sel clip -t image/png -fi -if [[ $XDG_SESSION_TYPE == "wayland" ]]; then - if [[ $XDG_CURRENT_DESKTOP == "Hyprland" ]]; then - window_info=$(hyprctl activewindow) - coordinates=$(echo "$window_info" | grep -oP 'at: \K([0-9]+,[0-9]+)') - size=$(echo "$window_info" | grep -oP 'size: \K([0-9]+,[0-9]+)') - IFS=',' read -r x y <<< "$coordinates" - IFS=',' read -r width height <<< "$size" - grim -g "${x},${y} ${width}x${height}" ~/tmp/jabuxas.png - wl-copy < ~/tmp/jabuxas.png - fi - - if [[ $XDG_CURRENT_DESKTOP == "sway" ]]; then - rm $temp_screenshot - grim -g "$(swaymsg -t get_tree | jq -j '.. | select(.type?) | select(.focused).rect | "\(.x),\(.y) \(.width)x\(.height)"')" $temp_screenshot - wl-copy < ~/tmp/jabuxas.png - swappy -f $temp_screenshot - fi -fi diff --git a/desktop/scripts/readme.md b/desktop/scripts/readme.md deleted file mode 100644 index 3c6aab4..0000000 --- a/desktop/scripts/readme.md +++ /dev/null @@ -1,5 +0,0 @@ -## Dependencies - -for a x11 session, you only need xclip, xdotool and maim - -for wayland session it should work on hyprland and sway diff --git a/desktop/scripts/switch.fish b/desktop/scripts/switch.fish deleted file mode 100755 index bbec4cb..0000000 --- a/desktop/scripts/switch.fish +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env fish -set CURRENT_THEME (cat ~/colorscheme) -echo $CURRENT_THEME - -set wpp1_white ~/pics/wallpapers/sl3.jpg -set wpp2_white ~/pics/wallpapers/sl2.png - -set wpp1_solarized ~/pics/wallpapers/sl6.jpg -set wpp2_solarized ~/pics/wallpapers/sl7.jpg - - -switch $CURRENT_THEME - case solarized - echo changing to white ... - sed -i 's|solarized-dark.toml|white.toml|' ~/.config/alacritty/alacritty.toml - pkill waybar; waybar -s ~/.config/waybar/style-white.css &> /dev/null & disown - ~/scripts/swww.sh $wpp1_white $wpp2_white - echo white > ~/colorscheme - case white - echo changing to solarized ... - sed -i 's|white.toml|solarized-dark.toml|' ~/.config/alacritty/alacritty.toml - pkill waybar; waybar &> /dev/null & disown - ~/scripts/swww.sh $wpp1_solarized $wpp2_solarized - echo solarized > ~/colorscheme - case '*' - echo mmmm what? -end - -swaymsg reload diff --git a/desktop/scripts/upt.sh b/desktop/scripts/upt.sh deleted file mode 100755 index d4c778c..0000000 --- a/desktop/scripts/upt.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - - -upt="$(uptime --pretty | sed -e 's/up //g' -e 's/ days/d/g' -e 's/ day/d/g' -e 's/ hours/h/g' -e 's/ hour/h/g' -e 's/ minutes/m/g' -e 's/, / /g')" -echo -e "$upt " - - diff --git a/desktop/scripts/volume.sh b/desktop/scripts/volume.sh deleted file mode 100755 index 8d5ff8e..0000000 --- a/desktop/scripts/volume.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -vol="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')" -echo "${vol}%" - diff --git a/desktop/scripts/way-print.sh b/desktop/scripts/way-print.sh deleted file mode 100755 index 9b260fd..0000000 --- a/desktop/scripts/way-print.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env sh - -swpy_dir="${XDG_CONFIG_HOME:-$HOME/.config}/swappy" -save_dir="$HOME/pics/screenshots" -save_file="screenshot-$(date -Iseconds | cut -d '+' -f1).png" -temp_screenshot="/tmp/screenshot.png" - -mkdir -p $save_dir -mkdir -p $swpy_dir -echo -e "[Default]\nsave_dir=$save_dir\nsave_filename_format=$save_file" > $swpy_dir/config - -upload () -{ - curl -F'file=@'"${save_dir}/${save_file}" -H 'X-Auth: '$(cat ~/.key) https://paste.jabuxas.xyz | wl-copy -} - -function print_error -{ -cat << "EOF" - ./way-print.sh - ...valid actions are... - p : print all screens - s : snip current screen - m : print focused monitor - t : tmp print - cw: current window -EOF -} - -case $1 in -p) # print all outputs - grim $temp_screenshot && swappy -f $temp_screenshot ;; -s) # drag to manually snip an area / click on a window to print it - grim -g "$(slurp)" $temp_screenshot && swappy -f $temp_screenshot ;; -m) # print focused monitor - grim -o $(swaymsg -t get_workspaces | jq -r '.[] | select(.focused==true).output') $temp_screenshot && swappy -f $temp_screenshot ;; -t) #upload to paste temporarily - grim -g "$(slurp)" $temp_screenshot && swappy -f $temp_screenshot && upload ;; -cw) #current window - ~/.local/bin/print-window.sh ;; -*) # invalid option - print_error ;; -esac - -rm "$temp_screenshot" diff --git a/desktop/scripts/xfce.sh b/desktop/scripts/xfce.sh deleted file mode 100755 index f4fb5f2..0000000 --- a/desktop/scripts/xfce.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -setxkbmap br abnt2 - -xinput --set-prop 'pointer:''Gaming Mouse' 'libinput Accel Profile Enabled' 0, 1 -xinput --set-prop 'pointer:''Gaming Mouse' 'libinput Accel Speed' 0.1 - -#pulseaudio --start - -#picom & - -#numlockx on - -mpd & - -touch ~/tmp/touchy -rm -rf ~/tmp/* - -/usr/bin/emacs --daemon & - -otd & diff --git a/desktop/scripts/xmonad.sh b/desktop/scripts/xmonad.sh deleted file mode 100755 index a76ad09..0000000 --- a/desktop/scripts/xmonad.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash -sh ~/scripts/screenlayout.sh - -nitrogen --restore & - -nvidia-settings --load-config-only - -trayer-srg -l --edge top --align right --SetDockType true --SetPartialStrut true \ - --expand true --width 9 --tint 0xFF181814 --height 27 --transparent false --distance 2 --margin 1 & - -# /usr/bin/gentoo-pipewire-launcher & - -if [ -x /usr/bin/nm-applet ] ; then - nm-applet --sm-disable & -fi - -setxkbmap br abnt2 - -xinput --set-prop 'pointer:''Gaming Mouse' 'libinput Accel Profile Enabled' 0, 1 -xinput --set-prop 'pointer:''Gaming Mouse' 'libinput Accel Speed' 0.1 - -#pulseaudio --start - -#picom & -# /home/klein/.local/bin/picom-pijulius -b --experimental-backends --animations --animation-for-open-window zoom --vsync & -/home/klein/.local/bin/picom-pijulius --experimental-backends --animations --animation-for-open-window zoom --glx-no-stencil --xrender-sync-fence -b & -# /home/klein/.local/bin/picom-jonaburg & - -numlockx on - -mpd & - -dunst & - -lxqt-policykit-agent & - -touch ~/tmp/touchy -rm -rf ~/tmp/* - -#killall pasystray; pasystray & # killlall is needed in case you reset dwm, it will just spawn infinites pasystrays - -/usr/bin/emacs --daemon & - -#/home/lucas/.local/bin/idle & - -#urxvtd --quiet --opendisplay --fork -#xrdb -merge ~/.Xresources - -# otd & - -#discord & # If using regular discord. -#flatpak run com.discordapp.Discord & # If using flatpak - -#steam & - -#nohup xwinwrap -g 1920x1080 -s -b -un -nf -ni -fdt -argb -st -ov -sp -- mpv -wid WID --framedrop=vo --no-audio --really-quiet --panscan="1.0" /home/lucas/wpp\&stuff/wallpapers/Fireworks-Reflections.mp4 -loop 0 & -#nohup xwinwrap -g 1400x900+1920+180 -s -b -un -nf -ni -fdt -argb -st -ov -sp -- mpv -wid WID --framedrop=vo --no-audio --really-quiet --panscan="1.0" /home/lucas/wpp\&stuff/kyoko_animated_wallpaper.mp4 -loop 0