Merge branch 'master' of github.com:ksyasuda/dotfiles

This commit is contained in:
kyasuda
2025-07-30 16:11:20 -07:00
16 changed files with 704 additions and 44 deletions

View File

@@ -1,12 +0,0 @@
{
"topics": [
"132262 - Mobuseka",
"konosuba",
"79222 - bunny girl senpai",
"oshi no ko",
"kill la kill",
"lofi",
"139520 - eminence in shadow",
"132 - Monogatari Series"
]
}

View File

@@ -16,3 +16,4 @@ copy-on-select = clipboard
app-notifications = no-clipboard-copy
keybind = all:ctrl+enter=unbind
keybind = all:ctrl+grave_accent=toggle_quick_terminal
shell-integration = zsh

View File

@@ -223,7 +223,7 @@ device {
}
render {
explicit_sync = true
# explicit_sync = true
}
misc {
@@ -256,7 +256,9 @@ misc {
# windowrulev2 = float, class:com.mitchellh.ghostty
windowrule = float, class:discord
windowrule = float, class:mpv
windowrule = float, class:steam
windowrule = workspace 10 silent, class:discord
windowrule = workspace 9 silent, class:steam
# windowruv2 = opacity 0.88, class:.* fullscreen:0
windowrule = opacity 0.88, class:.* fullscreen:0
# windowruv2 = opacity 1, class:.* fullscreen:0
@@ -269,6 +271,8 @@ windowrule = opacity 1, class:com.obsproject.Studio
windowrule = opacity 1, title:(.*)(- YouTube(.*))
windowrule = opacity 1, class:zen, title:(.*)YouTube TV(.*)
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$

View File

@@ -1,6 +1,6 @@
# Set programs that you use
$terminal = FONTCONFIG_FILE=/home/sudacode/.config/ghostty/ghostty-fonts.conf uwsm app -sa -- ghostty
$fileManager = uwsm app -sa -- dolphin
$fileManager = uwsm app -sa -- thunar
# $menu = rofi -show drun
# https://github.com/Vladimir-csp/uwsm#2-service-startup-notification-and-vars-set-by-compositor
# $menu = rofi -show drun -run-command "uwsm app -- {cmd}"
@@ -106,9 +106,9 @@ bind = SUPER, m, exec, ~/.local/bin/mpv-add.sh
bind = SUPER SHIFT, s, exec, slurp | grim -g - - | wl-copy
bind = ,code:107, exec, ~/.local/bin/screenshot
bind = SUPER,code:107, exec, flameshot screen
bind = SUPER SHIFT, o, exec, ~/.local/bin/ocr.sh
bind = $mainMod, o, exec, ~/.local/bin/ocr.sh
bind = $mainMod SHIFT, o, exec, ~/.local/bin/rofi-open tab
bind = SUPER, o, exec, ~/.local/bin/ocr.sh
bind = $mainMod, o, exec, ~/.local/bin/rofi-open tab
bind = $mainMod SHIFT, o, exec, ~/.local/bin/rofi-open window
# change wallpaper
bind = $mainMod CTRL, n, exec, ~/.local/bin/change-wallpaper
@@ -124,3 +124,5 @@ bind = CTRL ALT, F, exec, ~/.local/bin/favorite-wallpaper
bind = $mainMod, z, exec, uwsm app -sb -- zen-browser
bind = $mainMod SHIFT, s, exec , rofi -show ssh -theme "$HOME/.config/rofi/launchers/type-2/style-2.rasi" -terminal -theme-str 'window{width: 25%;} listview {columns: 1; lines: 10;}' ghostty -ssh-command "ghostty --initial-command='TERM=kitty ssh {host}'"

View File

@@ -0,0 +1,112 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"os": "#ACB0BE",
"closer": "p:os",
"pink": "#F5BDE6",
"lavender": "#B7BDF8",
"blue": "#8AADF4"
},
"blocks": [
{
"type": "rprompt",
"alignment": "right",
"segments": [
{
"type": "command",
"style": "plain",
"foreground": "p:os",
"properties": {
"shell": "bash",
"command": "ip -4 -o addr show dev tailscale0 up 2>/dev/null | awk '{print $4}' | cut -d/ -f1"
}
}
]
},
{
"alignment": "left",
"segments": [
{
"foreground": "p:os",
"style": "plain",
"template": " ",
"type": "os"
},
{
"foreground": "p:blue",
"style": "plain",
"template": "{{ .UserName }}@{{ .HostName }} ",
"type": "session"
},
{
"foreground": "p:pink",
"properties": {
"folder_icon": "..\ue5fe..",
"home_icon": "~",
"style": "agnoster_full"
},
"style": "plain",
"template": "{{ .Path }}",
"type": "path"
},
{
"properties": {
"fetch_status": true,
"fetch_upstream_icon": true
},
"foreground_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#EED49F{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#EE99A0{{ end }}",
"{{ if gt .Ahead 0 }}#C6A0F6{{ end }}",
"{{ if gt .Behind 0 }}#C6A0F6{{ end }}"
],
"style": "powerline",
"type": "git"
},
{
"type": "python",
"style": "powerline",
"foreground": "#a6da95",
"display_default": false,
"display_mode": "environment",
"fetch_version": false,
"fetch_virtual_env": true,
"default_venv_names": ["venv", "env"],
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}"
},
{
"type": "status",
"style": "powerline",
"foreground": "p:pink",
"properties": {
"always_enabled": false
}
}
],
"type": "prompt"
}
],
"tooltips": [
{
"type": "git",
"tips": ["git", "g"],
"style": "diamond",
"foreground": "#a6da95",
"background": "#363a4f",
"leading_diamond": "",
"trailing_diamond": "",
"template": "{{ .HEAD }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}",
"properties": {
"fetch_status": true,
"fetch_upstream_icon": true
}
}
],
"final_space": true,
"version": 3,
"transient_prompt": {
"background": "transparent",
"foreground": "#ACB0BE",
"template": "{{ .Shell }}> "
}
}

