mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2025-05-22 09:05:50 -07:00
update
This commit is contained in:
parent
fd2195d924
commit
6777e86614
@ -1,11 +1,12 @@
|
||||
{
|
||||
"topics": [
|
||||
"132262 - Mobuseka",
|
||||
"konosuba",
|
||||
"79222 - bunny girl senpai",
|
||||
"oshi no ko",
|
||||
"kill la kill",
|
||||
"lofi",
|
||||
"139520 - eminence in shadow"
|
||||
]
|
||||
"topics": [
|
||||
"132262 - Mobuseka",
|
||||
"konosuba",
|
||||
"79222 - bunny girl senpai",
|
||||
"oshi no ko",
|
||||
"kill la kill",
|
||||
"lofi",
|
||||
"139520 - eminence in shadow",
|
||||
"132 - Monogatari Series"
|
||||
]
|
||||
}
|
||||
|
@ -105,8 +105,10 @@ decoration {
|
||||
rounding_power = 2
|
||||
|
||||
# Change transparency of focused and unfocused windows
|
||||
active_opacity = 0.9
|
||||
inactive_opacity = 0.9
|
||||
# active_opacity = 0.88
|
||||
active_opacity = 1.0
|
||||
# inactive_opacity = 0.88
|
||||
inactive_opacity = 1.0
|
||||
|
||||
shadow {
|
||||
enabled = true
|
||||
@ -256,13 +258,13 @@ windowrule = float, class:discord
|
||||
windowrule = float, class:mpv
|
||||
windowrule = workspace 10 silent, class:discord
|
||||
# windowruv2 = opacity 0.88, class:.* fullscreen:0
|
||||
windowrule = opacity 0.77, class:.* fullscreen:0
|
||||
windowrule = opacity 0.88, class:.* fullscreen:0
|
||||
# windowruv2 = opacity 1, class:.* fullscreen:0
|
||||
windowrule = opacity 1, class:mpv fullscreen:0
|
||||
windowrule = opacity 1, class:anki fullscreen:0
|
||||
windowrule = opacity 1, class:Thorium-browser title:(.*)asbplayer
|
||||
windowrule = tile, class:Thorium-browser title:(.*)asbplayer
|
||||
windowrule = opacity 1, class:remote-viewer
|
||||
windowrule = opacity 1, class:^(remote-viewer)$
|
||||
windowrule = opacity 1, class:com.obsproject.Studio
|
||||
windowrule = opacity 1, title:(.*)(- YouTube(.*))
|
||||
windowrule = opacity 1, class:zen, title:(.*)YouTube TV(.*)
|
||||
|
@ -3,8 +3,9 @@
|
||||
set -Eeuo pipefail
|
||||
|
||||
THEME="$HOME/.config/rofi/launchers/type-3/style-4.rasi"
|
||||
DIR="$HOME/Pictures/wallpapers/wallhaven"
|
||||
SELECTED_WALL=$(cd "$DIR" && for a in *.jpg *.png; do echo -en "$a\0icon\x1f$a\n"; done | rofi -dmenu -theme "$THEME" -p "Select a wallpaper" -theme-str 'configuration {icon-size: 128; dpi: 96;} window {width: 45%; height: 45%;}')
|
||||
|
||||
notify-send -a "rofi-wallpaper" "Wallpaper set to" -i "$DIR/$SELECTED_WALL" "$DIR/$SELECTED_WALL"
|
||||
DIR="$HOME/Pictures/wallpapers/favorites"
|
||||
SELECTED_WALL=$(cd "$DIR" && for a in *.jpg *.png; do echo -en "$a\0icon\x1f$a\n"; done | rofi -dmenu -i -no-custom -theme "$THEME" -p "Select a wallpaper" -theme-str 'configuration {icon-size: 128; dpi: 96;} window {width: 45%; height: 45%;}')
|
||||
PTH="$(printf "%s" "$DIR/$SELECTED_WALL" | tr -s '/')"
|
||||
notify-send -a "rofi-wallpaper" "Wallpaper set to" -i "$PTH" "$PTH"
|
||||
hyprctl hyprpaper reload , "$DIR/$SELECTED_WALL"
|
||||
echo "$PTH" > "$HOME/.wallpaper"
|
||||
|
@ -132,7 +132,9 @@ func downloadRandomWallpaper(wallpaperPath string, r *rand.Rand, topics []string
|
||||
// Select a random image from the results
|
||||
randomIndex := r.Intn(len(wallhavenResp.Data))
|
||||
wallpaperURL := wallhavenResp.Data[randomIndex].Path
|
||||
filename := filepath.Base(wallpaperURL)
|
||||
orig := filepath.Base(wallpaperURL)
|
||||
sanitizedTopic := strings.ReplaceAll(strings.ToLower(displayName), " ", "-")
|
||||
filename := fmt.Sprintf("%s-%s", sanitizedTopic, orig)
|
||||
filepath := filepath.Join(wallpaperPath, filename)
|
||||
|
||||
fmt.Fprintf(os.Stderr, "Downloading: %s\n", filename)
|
||||
|
Loading…
x
Reference in New Issue
Block a user