mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2025-12-13 22:48:01 -08:00
Compare commits
5 Commits
9db0bb6e4b
...
6777e86614
| Author | SHA1 | Date | |
|---|---|---|---|
|
6777e86614
|
|||
|
fd2195d924
|
|||
|
33f10999b9
|
|||
|
6003620db9
|
|||
|
8df48aec3a
|
12
.config/change-wallpaper/config.json
Normal file
12
.config/change-wallpaper/config.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"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(.*)
|
||||
|
||||
@@ -91,6 +91,8 @@ bindl = , XF86AudioPrev, exec, mpc prev
|
||||
|
||||
# rofi
|
||||
bind = $mainMod SHIFT, v, exec, uwsm app -sb -- rofi-rbw
|
||||
bind = $mainMod, w, exec, rofi -show window -theme $HOME/.config/rofi/launchers/type-2/style-2.rasi -dpi 96 -theme-str 'window {width: 35%;}'
|
||||
bind = $mainMod SHIFT, w, exec, $HOME/.config/rofi/scripts/rofi-wallpaper.sh
|
||||
|
||||
# ncmcppp
|
||||
bind = $mainMod, n, exec, uwsm app -sb -- ghostty --command=/usr/bin/ncmpcpp
|
||||
|
||||
54
.config/rofi-open/config.json
Normal file
54
.config/rofi-open/config.json
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"browser": "zen-browser",
|
||||
"default_open_type": "tab",
|
||||
"options": [
|
||||
"Anilist - https://anilist.co/home",
|
||||
"Authentik - https://auth.suda.codes",
|
||||
"Capital One - https://myaccounts.capitalone.com/accountSummary",
|
||||
"Chase Bank - https://secure03ea.chase.com/",
|
||||
"ChatGPT - https://chat.openai.com/chat",
|
||||
"Cloudflare - https://dash.cloudflare.com/",
|
||||
"CoinMarketCap - https://coinmarketcap.com/",
|
||||
"Deemix - http://pve-main:3358",
|
||||
"F1TV - https://f1tv.suda.codes",
|
||||
"Fidelity - https://login.fidelity.com/",
|
||||
"Gitea - https://gitea.suda.codes",
|
||||
"Github - https://github.com",
|
||||
"Ghostfolio - http://pve-main:3334",
|
||||
"Grafana - http://pve-main:3000",
|
||||
"Immich - https://immich.suda.codes",
|
||||
"Jellyseerr - https://jellyseerr.suda.codes",
|
||||
"Jellyfin - https://jellyfin.suda.codes",
|
||||
"Jellyfin (YouTube) - http://pve-main:8097",
|
||||
"Jellyfin (Vue) - http://pve-main:8098",
|
||||
"Karakeep - https://karakeep.suda.codes",
|
||||
"Komga - http://oracle-vm:3332",
|
||||
"Lidarr - http://pve-main:3357",
|
||||
"MeTube - https://metube.suda.codes",
|
||||
"Navidrome - https://navidrome.suda.codes",
|
||||
"Nzbhydra - https://nzbhydra.suda.codes",
|
||||
"OpenBooks - https://openbooks.suda.codes",
|
||||
"Pihole - https://pihole.suda.codes/admin",
|
||||
"Pihole2 - https://pihole2.suda.codes/admin",
|
||||
"Proxmox - https://thebox.unicorn-ilish.ts.net",
|
||||
"qBittorrent - https://qbit.suda.codes",
|
||||
"Paperless - https://paperless.suda.codes",
|
||||
"Prometheus - http://prometheus:9090",
|
||||
"Radarr - https://radarr.suda.codes",
|
||||
"Reddit (Anime) - https://www.reddit.com/r/anime/",
|
||||
"Reddit (Selfhosted) - https://www.reddit.com/r/selfhosted/",
|
||||
"Sabnzbd - https://sabnzbd.suda.codes",
|
||||
"Sonarr - https://sonarr.suda.codes",
|
||||
"Sonarr Anime - http://pve-main:6969",
|
||||
"Sudacode - https://sudacode.com",
|
||||
"Tailscale - https://login.tailscale.com/admin/machines",
|
||||
"Tranga - http://pve-main:9555",
|
||||
"Truenas - https://truenas.unicorn-ilish.ts.net",
|
||||
"Tdarr - https://tdarr.suda.codes",
|
||||
"Umami - https://umami.sudacode.com",
|
||||
"Vaultwarden - https://vault.suda.codes",
|
||||
"Wallabag - https://wallabag.suda.codes",
|
||||
"Youtube - https://youtube.com",
|
||||
"Homepage - https://suda.codes"
|
||||
]
|
||||
}
|
||||
11
.config/rofi/scripts/rofi-wallpaper.sh
Executable file
11
.config/rofi/scripts/rofi-wallpaper.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -Eeuo pipefail
|
||||
|
||||
THEME="$HOME/.config/rofi/launchers/type-3/style-4.rasi"
|
||||
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"
|
||||
@@ -5,7 +5,7 @@
|
||||
"cssPriority": "user",
|
||||
|
||||
"control-center-width": 420,
|
||||
"control-center-height": 860,
|
||||
"control-center-height": 1111,
|
||||
"control-center-margin-top": 0,
|
||||
"control-center-margin-bottom": 2,
|
||||
"control-center-margin-right": 0,
|
||||
@@ -66,18 +66,6 @@
|
||||
"label": {
|
||||
"max-lines": 1,
|
||||
"text": ""
|
||||
},
|
||||
"buttons-grid": {
|
||||
"actions": [
|
||||
{
|
||||
"label": "",
|
||||
"command": "~/.config/rofi/scripts/rofi-wifi-menu.sh"
|
||||
},
|
||||
{
|
||||
"label": "",
|
||||
"command": "~/.config/rofi/scripts/rofi-bluetooth.sh"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
* {
|
||||
all: unset;
|
||||
font-size: 14px;
|
||||
font-family:
|
||||
"JetBrainsMono Nerd Font", "JetBrainsMono Nerd Font Mono",
|
||||
"Fira Code Nerd Font", "monospace";
|
||||
font-family: "Ubuntu Nerd Font";
|
||||
transition: 200ms;
|
||||
}
|
||||
|
||||
@@ -26,9 +24,11 @@ slider {
|
||||
box-shadow:
|
||||
0 0 8px 0 rgba(0, 0, 0, 0.8),
|
||||
inset 0 0 0 1px #363a4f;
|
||||
background-color: rgba(36, 39, 58, 0.88);
|
||||
border: 1px solid #c6a0f6;
|
||||
border-radius: 12.6px;
|
||||
margin: 18px;
|
||||
background-color: #24273a;
|
||||
margin: 10px;
|
||||
background-color: rgba(36, 39, 58, 0.88);
|
||||
color: #cad3f5;
|
||||
padding: 0;
|
||||
}
|
||||
@@ -102,7 +102,8 @@ slider {
|
||||
border-radius: 7px;
|
||||
color: #cad3f5;
|
||||
background-color: #363a4f;
|
||||
box-shadow: inset 0 0 0 1px #494d64;
|
||||
background-color: rgba(36, 39, 58, 0.88);
|
||||
border: 1px solid #c6a0f6;
|
||||
margin: 7px;
|
||||
}
|
||||
|
||||
@@ -135,7 +136,8 @@ slider {
|
||||
.notification-background
|
||||
.close-button {
|
||||
margin: 7px;
|
||||
padding: 2px;
|
||||
background-color: rgba(54, 58, 79, 0.88);
|
||||
border: 1px solid #c6a0f6;
|
||||
border-radius: 6.3px;
|
||||
color: #24273a;
|
||||
background-color: #ed8796;
|
||||
@@ -162,8 +164,9 @@ slider {
|
||||
0 0 8px 0 rgba(0, 0, 0, 0.8),
|
||||
inset 0 0 0 1px #363a4f;
|
||||
border-radius: 12.6px;
|
||||
margin: 18px;
|
||||
background-color: #24273a;
|
||||
border: 1px solid #c6a0f6;
|
||||
margin: 10px;
|
||||
background-color: rgba(36, 39, 58, 0.88);
|
||||
color: #cad3f5;
|
||||
padding: 14px;
|
||||
}
|
||||
@@ -196,7 +199,7 @@ slider {
|
||||
.control-center .notification-row .notification-background {
|
||||
border-radius: 7px;
|
||||
color: #cad3f5;
|
||||
background-color: #363a4f;
|
||||
background-color: rgba(54, 58, 79, 0.88);
|
||||
box-shadow: inset 0 0 0 1px #494d64;
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
@@ -25,13 +25,7 @@ type Config struct {
|
||||
}
|
||||
|
||||
var defaultTopics = []string{
|
||||
"132262 - Mobuseka",
|
||||
"konosuba",
|
||||
"bunny girl senpai",
|
||||
"oshi no ko",
|
||||
"kill la kill",
|
||||
"lofi",
|
||||
"eminence in shadow",
|
||||
}
|
||||
|
||||
func loadConfig() []string {
|
||||
@@ -138,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)
|
||||
|
||||
@@ -3,7 +3,6 @@ package main
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
@@ -22,7 +21,7 @@ func loadConfig() (*Config, error) {
|
||||
return nil, err
|
||||
}
|
||||
path := filepath.Join(home, ".config", "rofi-open", "config.json")
|
||||
data, err := ioutil.ReadFile(path)
|
||||
data, err := os.ReadFile(path)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -37,53 +36,6 @@ var (
|
||||
BROWSER = "zen-browser"
|
||||
OPEN_TYPES = []string{"window", "tab"}
|
||||
OPTIONS = []string{
|
||||
"Anilist - https://anilist.co/home",
|
||||
"Authentik - https://auth.suda.codes",
|
||||
"Capital One - https://myaccounts.capitalone.com/accountSummary",
|
||||
"Chase Bank - https://secure03ea.chase.com/",
|
||||
"ChatGPT - https://chat.openai.com/chat",
|
||||
"Cloudflare - https://dash.cloudflare.com/",
|
||||
"CoinMarketCap - https://coinmarketcap.com/",
|
||||
"Deemix - http://pve-main:3358",
|
||||
"F1TV - https://f1tv.suda.codes",
|
||||
"Fidelity - https://login.fidelity.com/",
|
||||
"Gitea - https://gitea.suda.codes",
|
||||
"Github - https://github.com",
|
||||
"Ghostfolio - http://pve-main:3334",
|
||||
"Grafana - http://pve-main:3000",
|
||||
"Homepage - https://suda.codes",
|
||||
"Immich - https://immich.suda.codes",
|
||||
"Jellyseerr - https://jellyseerr.suda.codes",
|
||||
"Jellyfin - https://jellyfin.suda.codes",
|
||||
"Jellyfin (YouTube) - http://pve-main:8097",
|
||||
"Jellyfin (Vue) - http://pve-main:8098",
|
||||
"Karakeep - https://karakeep.suda.codes",
|
||||
"Komga - http://oracle-vm:3332",
|
||||
"Lidarr - http://pve-main:3357",
|
||||
"MeTube - https://metube.suda.codes",
|
||||
"Navidrome - https://navidrome.suda.codes",
|
||||
"Nzbhydra - https://nzbhydra.suda.codes",
|
||||
"OpenBooks - https://openbooks.suda.codes",
|
||||
"Pihole - https://pihole.suda.codes/admin",
|
||||
"Pihole2 - https://pihole2.suda.codes/admin",
|
||||
"Proxmox - https://thebox.unicorn-ilish.ts.net",
|
||||
"qBittorrent - https://qbit.suda.codes",
|
||||
"Paperless - https://paperless.suda.codes",
|
||||
"Prometheus - http://prometheus:9090",
|
||||
"Radarr - https://radarr.suda.codes",
|
||||
"Reddit (Anime) - https://www.reddit.com/r/anime/",
|
||||
"Reddit (Selfhosted) - https://www.reddit.com/r/selfhosted/",
|
||||
"Sabnzbd - https://sabnzbd.suda.codes",
|
||||
"Sonarr - https://sonarr.suda.codes",
|
||||
"Sonarr Anime - http://pve-main:6969",
|
||||
"Sudacode - https://sudacode.com",
|
||||
"Tailscale - https://login.tailscale.com/admin/machines",
|
||||
"Tranga - http://pve-main:9555",
|
||||
"Truenas - https://truenas.unicorn-ilish.ts.net",
|
||||
"Tdarr - https://tdarr.suda.codes",
|
||||
"Umami - https://umami.sudacode.com",
|
||||
"Vaultwarden - https://vault.suda.codes",
|
||||
"Wallabag - https://wallabag.suda.codes",
|
||||
"Youtube - https://youtube.com",
|
||||
}
|
||||
)
|
||||
@@ -96,6 +48,16 @@ func main() {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
// Override BROWSER if set in config
|
||||
if cfg.Browser != "" {
|
||||
BROWSER = cfg.Browser
|
||||
}
|
||||
|
||||
// Override OPTIONS if set in config
|
||||
if len(cfg.Options) > 0 {
|
||||
OPTIONS = cfg.Options
|
||||
}
|
||||
|
||||
var openType string
|
||||
cliArgProvided := len(os.Args) >= 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user