View File

@@ -0,0 +1,111 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"os": "#ACB0BE",
"closer": "p:os",
"pink": "#F5BDE6",
"lavender": "#B7BDF8",
"blue": "#8AADF4"
},
"blocks": [
{
"type": "rprompt",
"alignment": "right",
"segments": [
{
"type": "command",
"style": "plain",
"foreground": "p:os",
"properties": {
"shell": "bash",
"command": "ip -4 -o addr show dev tailscale0 up 2>/dev/null | awk '{print $4}' | cut -d/ -f1"
}
}
]
},
{
"alignment": "left",
"segments": [
{
"foreground": "p:os",
"style": "plain",
"type": "os"
},
{
"foreground": "p:blue",
"style": "plain",
"template": "{{ .UserName }}@{{ .HostName }} ",
"type": "session"
},
{
"foreground": "p:pink",
"properties": {
"folder_icon": "..\ue5fe..",
"home_icon": "~",
"style": "agnoster_full"
},
"style": "plain",
"template": "{{ .Path }}",
"type": "path"
},
{
"properties": {
"fetch_status": true,
"fetch_upstream_icon": true
},
"foreground_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#EED49F{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#EE99A0{{ end }}",
"{{ if gt .Ahead 0 }}#C6A0F6{{ end }}",
"{{ if gt .Behind 0 }}#C6A0F6{{ end }}"
],
"style": "powerline",
"type": "git"
},
{
"type": "python",
"style": "powerline",
"foreground": "#a6da95",
"display_default": false,
"display_mode": "environment",
"fetch_version": false,
"fetch_virtual_env": true,
"default_venv_names": ["venv", "env"],
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}"
},
{
"type": "status",
"style": "powerline",
"foreground": "p:pink",
"properties": {
"always_enabled": false
}
}
],
"type": "prompt"
}
],
"tooltips": [
{
"type": "git",
"tips": ["git", "g"],
"style": "diamond",
"foreground": "#a6da95",
"background": "#363a4f",
"leading_diamond": "",
"trailing_diamond": "",
"template": "{{ .HEAD }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}",
"properties": {
"fetch_status": true,
"fetch_upstream_icon": true
}
}
],
"final_space": true,
"version": 3,
"transient_prompt": {
"background": "transparent",
"foreground": "#ACB0BE",
"template": "{{ .Shell }}> "
}
}

235
.config/rmpc/config.ron Normal file
View File

