From 37c7eaf334575b251749bff105f4279158fb1c92 Mon Sep 17 00:00:00 2001 From: Raine Date: Fri, 22 Mar 2024 10:04:21 +0100 Subject: [PATCH] feat: stuff --- crates/05-i3/crate.arch.sh | 2 +- crates/05-i3/crate.sh | 1 + crates/05-i3/crate.void.sh | 2 +- crates/05-i3/files/config | 11 ++++++----- crates/05-i3/files/picom.conf | 9 +++++++++ crates/10-zsh/files/.zshrc | 4 +++- scripts/void.d/update-discord.sh | 13 +++++++++++++ 7 files changed, 34 insertions(+), 8 deletions(-) create mode 100644 crates/05-i3/files/picom.conf create mode 100755 scripts/void.d/update-discord.sh diff --git a/crates/05-i3/crate.arch.sh b/crates/05-i3/crate.arch.sh index 5c0684d..41e73a0 100644 --- a/crates/05-i3/crate.arch.sh +++ b/crates/05-i3/crate.arch.sh @@ -1,6 +1,6 @@ #!/bin/sh -pkgs="i3 i3lock i3status libpulse brightnessctl xss-lock dex maim dmenu gnome-keyring feh" +pkgs="i3 i3lock i3status libpulse brightnessctl xss-lock dex maim dmenu gnome-keyring feh picom" super_apply() { pacman -S --needed --noconfirm $pkgs diff --git a/crates/05-i3/crate.sh b/crates/05-i3/crate.sh index 53a3f77..09edde5 100644 --- a/crates/05-i3/crate.sh +++ b/crates/05-i3/crate.sh @@ -8,6 +8,7 @@ apply() { [ -d "$HOME/.config/i3status" ] || mkdir -p $HOME/.config/i3status [ -e "$HOME/.config/i3/config" ] || ln files/config $HOME/.config/i3/config [ -e "$HOME/.config/i3status/config" ] || ln files/status_config $HOME/.config/i3status/config + [ -e "$HOME/.config/picom.conf" ] || ln files/picom.conf $HOME/.config/picom.conf } undo() { diff --git a/crates/05-i3/crate.void.sh b/crates/05-i3/crate.void.sh index d080b85..3f7f59b 100644 --- a/crates/05-i3/crate.void.sh +++ b/crates/05-i3/crate.void.sh @@ -1,6 +1,6 @@ #!/bin/sh -pkgs="i3 i3lock i3status pulseaudio-devel brightnessctl xss-lock dex maim dmenu gnome-keyring feh" +pkgs="i3 i3lock i3status pulseaudio-devel brightnessctl xss-lock dex maim dmenu gnome-keyring feh picom" super_apply() { xbps-install -y $pkgs diff --git a/crates/05-i3/files/config b/crates/05-i3/files/config index 2513d5a..d08481b 100644 --- a/crates/05-i3/files/config +++ b/crates/05-i3/files/config @@ -1,6 +1,7 @@ -###################### +####################### ## Raine's i3 config ## -## Sept 2, 2023 ## +## Mar 22, 2023 ## +## mutation: 1m ## ####################### ## Mostly similar to i3's config yet differs @@ -24,11 +25,11 @@ exec_always --no-startup-id nm-applet exec_always --no-startup-id xss-lock --transfer-sleep-lock -- $screen_lock exec_always --no-startup-id gnome-keyring-daemon --start --components=ssh,secrets,pkcs11 exec_always --no-startup-id feh --bg-fill ~/Pictures/wallpaper.jpg - +exec_always --no-startup-id picom # Gaps & Borders: # --- -gaps inner 20 +gaps inner 10 smart_gaps on default_border pixel 1 @@ -95,7 +96,7 @@ bindsym $mod+d exec --no-startup-id $appmenu bindsym $mod+l exec --no-startup-id $screen_lock # Screenshots -bindsym Print exec $screenshot +bindsym Print exec --no-startup-id $screenshot # Audio bindsym $audio_volume_up exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $meta_refresh_statusbar diff --git a/crates/05-i3/files/picom.conf b/crates/05-i3/files/picom.conf new file mode 100644 index 0000000..5bff83a --- /dev/null +++ b/crates/05-i3/files/picom.conf @@ -0,0 +1,9 @@ +inactive-opacity = 0.75; + +blur: { + method = "box"; + size = 10; + background = false; + background-frame = false; + background-fixed = false; +} diff --git a/crates/10-zsh/files/.zshrc b/crates/10-zsh/files/.zshrc index 59de2d8..c730706 100644 --- a/crates/10-zsh/files/.zshrc +++ b/crates/10-zsh/files/.zshrc @@ -2,7 +2,7 @@ # Raine's .zshrc -if ! [ "$PROFILEINC" = "1" ]; then +if [ "$PROFILEINC" = "1" ]; then . ~/.profile fi @@ -46,6 +46,8 @@ container() { ash } +[ -f "$HOME/.config/i3/shortcuts-i3.sh" ] && . ~/.config/i3/shortcuts-i3.sh + alias q="exit" alias vim="nvim" alias vi="nvim" diff --git a/scripts/void.d/update-discord.sh b/scripts/void.d/update-discord.sh new file mode 100755 index 0000000..5c753c6 --- /dev/null +++ b/scripts/void.d/update-discord.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +echo "Downloading newest package..." +curl -Lo /tmp/discord.deb "https://discord.com/api/download?platform=linux&format=deb" +cd /tmp +echo "Extracting package..." +xdeb discord.deb +echo "Installing package..." +sudo xbps-install -R /tmp/binpkgs discord +rm -rf /tmp/binpkgs +cd -