From f5b7c874281ffdcd4e3780915383773cc84686ca Mon Sep 17 00:00:00 2001 From: askiiart Date: Sun, 2 Jun 2024 13:54:30 -0500 Subject: [PATCH] minor vesktop, vscode, and sway config fixes, fix restore.sh and some perms stuff --- arch-sway.sh | 2 +- commit.sh | 1 + fish/conf.d/aliases.fish | 2 ++ restore.sh | 2 +- sway/config | 4 ++-- sway/config.d/misc | 12 +++++++----- vesktop/settings.json | 2 +- vesktop/settings/settings.json | 27 +++++++++++++++++++-------- vscode/settings.json | 3 +++ 9 files changed, 37 insertions(+), 18 deletions(-) diff --git a/arch-sway.sh b/arch-sway.sh index 9110851..234b031 100755 --- a/arch-sway.sh +++ b/arch-sway.sh @@ -10,7 +10,7 @@ yay -S gnome-keyring lxqt-policykit --noconfirm --needed yay -S waybar rofi swaylock swaybg swaync clipman wdisplays kanshi --noconfirm --needed yay -S pipewire-pulse pavucontrol blueman bluetooth-support qpwgraph --noconfirm --needed yay -S brightnessctl wl-clipboard --noconfirm --needed -yay -S eom nemo gnome-calculator gedit wireguard-tools iperf3 zstd network-manager-applet --noconfirm --needed +yay -S eom nemo gnome-calculator gedit wireguard-tools iperf3 zstd network-manager-applet gparted --noconfirm --needed # for screenshots and color picker yay -S slurp grim zenity imagemagick --noconfirm --needed diff --git a/commit.sh b/commit.sh index e9a31ec..14d1f1f 100755 --- a/commit.sh +++ b/commit.sh @@ -6,3 +6,4 @@ cd $GIT_DIR git add . git commit -m "Automated backup: $(date --rfc-3339=s --utc)" git push +cd - diff --git a/fish/conf.d/aliases.fish b/fish/conf.d/aliases.fish index 8ed72ab..e319bc7 100644 --- a/fish/conf.d/aliases.fish +++ b/fish/conf.d/aliases.fish @@ -53,3 +53,5 @@ else: new_url = f'https://{new_url}' exit(subprocess.getstatusoutput(f'git remote set-url {remote} {new_url}')[0])\"" + +alias tf2='cd ~/.local/share/Steam/steamapps/common/Team\ Fortress\ 2/; ~/.steam/steam/ubuntu12_64/steam-runtime-sniper/run ./tf.sh -- -windowed -w 1280 -h 720 -secure -steam' diff --git a/restore.sh b/restore.sh index 33a3537..5f92a98 100755 --- a/restore.sh +++ b/restore.sh @@ -87,7 +87,7 @@ fi # fontconfig rm -rf $HOME/.config/fontconfig/conf.d/ -mkdir $HOME/.config/fontconfig/conf.d/ +mkdir -p $HOME/.config/fontconfig/conf.d/ cp -r $GIT_DIR/fontconfig/* $HOME/.config/fontconfig/conf.d/ # waybar diff --git a/sway/config b/sway/config index b63d477..354a5b7 100644 --- a/sway/config +++ b/sway/config @@ -31,8 +31,8 @@ set $mode_system System (l) lock, (e) logout, (r) reboot, (s) shutdown mode "$mode_system" { bindsym l exec --no-startup-id $lockwall, mode "default" bindsym e exec --no-startup-id swaymsg exit, mode "default" - bindsym r exec --no-startup-id systemctl reboot, mode "default" - bindsym s exec --no-startup-id systemctl shutdown, mode "default" + bindsym r exec --no-startup-id reboot, mode "default" + bindsym s exec --no-startup-id shutdown now, mode "default" # back to normal: Enter or Escape bindsym Return mode "default" diff --git a/sway/config.d/misc b/sway/config.d/misc index 41cfecf..e3d10e6 100644 --- a/sway/config.d/misc +++ b/sway/config.d/misc @@ -5,7 +5,7 @@ exec wl-paste -t text --watch clipman store --no-persist exec nm-applet # Add screenshot and color picker -bindsym Print exec grim -t png -c +bindsym Print exec "mkdir $HOME/Pictures; export FILENAME=$HOME/Pictures/screenshot_$(date +%F_%H:%M:%S).png; grim -t png -c $FILENAME; wl-copy --type image/png < $FILENAME" bindsym Mod4+Shift+P exec "mkdir $HOME/Pictures; export FILENAME=$HOME/Pictures/screenshot_$(date +%F_%H:%M:%S).png; slurp -d | xargs -I % grim -g % -t png -c $FILENAME; wl-copy --type image/png < $FILENAME" bindsym Mod4+Mod1+Shift+P exec "slurp -p | xargs -I % grim -g % -t png - | convert - -format '%[pixel:p{0,0}]' txt:- | tail --lines 1 | xargs -I % zenity --info --text=% --title='Color picker'" @@ -59,10 +59,10 @@ for_window [title="Authentication Required" app_id="lxqt-policykit-agent"] float bindsym Scroll_Lock exec --no-startup-id $lockwall, mode "default" # Adjust screen brightness with keys -bindsym Mod4+Mod1+Up exec "brightnessctl 10%+" -bindsym Mod4+Mod1+Down exec "brightnessctl 10%-" -bindsym Mod4+Mod1+Shift+Up exec "brightnessctl 1&+" -bindsym Mod4+Mod1+Shift+Down exec "brightnessctl 1%-" +bindsym Mod4+Mod1+Up exec "brightnessctl set 10%+" +bindsym Mod4+Mod1+Down exec "brightnessctl set 10%-" +bindsym Mod4+Mod1+Shift+Up exec "brightnessctl set 1%+" +bindsym Mod4+Mod1+Shift+Down exec "brightnessctl set 1%-" # Adjust volume with keys bindsym XF86AudioMute exec "pactl set-sink-mute @DEFAULT_SINK@ toggle" @@ -73,3 +73,5 @@ bindsym Mod4+Mod1+Left exec "pactl set-sink-volume @DEFAULT_SINK@ -2%" # pipewire exec "command_exists() { type '$1' &>/dev/null; }; if command_exists 'xbps-install'; then pipewire; fi" + +exec "kanshi" diff --git a/vesktop/settings.json b/vesktop/settings.json index a40ba47..7869c1f 100644 --- a/vesktop/settings.json +++ b/vesktop/settings.json @@ -2,6 +2,6 @@ "minimizeToTray": "on", "discordBranch": "stable", "arRPC": "on", - "splashColor": "rgb(219, 222, 225)", + "splashColor": "oklab(0.899401 -0.00192499 -0.00481987)", "splashBackground": "rgb(0, 7, 32)" } \ No newline at end of file diff --git a/vesktop/settings/settings.json b/vesktop/settings/settings.json index cef40c6..ee7a8df 100644 --- a/vesktop/settings/settings.json +++ b/vesktop/settings/settings.json @@ -331,10 +331,6 @@ "OpenInApp": { "enabled": false }, - "Party mode 🎉": { - "enabled": false, - "superIntensePartyMode": 0 - }, "PermissionFreeWill": { "enabled": true, "lockout": true, @@ -442,9 +438,6 @@ "mode": "user-nick", "inReplies": false }, - "ShowTimeouts": { - "enabled": true - }, "SilentMessageToggle": { "enabled": false }, @@ -594,6 +587,24 @@ }, "UnlockedAvatarZoom": { "enabled": false + }, + "ShowHiddenThings": { + "enabled": true, + "showTimeouts": true, + "showInvitesPaused": true + }, + "BetterSessions": { + "enabled": false + }, + "ImplicitRelationships": { + "enabled": false + }, + "StreamerModeOnStream": { + "enabled": false + }, + "PartyMode": { + "enabled": false, + "superIntensePartyMode": 0 } }, "notifications": { @@ -606,6 +617,6 @@ "authenticated": true, "url": "https://api.vencord.dev/", "settingsSync": true, - "settingsSyncVersion": 1713151376792 + "settingsSyncVersion": 1716756452409 } } \ No newline at end of file diff --git a/vscode/settings.json b/vscode/settings.json index 13236df..524a217 100644 --- a/vscode/settings.json +++ b/vscode/settings.json @@ -96,5 +96,8 @@ }, "[css]": { "editor.defaultFormatter": "vscode.css-language-features" + }, + "[json]": { + "editor.defaultFormatter": "vscode.json-language-features" } } \ No newline at end of file