@@ -0,0 +1,235 @@
#![enable(implicit_some)]
#![enable(unwrap_newtypes)]
#![enable(unwrap_variant_newtypes)]
(
address: "127.0.0.1:6600",
password: None,
theme: None,
cache_dir: "/tmp/rmpc",
on_song_change: ["songinfo"],
volume_step: 5,
max_fps: 144,
scrolloff: 0,
wrap_navigation: false,
enable_mouse: true,
enable_config_hot_reload: true,
status_update_interval_ms: 1000,
rewind_to_start_sec: None,
reflect_changes_to_playlist: false,
select_current_song_on_change: false,
browser_song_sort: [Disc, Track, Artist, Title],
directories_sort: SortFormat(group_by_type: true, reverse: false),
keybinds: (
global: {
":": CommandMode,
",": VolumeDown,
"s": Stop,
".": VolumeUp,
"<Tab>": NextTab,
"<S-Tab>": PreviousTab,
"1": SwitchToTab("Queue"),
"2": SwitchToTab("Directories"),
"3": SwitchToTab("Artists"),
"4": SwitchToTab("Album Artists"),
"5": SwitchToTab("Albums"),
"6": SwitchToTab("Playlists"),
"7": SwitchToTab("Search"),
"q": Quit,
">": NextTrack,
"p": TogglePause,
"<": PreviousTrack,
"f": SeekForward,
"z": ToggleRepeat,
"x": ToggleRandom,
"c": ToggleConsume,
"v": ToggleSingle,
"b": SeekBack,
"?": ShowHelp,
"u": Update,
"U": Rescan,
"I": ShowCurrentSongInfo,
"O": ShowOutputs,
"P": ShowDecoders,
"R": AddRandom,
},
navigation: {
"k": Up,
"j": Down,
"h": Left,
"l": Right,
"<Up>": Up,
"<Down>": Down,
"<Left>": Left,
"<Right>": Right,
"<C-k>": PaneUp,
"<C-j>": PaneDown,
"<C-h>": PaneLeft,
"<C-l>": PaneRight,
"<C-u>": UpHalf,
"N": PreviousResult,
"a": Add,
"A": AddAll,
"r": Rename,
"n": NextResult,
"g": Top,
"<Space>": Select,
"<C-Space>": InvertSelection,
"G": Bottom,
"<CR>": Confirm,
"i": FocusInput,
"J": MoveDown,
"<C-d>": DownHalf,
"/": EnterSearch,
"<C-c>": Close,
"<Esc>": Close,
"K": MoveUp,
"D": Delete,
"B": ShowInfo,
},
queue: {
"D": DeleteAll,
"<CR>": Play,
"<C-s>": Save,
"a": AddToPlaylist,
"d": Delete,
"C": JumpToCurrent,
"X": Shuffle,
},
),
search: (
case_sensitive: false,
mode: Contains,
tags: [
(value: "any", label: "Any Tag"),
(value: "artist", label: "Artist"),
(value: "album", label: "Album"),
(value: "albumartist", label: "Album Artist"),
(value: "title", label: "Title"),
(value: "filename", label: "Filename"),
(value: "genre", label: "Genre"),
],
),
artists: (
album_display_mode: SplitByDate,
album_sort_by: Date,
),
default_album_art_path: None,
draw_borders: false,
show_song_table_header: false,
symbols: (song: "🎵", dir: "📁", playlist: "🎼", marker: "\u{e0b0}"),
layout: Split(
direction: Vertical,
panes: [
(
pane: Pane(Header),
size: "1",
),
(
pane: Pane(TabContent),
size: "100%",
),
(
pane: Pane(ProgressBar),
size: "1",
),
],
),
progress_bar: (
symbols: ["", "", "⭘", " ", " "],
track_style: (bg: "#1e2030"),
elapsed_style: (fg: "#c6a0f6", bg: "#1e2030"),
thumb_style: (fg: "#c6a0f6", bg: "#1e2030"),
),
scrollbar: (
symbols: ["│", "█", "▲", "▼"],
track_style: (),
ends_style: (),
thumb_style: (fg: "#b7bdf8"),
),
browser_column_widths: [20, 38, 42],
text_color: "#cad3f5",
background_color: "#24273a",
header_background_color: "#1e2030",
modal_background_color: None,
modal_backdrop: false,
tab_bar: (active_style: (fg: "black", bg: "#c6a0f6", modifiers: "Bold"), inactive_style: ()),
borders_style: (fg: "#6e738d"),
highlighted_item_style: (fg: "#c6a0f6", modifiers: "Bold"),
current_item_style: (fg: "black", bg: "#b7bdf8", modifiers: "Bold"),
highlight_border_style: (fg: "#b7bdf8"),
song_table_format: [
(
prop: (kind: Property(Artist), style: (fg: "#b7bdf8"), default: (kind: Text("Unknown"))),
width: "50%",
alignment: Right,
),
(
prop: (kind: Text("-"), style: (fg: "#b7bdf8"), default: (kind: Text("Unknown"))),
width: "1",
alignment: Center,
),
(
prop: (kind: Property(Title), style: (fg: "#7dc4e4"), default: (kind: Text("Unknown"))),
width: "50%",
),
],
header: (
rows: [
(
left: [
(kind: Text("["), style: (fg: "#b7bdf8", modifiers: "Bold")),
(kind: Property(Status(State)), style: (fg: "#b7bdf8", modifiers: "Bold")),
(kind: Text("]"), style: (fg: "#b7bdf8", modifiers: "Bold"))
],
center: [
(kind: Property(Song(Artist)), style: (fg: "#eed49f", modifiers: "Bold"),
default: (kind: Text("Unknown"), style: (fg: "#eed49f", modifiers: "Bold"))
),
(kind: Text(" - ")),
(kind: Property(Song(Title)), style: (fg: "#7dc4e4", modifiers: "Bold"),
default: (kind: Text("No Song"), style: (fg: "#7dc4e4", modifiers: "Bold"))
)
],
right: [
(kind: Text("Vol: "), style: (fg: "#b7bdf8", modifiers: "Bold")),
(kind: Property(Status(Volume)), style: (fg: "#b7bdf8", modifiers: "Bold")),
(kind: Text("% "), style: (fg: "#b7bdf8", modifiers: "Bold"))
]
)
],
),
tabs: [
(
name: "Queue",
pane: Split(
direction: Horizontal,
panes: [(size: "60%", pane: Pane(Queue)), (size: "40%", pane: Pane(AlbumArt))],
),
),
(
name: "Directories",
pane: Pane(Directories),
),
(
name: "Artists",
pane: Pane(Artists),
),
(
name: "Album Artists",
pane: Pane(AlbumArtists),
),
(
name: "Albums",
pane: Pane(Albums),
),
(
name: "Playlists",
pane: Pane(Playlists),
),
(
name: "Search",
pane: Pane(Search),
),
],
)

View File

@@ -21,6 +21,7 @@ export GBM_BACKEND=nvidia-drm
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export LIBVA_DRIVER_NAME=nvidia
export __GL_GSYNC_ALLOWED=1
export __GL_THREADED_OPTIMIZATIONS=0
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx

View File

@@ -157,13 +157,13 @@
"format-disconnected": "Disconnected ⚠",
"on-click": "$HOME/.config/rofi/scripts/rofi-wifi-menu.sh",
},
"custom/weather": {
"interval": 600,
"exec": "~/.config/waybar/scripts/wttr.sh Los_Angeles",
"return-type": "json",
"format": "{}",
"tooltip": true,
},
// "custom/weather": {
// "interval": 600,
// "exec": "~/.config/waybar/scripts/wttr.sh Los_Angeles",
// "return-type": "json",
// "format": "{}",
// "tooltip": true,
// },
"custom/kernel": {
"exec": "uname -r | sed -E 's/^([0-9]+\\.[0-9]+\\.[0-9]+)-.*-([a-zA-Z0-9]+)/\\1-\\2/'",
"format": "{} ",

View File

@@ -213,6 +213,7 @@ label:focus {
/* background-color: @overlay0; */
background-color: @surface0;
color: @mantle;
margin: 5px 3px 5px 1px;
}
#tray > .passive {
@@ -273,7 +274,7 @@ label:focus {
color: @mantle;
background-color: @peach;
padding: 0 10px;
margin: 5px 1px;
margin: 5px 5px 5px 1px;
}
#cava {
@@ -310,7 +311,7 @@ label:focus {
background-color: @flamingo;
color: @base;
padding: 0 10px;
margin: 5px 1px;
margin: 5px 5px 5px 1px;
}
#custom-notification {