From 6531db00063b8e3e922d0bc505fe27077e018cd6 Mon Sep 17 00:00:00 2001 From: roxwize Date: Tue, 3 Jun 2025 18:39:21 -0400 Subject: [PATCH] ~ --- configs/openbox/menu.xml | 104 ++--- configs/openbox/rc.xml | 552 ++++++++++++++------------- configs/rmpc/config.ron | 298 +++++++-------- nixos/home/mozilla.nix | 10 +- nixos/home/neovim.nix | 4 +- nixos/hosts/ioides/configuration.nix | 55 ++- nixos/hosts/ioides/packages.nix | 1 + 7 files changed, 541 insertions(+), 483 deletions(-) diff --git a/configs/openbox/menu.xml b/configs/openbox/menu.xml index 48546ea..7824df5 100644 --- a/configs/openbox/menu.xml +++ b/configs/openbox/menu.xml @@ -1,56 +1,56 @@ - - - - kitty - - - - - firefox - - - - - codium - - - - - - dolphin - - - - - com.github.stsdc.monitor - - - - - pkexec timeshift-gtk - - - - - - loginctl kill-user rae - Really close all applications and log out? - - - - - shutdown -r now - Really shutdown the computer? - - - - - shutdown now - Really shutdown the computer? - - - + + + + kitty + + + + + firefox + + + + + codium + + + + + + dolphin + + + + + com.github.stsdc.monitor + + + + + pkexec timeshift-gtk + + + + + + loginctl kill-user rae + Really close all applications and log out? + + + + + shutdown -r now + Really shutdown the computer? + + + + + shutdown now + Really shutdown the computer? + + + diff --git a/configs/openbox/rc.xml b/configs/openbox/rc.xml index eb1c794..cdfe4f4 100644 --- a/configs/openbox/rc.xml +++ b/configs/openbox/rc.xml @@ -1,286 +1,292 @@ - - 40 - 80 - - - neralie - LIMC - - GohuFont - 11 - - - GohuFont - 11 - - - GohuFont - 11 - - - GohuFont - 11 - - - GohuFont - 11 - - - - - 6 - 1 - 0 - - 1 - 2 - 3 - 4 - 5 - 6 - - - - - - rofi -show combi -modes combi -combi-modes "window,drun,run" - - - - - rofi -show run -modes run - - - - - rofi-pass - - - - - rofi -show ssh -modes ssh - - - - - client-menu - - + + 40 + 80 + + + neralie + LIMC + + GohuFont + 11 + + + GohuFont + 11 + + + GohuFont + 11 + + + GohuFont + 11 + + + GohuFont + 11 + + + + + 6 + 1 + 0 + + 1 + 2 + 3 + 4 + 5 + 6 + + + + + + rofi -show combi -modes combi -combi-modes "window,drun,run" + + + + + rofi -show run -modes run + + + + + rofi-pass + + + + + rofi -show ssh -modes ssh + + + + + client-menu + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - -5 - 0 - - - - - 0 - 5 - - - - - 0 - -5 - - - - - 5 - 0 - - + + + -5 + 0 + + + + + 0 + 5 + + + + + 0 + -5 + + + + + 5 + 0 + + - - - flameshot gui - - - - - kitty - - - - - shutdown -r now - Really shutdown the computer? - - + + + flameshot gui + + + + + kitty + + + + + shutdown -r now + Really shutdown the computer? + + - - - previous - - - - - none - yes - no - - - - - next - - - - - none - yes - no - - - - - list - yes - yes - no - yes - - - - - 1 - - - - - 2 - - - - - 3 - - - - - 4 - - - - - 5 - - - - - 6 - - - - - - - - - - - - - - - - - root - - - - - - + + + previous + + + + + none + yes + no + + + + + next + + + + + none + yes + no + + + + + list + yes + yes + no + yes + + + + + 1 + + + + + 2 + + + + + 3 + + + + + 4 + + + + + 5 + + + + + 6 + + + + + + + + + + + + + + + + + root + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - client-menu - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + client-menu + + + - - - - - + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - + + + + + - - - - root - - - - + + + + root + + + + diff --git a/configs/rmpc/config.ron b/configs/rmpc/config.ron index e5097c2..863ad09 100644 --- a/configs/rmpc/config.ron +++ b/configs/rmpc/config.ron @@ -2,154 +2,154 @@ #![enable(unwrap_newtypes)] #![enable(unwrap_variant_newtypes)] ( - address: "127.0.0.1:6600", - password: None, - theme: Some("neralie"), - cache_dir: None, - on_song_change: None, - volume_step: 5, - scrolloff: 0, - wrap_navigation: false, - enable_mouse: true, - status_update_interval_ms: 1000, - select_current_song_on_change: false, - keybinds: ( - global: { - ":": CommandMode, - ",": VolumeDown, - ".": VolumeUp, - "p": TogglePause, - "s": Stop, - "q": Quit, - "": NextTab, - "": PreviousTab, - ">": NextTrack, - "<": PreviousTrack, - "": SeekForward, - "": SeekBack, - "z": ToggleRepeat, - "x": ToggleRandom, - "c": ToggleConsume, - "v": ToggleSingle, - "`": ShowHelp, - "?": ShowCurrentSongInfo, - "O": ShowOutputs, - "P": ShowDecoders, - "1": SwitchToTab("main"), - "2": SwitchToTab("directories"), - "3": SwitchToTab("artists"), - "4": SwitchToTab("albums"), - "5": SwitchToTab("playlists"), - "6": SwitchToTab("search"), - }, - navigation: { - "k": Up, - "j": Down, - "h": Left, - "l": Right, - "": Up, - "": Down, - "": Left, - "": Right, - "": PaneUp, - "": PaneDown, - "": PaneLeft, - "": PaneRight, - "": UpHalf, - "": DownHalf, - "N": PreviousResult, - "n": NextResult, - "": Add, - "A": AddAll, - "": Delete, - "r": Rename, - "": Top, - "": Bottom, - "": Select, - "": InvertSelection, - "": Confirm, - "i": FocusInput, - "/": EnterSearch, - "": Close, - "": Close, - "K": MoveUp, - "J": MoveDown, - }, - queue: { - "D": DeleteAll, - "": Play, - "": Save, - "a": AddToPlaylist, - "d": Delete, - "i": ShowInfo, - "C": JumpToCurrent, - }, - ), + address: "127.0.0.1:6600", + password: None, + theme: Some("neralie"), + cache_dir: None, + on_song_change: None, + volume_step: 5, + scrolloff: 0, + wrap_navigation: false, + enable_mouse: true, + status_update_interval_ms: 1000, + select_current_song_on_change: false, + keybinds: ( + global: { + ":": CommandMode, + ",": VolumeDown, + ".": VolumeUp, + "p": TogglePause, + "s": Stop, + "q": Quit, + "": NextTab, + "": PreviousTab, + ">": NextTrack, + "<": PreviousTrack, + "": SeekForward, + "": SeekBack, + "z": ToggleRepeat, + "x": ToggleRandom, + "c": ToggleConsume, + "v": ToggleSingle, + "`": ShowHelp, + "?": ShowCurrentSongInfo, + "O": ShowOutputs, + "P": ShowDecoders, + "1": SwitchToTab("main"), + "2": SwitchToTab("directories"), + "3": SwitchToTab("artists"), + "4": SwitchToTab("albums"), + "5": SwitchToTab("playlists"), + "6": SwitchToTab("search"), + }, + navigation: { + "k": Up, + "j": Down, + "h": Left, + "l": Right, + "": Up, + "": Down, + "": Left, + "": Right, + "": PaneUp, + "": PaneDown, + "": PaneLeft, + "": PaneRight, + "": UpHalf, + "": DownHalf, + "N": PreviousResult, + "n": NextResult, + "": Add, + "A": AddAll, + "": Delete, + "r": Rename, + "": Top, + "": Bottom, + "": Select, + "": InvertSelection, + "": Confirm, + "i": FocusInput, + "/": EnterSearch, + "": Close, + "": Close, + "K": MoveUp, + "J": MoveDown, + }, + queue: { + "D": DeleteAll, + "": Play, + "": Save, + "a": AddToPlaylist, + "d": Delete, + "i": ShowInfo, + "C": JumpToCurrent, + }, + ), - album_art: ( - method: Auto, - max_size_px: (width: 600, height: 600), - disabled_protocols: ["http://", "https://"], - ), - 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, - ), - tabs: [ - ( - name: "main", - border_type: None, - pane: Split( - direction: Horizontal, - panes: [ - (size: "20%", pane: Split( - direction: Vertical, - panes: [ - (size: "40%", pane: Pane(AlbumArt)), - (size: "60%", pane: Pane(AlbumArtists)) - ] - )), - (size: "80%", pane: Pane(Queue)) - ], - ), - ), - ( - name: "directories", - border_type: None, - pane: Pane(Directories), - ), - ( - name: "artists", - border_type: None, - pane: Pane(AlbumArtists), - ), - ( - name: "albums", - border_type: None, - pane: Pane(Albums), - ), - ( - name: "playlists", - border_type: None, - pane: Pane(Playlists), - ), - ( - name: "search", - border_type: None, - pane: Pane(Search), - ), - ], + album_art: ( + method: Auto, + max_size_px: (width: 600, height: 600), + disabled_protocols: ["http://", "https://"], + ), + 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, + ), + tabs: [ + ( + name: "main", + border_type: None, + pane: Split( + direction: Horizontal, + panes: [ + (size: "20%", pane: Split( + direction: Vertical, + panes: [ + (size: "40%", pane: Pane(AlbumArt)), + (size: "60%", pane: Pane(AlbumArtists)) + ] + )), + (size: "80%", pane: Pane(Queue)) + ], + ), + ), + ( + name: "directories", + border_type: None, + pane: Pane(Directories), + ), + ( + name: "artists", + border_type: None, + pane: Pane(AlbumArtists), + ), + ( + name: "albums", + border_type: None, + pane: Pane(Albums), + ), + ( + name: "playlists", + border_type: None, + pane: Pane(Playlists), + ), + ( + name: "search", + border_type: None, + pane: Pane(Search), + ), + ], ) diff --git a/nixos/home/mozilla.nix b/nixos/home/mozilla.nix index a0925c5..7825519 100644 --- a/nixos/home/mozilla.nix +++ b/nixos/home/mozilla.nix @@ -114,6 +114,14 @@ search = { default = "DuckDuckGo"; engines = { + "Noogle" = { + urls = [{ + template = "https://noogle.dev/q"; + params = [ + { name = "term"; value = "{searchTerms}"; } + ]; + }]; + }; "Nix packages" = { urls = [{ template = "https://search.nixos.org/packages"; @@ -145,7 +153,7 @@ "Bing".metaData.hidden = true; "Google".metaData.hidden = true; }; - order = [ "DuckDuckGo" "Nix packages" ]; + order = [ "DuckDuckGo" "Noogle" "Nix packages" ]; force = true; }; }; diff --git a/nixos/home/neovim.nix b/nixos/home/neovim.nix index 4439881..b968ca3 100644 --- a/nixos/home/neovim.nix +++ b/nixos/home/neovim.nix @@ -65,8 +65,8 @@ capabilities = caps, cmd = { "nil" } } - lc.ts_ls.setup {} - lc.vala_ls.setup {} + lc.ts_ls.setup { capabilities = caps } + lc.vala_ls.setup { capabilities = caps } ''; }; } diff --git a/nixos/hosts/ioides/configuration.nix b/nixos/hosts/ioides/configuration.nix index 82daf01..37319c9 100644 --- a/nixos/hosts/ioides/configuration.nix +++ b/nixos/hosts/ioides/configuration.nix @@ -226,14 +226,57 @@ security.polkit.enable = true; - xdg.portal = { - enable = true; - config = { - common = { - default = [ "gtk" ]; + xdg = { + mime = { + defaultApplications = let + audio = [ "vlc.desktop" "org.fooyin.fooyin.desktop" ]; + browser = "firefox.desktop"; + image = [ "sxiv.desktop" "gimp.desktop" ]; + text = "nvim.desktop"; + video = "vlc.desktop"; + in { + "application/json" = text; + "application/x-c++src" = text; + "application/x-shellscript" = "kitty-open.desktop"; + "application/x-xcf" = "gimp.desktop"; + "audio/flac" = audio; + "audio/mp2" = audio; + "audio/mp3" = audio; + "audio/wav" = audio; + "audio/x-vorbis" = audio; + "audio/x-vorbis+ogg" = audio; + "image/avif" = image; + "image/bmp" = image; + "image/gif" = image; + "image/jpeg" = image; + "image/png" = image; + "image/svg+xml" = [ "sxiv.desktop" "nvim.desktop" ]; + "image/tiff" = image; + "image/webp" = image; + "inode/directory" = "org.kde.dolphin.desktop"; + "text/html" = browser; + "text/markdown" = text; + "text/plain" = text; + "text/x-c" = text; + "video/avi" = video; + "video/mp4" = video; + "video/quicktime" = video; + "video/webm" = video; + "video/x-matroska" = video; + "x-scheme-handler/http" = browser; + "x-scheme-handler/https" = browser; + "x-scheme-handler/mailto" = "thunderbird.desktop"; }; }; - extraPortals = with pkgs; [ xdg-desktop-portal-gtk ]; + portal = { + enable = true; + config = { + common = { + default = [ "gtk" ]; + }; + }; + extraPortals = with pkgs; [ xdg-desktop-portal-gtk ]; + }; }; users.users.rae.shell = pkgs.fish; diff --git a/nixos/hosts/ioides/packages.nix b/nixos/hosts/ioides/packages.nix index fcce0e0..a5f7571 100644 --- a/nixos/hosts/ioides/packages.nix +++ b/nixos/hosts/ioides/packages.nix @@ -59,6 +59,7 @@ imagemagick # Software suite to create, edit, compose, or convert bitmap images krita # Free and open source painting application maim # Command-line screenshot utility + sxiv # Simple X Image Viewer # gtk posy-cursors # Posy's Improved Cursors for Linux pantheon.elementary-gtk-theme # GTK theme designed to be smooth, attractive, fast, and usable