dev: automated commit - 2025-10-01 20:05:45
This commit is contained in:
parent
8b08b8eccb
commit
c011519bb0
5 changed files with 33 additions and 42 deletions
|
|
@ -1,7 +1,7 @@
|
|||
[Settings]
|
||||
gtk-theme-name=rose-pine-gtk-theme-unstable-latest-Dark
|
||||
gtk-icon-theme-name=Papirus
|
||||
gtk-font-name=SF Pro 13
|
||||
gtk-font-name=JetBrainsMono Nerd Font Propo 12
|
||||
gtk-cursor-theme-name=Bibata-Original-Classic
|
||||
gtk-cursor-theme-size=24
|
||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
# Font settings
|
||||
font_family JetBrains Mono
|
||||
# font_family Fira Code
|
||||
# font_family Iosevka\ Nerd\ Font
|
||||
# font_family MonoLisa
|
||||
# font_family Proxima\ Nova
|
||||
# font_family Source\ Code\ Pro
|
||||
font_family JetBrainsMono Nerd Font
|
||||
|
||||
font_size 12.0
|
||||
bold_font auto
|
||||
italic_font auto
|
||||
|
|
|
|||
|
|
@ -1,39 +1,28 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Kill any existing swaybg or feh instances
|
||||
pkill swaybg
|
||||
pkill feh
|
||||
# Initialize swww daemon if not running
|
||||
if ! pgrep -x "swww-daemon" >/dev/null; then
|
||||
swww-daemon &
|
||||
sleep 1
|
||||
fi
|
||||
|
||||
# Function to set wallpaper using swaybg on Sway
|
||||
set_wallpaper_sway() {
|
||||
if [ "$(hostname)" == "main" ]; then
|
||||
swaymsg -t get_outputs -r | jq -r ".[].name" | parallel 'swaybg -o {} -i $(find ~/Pictures/* -type f | shuf -n 1) &'
|
||||
elif [ "$(hostname)" == "fw" ]; then
|
||||
swaybg -m fill -i "$HOME/Pictures/hwtioswoamne1.jpeg"
|
||||
fi
|
||||
}
|
||||
|
||||
# Function to set wallpaper using swaybg on Hyprland
|
||||
set_wallpaper_hyprland() {
|
||||
hyprctl monitors -j | jq -r ".[].name" | parallel 'swaybg -o {} -i $(find ~/Pictures/* -type f | shuf -n 1) &'
|
||||
}
|
||||
|
||||
# Function to set wallpaper using feh on i3
|
||||
set_wallpaper_i3() {
|
||||
# Count number of connected monitors
|
||||
monitor_count=$(xrandr --query | grep " connected" | wc -l)
|
||||
|
||||
# Get random wallpapers equal to monitor count
|
||||
readarray -t wallpapers < <(find ~/Pictures/* -type f | shuf -n "$monitor_count")
|
||||
|
||||
# Construct the feh command with multiple --bg-fill arguments
|
||||
cmd="feh"
|
||||
for wallpaper in "${wallpapers[@]}"; do
|
||||
cmd+=" --bg-fill '$wallpaper'"
|
||||
# Set wallpaper based on hostname
|
||||
case "$(hostname)" in
|
||||
"main")
|
||||
# Get all outputs and set random wallpapers with transitions
|
||||
swaymsg -t get_outputs -r | jq -r ".[].name" | while read -r output; do
|
||||
random_wallpaper=$(find ~/Pictures/* -type f | shuf -n 1)
|
||||
swww img "$random_wallpaper" --outputs "$output" --transition-type center --transition-step 120 --transition-fps 144 &
|
||||
done
|
||||
;;
|
||||
"fw")
|
||||
# Set specific wallpaper for fw host
|
||||
swww img "$HOME/Pictures/hwtioswoamne1.jpeg" --transition-type center --transition-step 120 --transition-fps 144
|
||||
;;
|
||||
*)
|
||||
echo "Unknown hostname: $(hostname)"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# Execute the command
|
||||
eval "$cmd"
|
||||
}
|
||||
|
||||
set_wallpaper_sway
|
||||
wait
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
# vim: ft=swayconfig
|
||||
# System Services
|
||||
|
||||
|
||||
|
||||
exec {
|
||||
ghostty --gtk-single-instance=true --quit-after-last-window-closed=false --initial-window=false
|
||||
$(nix-locate -w polkit-gnome-authentication-agent-1 | awk '{print $NF}')
|
||||
blueman-applet
|
||||
nm-applet
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
# vim: ft=swayconfig
|
||||
set {
|
||||
$mod Mod4
|
||||
$term kitty
|
||||
# $term kitty
|
||||
$term ghostty --gtk-single-instance=true
|
||||
# --quit-after-last-window-closed=false --initial-window=false
|
||||
$menu fuzzel
|
||||
$polkit polkit-gnome-authentication-agent-1
|
||||
$left h
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue