diff options
| author | Fuwn <[email protected]> | 2024-08-28 20:36:04 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-08-28 20:36:04 -0700 |
| commit | f3c31e4ad7fab36e151f3a2e207fafb1eda1a787 (patch) | |
| tree | e265a1a5270b4522049110b8bc5aa13fda142c2f /home | |
| parent | many (diff) | |
| download | nixos-config-f3c31e4ad7fab36e151f3a2e207fafb1eda1a787.tar.xz nixos-config-f3c31e4ad7fab36e151f3a2e207fafb1eda1a787.zip | |
hi
Diffstat (limited to 'home')
| -rw-r--r-- | home/ebisu/home.nix (renamed from home/fuwn/home.nix) | 51 | ||||
| -rw-r--r-- | home/ebisu/meta/communication/default.nix (renamed from home/fuwn/meta/communication/default.nix) | 5 | ||||
| -rw-r--r-- | home/ebisu/meta/communication/discord/default.nix (renamed from home/fuwn/meta/communication/discord/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/communication/discord/vesktop/default.nix (renamed from home/fuwn/meta/communication/discord/vesktop/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/communication/irc.nix (renamed from home/fuwn/meta/communication/irc/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/default.nix (renamed from home/fuwn/meta/default.nix) | 3 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/agnostic/default.nix (renamed from home/fuwn/meta/desktop/agnostic/default.nix) | 11 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/default.nix (renamed from home/fuwn/meta/desktop/default.nix) | 3 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/clipboard.nix (renamed from home/fuwn/meta/desktop/wayland/clipboard/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/default.nix (renamed from home/fuwn/meta/desktop/wayland/default.nix) | 16 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/hyprland/default.nix (renamed from home/fuwn/meta/desktop/wayland/hyprland/default.nix) | 14 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/hyprland/hypridle.nix (renamed from home/fuwn/meta/desktop/wayland/hyprland/hypridle/default.nix) | 7 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/hyprland/hyprland/animations.nix (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/animations.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/hyprland/hyprland/binds.nix (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/binds.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/hyprland/hyprland/decoration.nix (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/decoration.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/hyprland/hyprland/default.nix (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/default.nix) | 9 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/hyprland/hyprland/environment.nix (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/environment.nix) | 2 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/hyprland/hyprland/executions.nix (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/executions.nix) | 6 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/hyprland/hyprland/general.nix (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/general.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/hyprland/hyprland/plugins.nix (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/plugins.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/hyprland/hyprland/rules.nix (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/rules.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/common.sh (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/common.sh) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/fake_fullscreen_status (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/fake_fullscreen_status) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/hycov_easymotion (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/hycov_easymotion) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/initialise_gtk (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/initialise_gtk) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/initialise_waybar (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/initialise_waybar) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/initialise_xdg_portal (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/initialise_xdg_portal) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/move_focus_to_monitor (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/move_focus_to_monitor) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/move_window_to_monitor (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/move_window_to_monitor) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/move_window_to_workspace (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/move_window_to_workspace) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/source.bak/screenshot.ab | 158 | ||||
| -rwxr-xr-x | home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/switch_workspace (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/switch_workspace) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/toggle_gaps (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/toggle_gaps) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/toggle_layout (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/toggle_layout) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/hyprland/hyprland/workspaces.nix | 45 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/hyprland/hyprlock.nix (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprlock/default.nix) | 15 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/hyprland/hyprpaper.nix (renamed from home/fuwn/meta/desktop/wayland/hyprland/hyprpaper/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/hyprland/inspo.txt | 4 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/mako.nix | 59 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/screenshot.nix (renamed from home/fuwn/meta/desktop/wayland/screenshot/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/waybar/default.nix | 96 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/waybar/waybar/default-modules.nix (renamed from home/fuwn/meta/desktop/wayland/waybar/waybar/default-modules.nix) | 37 | ||||
| -rwxr-xr-x | home/ebisu/meta/desktop/wayland/waybar/waybar/scripts/mediaplayer.py (renamed from home/fuwn/meta/desktop/wayland/waybar/waybar/scripts/mediaplayer.py) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/desktop/wayland/waybar/waybar/scripts/mediaplayer.py.bak | 128 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/waybar/waybar/style.css (renamed from home/fuwn/meta/desktop/wayland/waybar/waybar/style.css) | 2 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/waybar/waybar/style.css.bak | 221 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/wayland/wlogout.nix | 114 | ||||
| -rw-r--r-- | home/ebisu/meta/desktop/xorg/default.nix (renamed from home/fuwn/meta/desktop/xorg/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/database/default.nix (renamed from home/fuwn/meta/development/database/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/default.nix (renamed from home/fuwn/meta/development/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/git/default.nix (renamed from home/fuwn/meta/development/git/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/infrastructure/default.nix (renamed from home/fuwn/meta/development/infrastructure/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/agnostic/default.nix (renamed from home/fuwn/meta/development/languages/agnostic/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/assembly/default.nix (renamed from home/fuwn/meta/development/languages/assembly/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/cobol/default.nix (renamed from home/fuwn/meta/development/languages/cobol/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/crystal/default.nix (renamed from home/fuwn/meta/development/languages/crystal/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/csharp/default.nix (renamed from home/fuwn/meta/development/languages/csharp/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/default.nix (renamed from home/fuwn/meta/development/languages/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/gleam/default.nix (renamed from home/fuwn/meta/development/languages/gleam/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/go/default.nix (renamed from home/fuwn/meta/development/languages/go/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/hare/default.nix (renamed from home/fuwn/meta/development/languages/hare/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/haskell/default.nix (renamed from home/fuwn/meta/development/languages/haskell/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/javascript/default.nix (renamed from home/fuwn/meta/development/languages/javascript/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/jvm/default.nix (renamed from home/fuwn/meta/development/languages/jvm/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/nim/default.nix (renamed from home/fuwn/meta/development/languages/nim/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/other/default.nix (renamed from home/fuwn/meta/development/languages/other/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/protobuf/default.nix (renamed from home/fuwn/meta/development/languages/protobuf/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/python/default.nix (renamed from home/fuwn/meta/development/languages/python/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/rust/default.nix (renamed from home/fuwn/meta/development/languages/rust/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/shell/default.nix (renamed from home/fuwn/meta/development/languages/shell/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/tex/default.nix (renamed from home/fuwn/meta/development/languages/tex/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/vlang/default.nix (renamed from home/fuwn/meta/development/languages/vlang/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/yaml/default.nix (renamed from home/fuwn/meta/development/languages/yaml/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/zig/default.nix (renamed from home/fuwn/meta/development/languages/zig/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/languages/zig/zls/default.nix (renamed from home/fuwn/meta/development/languages/zig/zls/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/nix/default.nix (renamed from home/fuwn/meta/development/nix/default.nix) | 1 | ||||
| -rw-r--r-- | home/ebisu/meta/development/tools/build/default.nix (renamed from home/fuwn/meta/development/tools/build/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/development/tools/default.nix (renamed from home/fuwn/meta/development/tools/default.nix) | 1 | ||||
| -rw-r--r-- | home/ebisu/meta/editor/default.nix | 12 | ||||
| -rw-r--r-- | home/ebisu/meta/editor/vscode-fhs.nix | 23 | ||||
| -rw-r--r-- | home/ebisu/meta/education/calculator/default.nix (renamed from home/fuwn/meta/education/calculator/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/education/default.nix (renamed from home/fuwn/meta/education/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/filesystem/archive/default.nix (renamed from home/fuwn/meta/filesystem/archive/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/filesystem/core/bat/default.nix (renamed from home/fuwn/meta/filesystem/core/bat/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/filesystem/core/default.nix (renamed from home/fuwn/meta/filesystem/core/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/filesystem/core/eza/default.nix (renamed from home/fuwn/meta/filesystem/core/eza/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/filesystem/default.nix (renamed from home/fuwn/meta/filesystem/default.nix) | 4 | ||||
| -rw-r--r-- | home/ebisu/meta/gaming/default.nix (renamed from home/fuwn/meta/gaming/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/language/default.nix (renamed from home/fuwn/meta/language/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/multimedia/audio/default.nix (renamed from home/fuwn/meta/multimedia/audio/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/multimedia/audio/spotify/default.nix (renamed from home/fuwn/meta/multimedia/audio/spotify/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/multimedia/browser/default.nix | 19 | ||||
| -rw-r--r-- | home/ebisu/meta/multimedia/browser/thorium.nix | 47 | ||||
| -rw-r--r-- | home/ebisu/meta/multimedia/browser/ungoogled-chromium.nix | 23 | ||||
| -rw-r--r-- | home/ebisu/meta/multimedia/browser/zen-browser-bin.nix | 128 | ||||
| -rw-r--r-- | home/ebisu/meta/multimedia/default.nix (renamed from home/fuwn/meta/multimedia/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/multimedia/document/default.nix (renamed from home/fuwn/meta/multimedia/document/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/multimedia/image/ahoviewer.nix | 54 | ||||
| -rw-r--r-- | home/ebisu/meta/multimedia/image/default.nix (renamed from home/fuwn/meta/multimedia/image/default.nix) | 5 | ||||
| -rw-r--r-- | home/ebisu/meta/multimedia/video/anime/default.nix (renamed from home/fuwn/meta/multimedia/video/anime/default.nix) | 5 | ||||
| -rw-r--r-- | home/ebisu/meta/multimedia/video/default.nix (renamed from home/fuwn/meta/multimedia/video/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/network/default.nix (renamed from home/fuwn/meta/network/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/network/smolnet/bollux/default.nix (renamed from home/fuwn/meta/network/smolnet/bollux/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/network/smolnet/bollux/fix_lesskey_nag.patch (renamed from home/fuwn/meta/network/smolnet/bollux/fix_lesskey_nag.patch) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/network/smolnet/default.nix | 12 | ||||
| -rw-r--r-- | home/ebisu/meta/network/tools/default.nix (renamed from home/fuwn/meta/network/tools/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/network/tools/http/default.nix (renamed from home/fuwn/meta/network/tools/http/default.nix) | 4 | ||||
| -rw-r--r-- | home/ebisu/meta/network/tools/http/httpie/default.nix (renamed from home/fuwn/meta/network/tools/http/httpie/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/network/tools/http/wget.nix | 8 | ||||
| -rw-r--r-- | home/ebisu/meta/network/tools/http/yaak/default.nix (renamed from home/fuwn/meta/network/tools/http/yaak/default.nix) | 4 | ||||
| -rw-r--r-- | home/ebisu/meta/network/tools/shark/default.nix (renamed from home/fuwn/meta/network/tools/shark/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/network/tools/tcp/default.nix (renamed from home/fuwn/meta/network/tools/tcp/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/rice/bottom.nix (renamed from home/fuwn/meta/rice/bottom/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/rice/default.nix | 23 | ||||
| -rw-r--r-- | home/ebisu/meta/rice/fastfetch.nix (renamed from home/fuwn/meta/rice/fastfetch/default.nix) | 5 | ||||
| -rw-r--r-- | home/ebisu/meta/rice/glances.nix (renamed from home/fuwn/meta/rice/glances/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/rice/gtk.nix | 35 | ||||
| -rw-r--r-- | home/ebisu/meta/scripts/default.nix (renamed from home/fuwn/meta/scripts/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/scripts/scripts/.gitignore (renamed from home/fuwn/meta/scripts/scripts/.gitignore) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/scripts/scripts/altserver (renamed from home/fuwn/meta/scripts/scripts/altserver) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/scripts/scripts/anidub (renamed from home/fuwn/meta/scripts/scripts/anidub) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/scripts/scripts/anime (renamed from home/fuwn/meta/scripts/scripts/anime) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/scripts/scripts/apod (renamed from home/fuwn/meta/scripts/scripts/apod) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/scripts/scripts/catboy (renamed from home/fuwn/meta/scripts/scripts/catboy) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/scripts/scripts/chan2 (renamed from home/fuwn/meta/scripts/scripts/chan2) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/scripts/scripts/fim (renamed from home/fuwn/meta/scripts/scripts/fim) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/scripts/scripts/gmiwatch (renamed from home/fuwn/meta/scripts/scripts/gmiwatch) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/scripts/scripts/hon (renamed from home/fuwn/meta/scripts/scripts/hon) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/scripts/scripts/locs (renamed from home/fuwn/meta/scripts/scripts/locs) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/scripts/scripts/neovide-lunarvim (renamed from home/fuwn/meta/scripts/scripts/neovide-lunarvim) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/scripts/scripts/reco (renamed from home/fuwn/meta/scripts/scripts/reco) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/scripts/scripts/setbg (renamed from home/fuwn/meta/scripts/scripts/setbg) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/scripts/scripts/shiori (renamed from home/fuwn/meta/scripts/scripts/shiori) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/scripts/scripts/skyla (renamed from home/fuwn/meta/scripts/scripts/skyla) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/scripts/scripts/start-vm (renamed from home/fuwn/meta/scripts/scripts/start-vm) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/scripts/scripts/tup-init (renamed from home/fuwn/meta/scripts/scripts/tup-init) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/scripts/scripts/vivwal (renamed from home/fuwn/meta/scripts/scripts/vivwal) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/scripts/scripts/wal_mako (renamed from home/fuwn/meta/scripts/scripts/wal_mako) | 0 | ||||
| -rwxr-xr-x | home/ebisu/meta/scripts/scripts/worlds (renamed from home/fuwn/meta/scripts/scripts/worlds) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/steam/default.nix (renamed from home/fuwn/meta/steam/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/system/bitwarden/default.nix (renamed from home/fuwn/meta/system/bitwarden/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/system/default.nix (renamed from home/fuwn/meta/system/default.nix) | 4 | ||||
| -rw-r--r-- | home/ebisu/meta/system/fonts/default.nix | 54 | ||||
| -rw-r--r-- | home/ebisu/meta/system/fonts/meowsans/MeowSans_Font/MeowSans-Regular.ttf | bin | 0 -> 10524000 bytes | |||
| -rw-r--r-- | home/ebisu/meta/system/fonts/meowsans/MeowSans_Font/MeowSans.ttf | bin | 0 -> 8666420 bytes | |||
| -rw-r--r-- | home/ebisu/meta/system/fonts/meowsans/default.nix | 4 | ||||
| -rw-r--r-- | home/ebisu/meta/system/opengl/default.nix (renamed from home/fuwn/meta/system/opengl/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/system/peripheral/default.nix (renamed from home/fuwn/meta/system/peripheral/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/system/shell/default.nix (renamed from home/fuwn/meta/system/shell/default.nix) | 4 | ||||
| -rw-r--r-- | home/ebisu/meta/system/shell/fish/default.nix (renamed from home/fuwn/meta/system/shell/fish/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/system/shell/scripting/charmbracelet/default.nix (renamed from home/fuwn/meta/system/shell/scripting/charmbracelet/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/system/shell/scripting/default.nix (renamed from home/fuwn/meta/system/shell/scripting/default.nix) | 1 | ||||
| -rw-r--r-- | home/ebisu/meta/system/shell/scripting/ripgrep/default.nix (renamed from home/fuwn/meta/system/shell/scripting/ripgrep/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/system/shell/starship/default.nix (renamed from home/fuwn/meta/system/shell/starship/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/system/terminal/default.nix (renamed from home/fuwn/meta/system/terminal/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/system/terminal/foot/default.nix (renamed from home/fuwn/meta/system/terminal/foot/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/system/terminal/kitty/default.nix (renamed from home/fuwn/meta/system/terminal/kitty/default.nix) | 7 | ||||
| -rw-r--r-- | home/ebisu/meta/system/virtualisation/default.nix (renamed from home/fuwn/meta/system/virtualisation/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/system/virtualisation/docker/default.nix (renamed from home/fuwn/meta/system/virtualisation/docker/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/utility/ai/default.nix (renamed from home/fuwn/meta/utility/ai/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/meta/utility/default.nix (renamed from home/fuwn/meta/utility/default.nix) | 0 | ||||
| -rw-r--r-- | home/ebisu/wallpaper.png (renamed from home/fuwn/wallpaper.png) | bin | 3744245 -> 3744245 bytes | |||
| -rw-r--r-- | home/fuwn/meta/desktop/wayland/hyprland/hyprland/workspaces.nix | 38 | ||||
| -rw-r--r-- | home/fuwn/meta/desktop/wayland/waybar/default.nix | 93 | ||||
| -rw-r--r-- | home/fuwn/meta/editor/default.nix | 7 | ||||
| -rw-r--r-- | home/fuwn/meta/multimedia/browser/default.nix | 14 | ||||
| -rw-r--r-- | home/fuwn/meta/network/smolnet/default.nix | 17 | ||||
| -rw-r--r-- | home/fuwn/meta/rice/default.nix | 19 | ||||
| -rwxr-xr-x | home/fuwn/meta/scripts/scripts/bt | 16 | ||||
| -rwxr-xr-x | home/fuwn/meta/scripts/scripts/counter | 3 | ||||
| -rwxr-xr-x | home/fuwn/meta/scripts/scripts/rinny | 29 | ||||
| -rw-r--r-- | home/fuwn/meta/system/fonts/default.nix | 18 |
172 files changed, 1383 insertions, 364 deletions
diff --git a/home/fuwn/home.nix b/home/ebisu/home.nix index c01306d..2052516 100644 --- a/home/fuwn/home.nix +++ b/home/ebisu/home.nix @@ -1,10 +1,14 @@ -{ config, pkgs, stylix, ... }: +{ + config, + pkgs, + stylix, + inputs, + ... +}: { home = { - # Home Manager needs a bit of information about you and the paths it should - # manage. - username = "fuwn"; - homeDirectory = "/home/fuwn"; + username = "ebisu"; + homeDirectory = "/home/ebisu"; # This value determines the Home Manager release that your configuration is # compatible with. This helps avoid breakage when a new Home Manager release @@ -15,13 +19,7 @@ # release notes. stateVersion = "24.05"; # Please read the comment before changing. - # The home.packages option allows you to install Nix packages into your - # environment. packages = [ - # # Adds the 'hello' command to your environment. It prints a friendly - # # "Hello, world!" when run. - # pkgs.hello - # # It is sometimes useful to fine-tune packages, for example, by applying # # overrides. You can do that directly here, just don't forget the # # parentheses. Maybe you want to install Nerd Fonts with a limited number of @@ -36,21 +34,6 @@ # '') ]; - # Home Manager is pretty good at managing dotfiles. The primary way to manage - # plain files is through 'home.file'. - file = { - # # Building this configuration will create a copy of 'dotfiles/screenrc' in - # # the Nix store. Activating the configuration will then make '~/.screenrc' a - # # symlink to the Nix store copy. - # ".screenrc".source = dotfiles/screenrc; - - # # You can also set the file content immediately. - # ".gradle/gradle.properties".text = '' - # org.gradle.console=verbose - # org.gradle.daemon.idletimeout=3600000 - # ''; - }; - # Home Manager can also manage your environment variables through # 'home.sessionVariables'. These will be explicitly sourced when using a # shell provided by Home Manager. If you don't want to manage your shell @@ -68,36 +51,30 @@ # /etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh # sessionVariables = { - # EDITOR = "emacs"; # ref: https://github.com/nix-community/home-manager/issues/354#issuecomment-475803163 LOCALES_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive"; }; - # sessionPath = [ - # "$HOME/.local/bin" - # ]; + sessionPath = [ "$HOME/.local/bin" ]; }; - # Let Home Manager install and manage itself. programs.home-manager.enable = true; - imports = [ - ./meta - ]; + imports = [ ./meta ]; nixpkgs = { config = { allowUnfree = true; + # allowInsecure = true; # allowBroken = true; + # allowUnfreePredicate = _: true; }; }; - fonts.fontconfig.enable = true; + nixpkgs.overlays = [ inputs.nur.overlay ]; stylix = { enable = false; image = ./wallpaper.png; }; - - # colorScheme = builtins.fromJSON (builtins.readFile "${config.home.homeDirectory}/.cache/wal/colors.json"); } diff --git a/home/fuwn/meta/communication/default.nix b/home/ebisu/meta/communication/default.nix index 323f21c..551e90c 100644 --- a/home/fuwn/meta/communication/default.nix +++ b/home/ebisu/meta/communication/default.nix @@ -1,7 +1,8 @@ -{ pkgs, ... }: { +{ pkgs, ... }: +{ imports = [ ./discord - ./irc + ./irc.nix ]; home.packages = with pkgs; [ diff --git a/home/fuwn/meta/communication/discord/default.nix b/home/ebisu/meta/communication/discord/default.nix index 5e8f79d..5e8f79d 100644 --- a/home/fuwn/meta/communication/discord/default.nix +++ b/home/ebisu/meta/communication/discord/default.nix diff --git a/home/fuwn/meta/communication/discord/vesktop/default.nix b/home/ebisu/meta/communication/discord/vesktop/default.nix index edae1bc..edae1bc 100644 --- a/home/fuwn/meta/communication/discord/vesktop/default.nix +++ b/home/ebisu/meta/communication/discord/vesktop/default.nix diff --git a/home/fuwn/meta/communication/irc/default.nix b/home/ebisu/meta/communication/irc.nix index 61a2ebf..61a2ebf 100644 --- a/home/fuwn/meta/communication/irc/default.nix +++ b/home/ebisu/meta/communication/irc.nix diff --git a/home/fuwn/meta/default.nix b/home/ebisu/meta/default.nix index d810a18..2b92591 100644 --- a/home/fuwn/meta/default.nix +++ b/home/ebisu/meta/default.nix @@ -1,4 +1,5 @@ -_: { +{ ... }: +{ imports = [ ./communication ./desktop diff --git a/home/fuwn/meta/desktop/agnostic/default.nix b/home/ebisu/meta/desktop/agnostic/default.nix index e6fc80e..4531cc4 100644 --- a/home/fuwn/meta/desktop/agnostic/default.nix +++ b/home/ebisu/meta/desktop/agnostic/default.nix @@ -1,11 +1,12 @@ -{ pkgs, ... }: { +{ pkgs, ... }: +{ home.packages = with pkgs; [ showmethekey brightnessctl bibata-cursors - fcitx5 - fcitx5-hangul - fcitx5-mozc - fcitx5-rime + xorg.xlsclients + libnotify + # lemurs + # emptty ]; } diff --git a/home/fuwn/meta/desktop/default.nix b/home/ebisu/meta/desktop/default.nix index 5a30cb7..061a773 100644 --- a/home/fuwn/meta/desktop/default.nix +++ b/home/ebisu/meta/desktop/default.nix @@ -1,4 +1,5 @@ -_: { +{ ... }: +{ imports = [ ./agnostic ./wayland diff --git a/home/fuwn/meta/desktop/wayland/clipboard/default.nix b/home/ebisu/meta/desktop/wayland/clipboard.nix index 05784b9..05784b9 100644 --- a/home/fuwn/meta/desktop/wayland/clipboard/default.nix +++ b/home/ebisu/meta/desktop/wayland/clipboard.nix diff --git a/home/fuwn/meta/desktop/wayland/default.nix b/home/ebisu/meta/desktop/wayland/default.nix index e1e2116..9f5fc47 100644 --- a/home/fuwn/meta/desktop/wayland/default.nix +++ b/home/ebisu/meta/desktop/wayland/default.nix @@ -1,21 +1,21 @@ -{ pkgs -, ... -}: { +{ pkgs, ... }: +{ imports = [ ./hyprland ./waybar - ./clipboard - ./screenshot + ./clipboard.nix + ./mako.nix + ./screenshot.nix + ./wlogout.nix ]; - # services.mako.enable = true; - home.packages = with pkgs; [ gammastep - wlogout wlr-randr ydotool swappy swww + rofi-wayland + hyprpicker ]; } diff --git a/home/fuwn/meta/desktop/wayland/hyprland/default.nix b/home/ebisu/meta/desktop/wayland/hyprland/default.nix index 4fa3b44..507274d 100644 --- a/home/fuwn/meta/desktop/wayland/hyprland/default.nix +++ b/home/ebisu/meta/desktop/wayland/hyprland/default.nix @@ -1,18 +1,16 @@ -{ inputs, pkgs, ... }: { +{ inputs, pkgs, ... }: +{ imports = [ - ./hypridle + ./hypridle.nix ./hyprland - ./hyprlock - # ./hyprpaper + ./hyprlock.nix + # ./hyprpaper.nix ]; wayland.windowManager.hyprland = { enable = true; package = inputs.hyprland.packages.${pkgs.system}.hyprland; - - xwayland = { - enable = true; - }; + xwayland.enable = true; systemd = { enable = true; diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hypridle/default.nix b/home/ebisu/meta/desktop/wayland/hyprland/hypridle.nix index 03d670c..d1b0835 100644 --- a/home/fuwn/meta/desktop/wayland/hyprland/hypridle/default.nix +++ b/home/ebisu/meta/desktop/wayland/hyprland/hypridle.nix @@ -1,15 +1,16 @@ -{ pkgs, ... }: { +{ pkgs, ... }: +{ services.hypridle = { enable = true; settings = { - "$lock_command" = "pidof hyprlock || hyprlock"; + "$lock_command" = "pidof ${pkgs.hyprlock}/bin/hyprlock || ${pkgs.hyprlock}/bin/hyprlock"; # $suspend_command = pidof steam || systemctl suspend || loginctl suspend general = { lock_cmd = "$lock_command"; # before_sleep_cmd = $suspend_command - before_sleep_cmd = "playerctl pause"; + before_sleep_cmd = "${pkgs.playerctl}/bin/playerctl pause"; ignore_dbus_inhibit = false; ignore_systemd_inhibit = false; }; diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/animations.nix b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/animations.nix index c47c164..c47c164 100644 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/animations.nix +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/animations.nix diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/binds.nix b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/binds.nix index 4059ba5..4059ba5 100644 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/binds.nix +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/binds.nix diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/decoration.nix b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/decoration.nix index feb9145..feb9145 100644 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/decoration.nix +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/decoration.nix diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/default.nix b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/default.nix index 34be3a5..d01ddaf 100644 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/default.nix +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/default.nix @@ -12,8 +12,8 @@ _: { ]; xdg.configFile = ( - ( - builtins.listToAttrs (map + (builtins.listToAttrs ( + map (script: { name = "hypr/hyprland/scripts/${script}"; @@ -25,7 +25,6 @@ _: { "common.sh" "fake_fullscreen_status" # "hycov_easymotion" - "initialise_gtk" "initialise_waybar" "initialise_xdg_portal" "move_focus_to_monitor" @@ -34,7 +33,7 @@ _: { "switch_workspace" "toggle_gaps" "toggle_layout" - ]) - ) + ] + )) ); } diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/environment.nix b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/environment.nix index 81046ff..73690ac 100644 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/environment.nix +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/environment.nix @@ -46,7 +46,7 @@ let cursorSize = "18"; in "WLR_DRM_NO_ATOMIC, 1" "WLR_USE_LIBINPUT, 1" "WLR_RENDERER_ALLOW_SOFTWARE, 1" - "WLR_DRM_DEVICES, /dev/dri/card0" + # "WLR_DRM_DEVICES, /dev/dri/card0" # "WLR_EGL_NO_MODIFIERS, 1" # XDG diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/executions.nix b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/executions.nix index 2ff364f..ad25ea5 100644 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/executions.nix +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/executions.nix @@ -1,4 +1,5 @@ -{ pkgs, ... }: { +{ pkgs, ... }: +{ wayland.windowManager.hyprland.settings = { exec-once = ([ # One-shots @@ -17,9 +18,6 @@ "fcitx5 -d --replace" "fcitx5-remote -r" - # GTK - "$script_path/initialise_gtk" - # KWallet # "pam_kwallet_init" # "kwalletd6" diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/general.nix b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/general.nix index 92d7c67..92d7c67 100644 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/general.nix +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/general.nix diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/plugins.nix b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/plugins.nix index 61d73e3..61d73e3 100644 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/plugins.nix +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/plugins.nix diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/rules.nix b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/rules.nix index d933d5e..d933d5e 100644 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/rules.nix +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/rules.nix diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/common.sh b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/common.sh index 25be5b6..25be5b6 100644 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/common.sh +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/common.sh diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/fake_fullscreen_status b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/fake_fullscreen_status index e198758..e198758 100755 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/fake_fullscreen_status +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/fake_fullscreen_status diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/hycov_easymotion b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/hycov_easymotion index ab7c3bb..ab7c3bb 100755 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/hycov_easymotion +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/hycov_easymotion diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/initialise_gtk b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/initialise_gtk index 861aa12..861aa12 100755 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/initialise_gtk +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/initialise_gtk diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/initialise_waybar b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/initialise_waybar index 09f7ff9..09f7ff9 100755 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/initialise_waybar +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/initialise_waybar diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/initialise_xdg_portal b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/initialise_xdg_portal index 10470eb..10470eb 100755 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/initialise_xdg_portal +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/initialise_xdg_portal diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/move_focus_to_monitor b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/move_focus_to_monitor index 27562a9..27562a9 100755 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/move_focus_to_monitor +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/move_focus_to_monitor diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/move_window_to_monitor b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/move_window_to_monitor index 06e4f94..06e4f94 100755 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/move_window_to_monitor +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/move_window_to_monitor diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/move_window_to_workspace b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/move_window_to_workspace index 4256a9f..4256a9f 100755 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/move_window_to_workspace +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/move_window_to_workspace diff --git a/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/source.bak/screenshot.ab b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/source.bak/screenshot.ab new file mode 100644 index 0000000..6bc510d --- /dev/null +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/source.bak/screenshot.ab @@ -0,0 +1,158 @@ +let current_date_time = unsafe $date +%Y-%m-%d-%H-%M-%S$ +let output_directory = "{unsafe $xdg-user-dir PICTURES$}/Screenshots" +let output_file = "Screenshot_{current_date_time}_{unsafe $echo \$RANDOM$}.png" + +fun notify_command(message: Text): Null { + unsafe $notify-send -h string:x-canonical-private-synchronous:shot-notify -u low "{message}"$ +} + +fun notify(clipboard: Bool, type: Text): Null { + notify_command("Screenshot copied to clipboard. ({type})") + + if not clipboard { + if unsafe $test -f "{output_directory}/{output_file}" && + echo 'true' || + echo 'false'$ == "true" + { + // unsafe $feh "{output_directory}/{output_file}"$ + + notify_command("Screenshot saved. ({type})") + } else { + notify_command("Screenshot deleted.") + } + } +} + +fun get_hyprctl_monitors(): Text { + return $hyprctl monitors -j || true$ failed { + notify_command("Failed to get monitors.") + + fail status + } +} + +fun get_focused_monitor(): Text { + let monitors = get_hyprctl_monitors() failed { + notify_command("Failed to get monitors.") + + fail status + } + + return $echo {monitors} | jq -r '.[] | select(.focused) | .name'$ failed { + notify_command("Failed to get focused monitor.") + + fail status + } +} + +fun screenshot_now(clipboard: Bool): Null { + if clipboard { + unsafe $(grim - || true) | wl-copy$ + } else { + unsafe $cd "{output_directory}" && + grim - | + tee "{output_file}" | + wl-copy$ + } + + notify(clipboard, "now") +} + +fun screenshot_window(clipboard: Bool): Null { + let width_position = unsafe $hyprctl activewindow | + grep 'at:' | + cut -d':' -f2 | + tr -d ' ' | + tail -n1$ + let width_size = unsafe $hyprctl activewindow | + grep 'size:' | + cut -d':' -f2 | + tr -d ' ' | + tail -n1 | + sed s/,/x/g$ + + if clipboard { + unsafe $grim -g "{width_position} {width_size}" - | wl-copy$ + } else { + unsafe $cd "{output_directory}" && + grim -g "{width_position} {width_size}" - | + tee "{output_file}" | + wl-copy$ + } + + notify(clipboard, "window") +} + +fun screenshot_monitor(clipboard: Bool): Null { + if clipboard { + unsafe $grim -o "{get_focused_monitor()}" - | wl-copy$ + } else { + unsafe $cd "{output_directory}" && + grim -o "{get_focused_monitor()}" - | + tee "{output_file}" | + wl-copy$ + } + + notify(clipboard, "monitor") +} + +fun screenshot_area(clipboard: Bool): Null { + // slurp -b 1B1F28CC -c E06B74ff -s C778DD0D -w 2 + + if clipboard { + unsafe $grim -g "{unsafe $slurp$}" - | wl-copy$ + } else { + unsafe $cd "{output_directory}" && + grim -g "{unsafe $slurp$}" - | + tee "{output_file}" | + wl-copy$ + } + + notify(clipboard, "area") +} + +fun screenshot(mode: Text, clipboard: Bool): Null { + if { + mode == "now" { + screenshot_now(clipboard) + } + mode == "window" { + screenshot_window(clipboard) + } + mode == "monitor" { + screenshot_monitor(clipboard) + } + mode == "area" { + screenshot_area(clipboard) + } + else { + echo "usage: {unsafe $echo "\${0}"$} [flags]\n" + echo "flags:" + echo " --now" + echo " --window" + echo " --area" + echo " --monitor" + echo " --clipboard" + echo " --help" + echo "" + } + } +} + +main { + if unsafe $test -d "{output_directory}" && + echo 'true' || + echo 'false'$ == "false" + { + $mkdir -p "{output_directory}"$ failed { + notify_command("Failed to create output directory.") + + fail status + } + } + + screenshot( + unsafe $echo "\${1}" | sed -E s/--//g$, + unsafe $echo "\${2}"$ == "--clipboard" + ) +} diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/switch_workspace b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/switch_workspace index fc8900c..fc8900c 100755 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/switch_workspace +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/switch_workspace diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/toggle_gaps b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/toggle_gaps index d593ab2..d593ab2 100755 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/toggle_gaps +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/toggle_gaps diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/toggle_layout b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/toggle_layout index 1ef8774..1ef8774 100755 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/scripts/toggle_layout +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/scripts/toggle_layout diff --git a/home/ebisu/meta/desktop/wayland/hyprland/hyprland/workspaces.nix b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/workspaces.nix new file mode 100644 index 0000000..99599d3 --- /dev/null +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprland/workspaces.nix @@ -0,0 +1,45 @@ +{ config, pkgs, ... }: +{ + wayland.windowManager.hyprland.settings.workspace = + ( + let + generateWorkspaces = + monitor: workspaces: offset: + builtins.genList ( + x: + let + ws = + let + c = (x + 1) / workspaces; + in + builtins.toString (x + 1 - (c * workspaces)); + in + [ "${toString (x + offset + 1)}, monitor:${monitor}" ] + ) workspaces; + generateWorkspacesAll = + monitors: tags: + builtins.concatLists ( + builtins.map ( + monitor: + generateWorkspaces (builtins.elemAt monitors monitor) tags ( + builtins.elemAt (builtins.genList (index: index * tags) (builtins.length monitors)) monitor + ) + ) (builtins.genList (index: index) (builtins.length monitors)) + ); + in + builtins.concatLists ( + generateWorkspacesAll [ + "DP-2" + "HDMI-A-2" + "DP-1" + ] 10 + ) + ) + ++ [ + "special:simple_terminal, on-created-empty:[float;center;size 50% 65%] ${pkgs.kitty}/bin/kitty --class simple_terminal" + "special:simple_calculator, on-created-empty:[float;center;size 50% 50%] ${pkgs.kitty}/bin/kitty --class simple_calculator -e bc -lq" + "special:chatgpt, on-created-empty:[float;center;size 65% 75%] thorium --user-data-dir=${config.home.homeDirectory}/.local/share/thorium-browser-chatgpt --app='https://chatgpt.com/'" + "special:spotify, on-created-empty:[float;center;size 65% 90%] ${pkgs.spotify}/bin/spotify" + "special:calculator, on-created-empty:[float;center;size 50% 50%] ${pkgs.qalculate-gtk}/bin/qalculate-gtk" + ]; +} diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprlock/default.nix b/home/ebisu/meta/desktop/wayland/hyprland/hyprlock.nix index 727ced0..2577702 100644 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprlock/default.nix +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprlock.nix @@ -1,4 +1,11 @@ -{ config, ... }: { +{ config, ... }: +let + colourScheme = builtins.fromJSON ( + builtins.readFile "${config.home.homeDirectory}/.cache/wal/colors.json" + ); + replaceHash = str: builtins.replaceStrings [ "#" ] [ "" ] str; +in +{ programs.hyprlock = { enable = true; @@ -10,11 +17,7 @@ grace = 10; }; - background = [ - { - path = "${config.home.homeDirectory}/.local/share/bg"; - } - ]; + background = [ { path = "${config.home.homeDirectory}/.local/share/bg"; } ]; input-field = [ { diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprpaper/default.nix b/home/ebisu/meta/desktop/wayland/hyprland/hyprpaper.nix index ce6c79a..ce6c79a 100644 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprpaper/default.nix +++ b/home/ebisu/meta/desktop/wayland/hyprland/hyprpaper.nix diff --git a/home/ebisu/meta/desktop/wayland/hyprland/inspo.txt b/home/ebisu/meta/desktop/wayland/hyprland/inspo.txt new file mode 100644 index 0000000..39d2483 --- /dev/null +++ b/home/ebisu/meta/desktop/wayland/hyprland/inspo.txt @@ -0,0 +1,4 @@ +https://github.com/codingjerk/dotfiles/blob/main/config/hypr/hyprland.conf +https://github.com/JoshM-Yoru/dotfiles/blob/main/hypr/hyprland.conf +https://github.com/end-4/dots-hyprland/blob/main/.config/hypr/hyprland.conf +https://github.com/Andy3153/hyprland-rice
\ No newline at end of file diff --git a/home/ebisu/meta/desktop/wayland/mako.nix b/home/ebisu/meta/desktop/wayland/mako.nix new file mode 100644 index 0000000..4ec2a09 --- /dev/null +++ b/home/ebisu/meta/desktop/wayland/mako.nix @@ -0,0 +1,59 @@ +{ pkgs, config, ... }: +let + colourScheme = builtins.fromJSON ( + builtins.readFile "${config.home.homeDirectory}/.cache/wal/colors.json" + ); +in +{ + services.mako.enable = true; + + xdg.configFile."mako/config".text = '' + font=SF Mono 11 + + layer=overlay + + anchor=top-right + width=330 + padding=10 + margin=10 + border-radius=10 + outer-margin=0 + + default-timeout=5000 + max-history=0 + ignore-timeout=1 + + format=%s\n%b + + icons=1 + # max-icon-size=32 + + max-visible=-1 + + border-color=#00000040 + border-size=1 + + background-color=${colourScheme.colors.color0} + text-color=${colourScheme.colors.color15} + + # [urgency=low] + # border-color=${colourScheme.colors.color2} + # background-color=${colourScheme.colors.color4} + # text-color=${colourScheme.colors.color6} + + # [urgency=normal] + # border-color=${colourScheme.colors.color1} + # background-color=${colourScheme.colors.color3} + # text-color=${colourScheme.colors.color5} + # default-timeout=10000 + # ignore-timeout=1 + + # [urgency=high] + # font=Sauce Code Pro 16 + # border-color=${colourScheme.colors.color1} + # background-color=${colourScheme.colors.color2} + # text-color=${colourScheme.colors.color6} + # default-timeout=0 + # ignore-timeout=1 + ''; +} diff --git a/home/fuwn/meta/desktop/wayland/screenshot/default.nix b/home/ebisu/meta/desktop/wayland/screenshot.nix index 5900ee2..5900ee2 100644 --- a/home/fuwn/meta/desktop/wayland/screenshot/default.nix +++ b/home/ebisu/meta/desktop/wayland/screenshot.nix diff --git a/home/ebisu/meta/desktop/wayland/waybar/default.nix b/home/ebisu/meta/desktop/wayland/waybar/default.nix new file mode 100644 index 0000000..698ebb3 --- /dev/null +++ b/home/ebisu/meta/desktop/wayland/waybar/default.nix @@ -0,0 +1,96 @@ +{ pkgs, ... }: +{ + programs.waybar = { + enable = true; + style = ./waybar/style.css; + + settings = ( + let + defaultModules = (import ./waybar/default-modules.nix { inherit pkgs; }); + hyprland-workspaces-base = { + disable-scroll = true; + disable-markup = false; + all-outputs = false; + format = "{icon}"; + }; + in + [ + ( + defaultModules + // { + output = "HDMI-A-2"; + "hyprland/workspaces" = hyprland-workspaces-base // { + format-icons = { + "11" = "一"; + "12" = "二"; + "13" = "三"; + "14" = "四"; + "15" = "五"; + "16" = "六"; + "17" = "七"; + "18" = "八"; + "19" = "九"; + "20" = "十"; + }; + }; + } + ) + ( + defaultModules + // { + output = "DP-2"; + "hyprland/workspaces" = hyprland-workspaces-base // { + format-icons = { + "1" = "一"; + "2" = "二"; + "3" = "三"; + "4" = "四"; + "5" = "五"; + "6" = "六"; + "7" = "七"; + "8" = "八"; + "9" = "九"; + "10" = "十"; + }; + }; + } + ) + ( + defaultModules + // { + output = "DP-1"; + "hyprland/workspaces" = hyprland-workspaces-base // { + format-icons = { + "21" = "一"; + "22" = "二"; + "23" = "三"; + "24" = "四"; + "25" = "五"; + "26" = "六"; + "27" = "七"; + "28" = "八"; + "29" = "九"; + "30" = "十"; + }; + }; + } + ) + ] + ); + }; + + xdg.configFile = ( + let + scripts = [ "mediaplayer.py" ]; + in + (builtins.listToAttrs ( + map (script: { + name = "waybar/scripts/${script}"; + + value = { + source = ./waybar/scripts/${script}; + }; + }) scripts + )) + ); +} diff --git a/home/fuwn/meta/desktop/wayland/waybar/waybar/default-modules.nix b/home/ebisu/meta/desktop/wayland/waybar/waybar/default-modules.nix index a793332..07d741d 100644 --- a/home/fuwn/meta/desktop/wayland/waybar/waybar/default-modules.nix +++ b/home/ebisu/meta/desktop/wayland/waybar/waybar/default-modules.nix @@ -1,4 +1,14 @@ -{ pkgs, ... }: { +{ pkgs, ... }: +let + python-shell = pkgs.mkShell { + packages = [ + (pkgs.python3.withPackages (python-pkgs: [ python-pkgs.pygobject3 ])) + pkgs.playerctl + pkgs.gobject-introspection + ]; + }; +in +{ layer = "top"; position = "top"; margin-left = 8; @@ -35,7 +45,7 @@ critical = 90; }; - on-click = "kitty -e '${pkgs.bottom}/bin/btm'"; + on-click = "${pkgs.kitty}/bin/kitty -e '${pkgs.bottom}/bin/btm'"; }; memory = { @@ -57,7 +67,7 @@ format = " {bandwidthUpBytes} {bandwidthDownBytes}"; format-disconnected = "⚠ Disconnected"; tooltip-format = "{ifname}: {ipaddr}"; - on-click = "kitty -e 'nmtui'"; + on-click = "${pkgs.kitty}/bin/kitty -e 'nmtui'"; }; "hyprland/mode" = { @@ -133,7 +143,7 @@ }; escape = true; - exec = "/usr/bin/env python3 ~/.config/waybar/scripts/mediaplayer.py 2> /dev/null"; + exec = "${python-shell}/bin/python3 ~/.config/waybar/scripts/mediaplayer.py 2> /dev/null"; on-click = "${pkgs.playerctl}/bin/playerctl play-pause"; on-scroll-up = "${pkgs.playerctl}/bin/playerctl next"; on-scroll-down = "${pkgs.playerctl}/bin/playerctl previous"; @@ -165,7 +175,16 @@ # format-icons = ["░", "▒", "▓", "█", "█", "█", "█", "█"] # format-icons = ["⎺", "⎻", "⎼", "⎽", "⎼", "⎻", "⎺", "⎹"] # format-icons = ["▏", "▎", "▍", "▌", "▋", "▊", "▉", "█"] - format-icons = [ "⠁" "⠃" "⠇" "⠋" "⠛" "⠟" "⠿" "⣿" ]; + format-icons = [ + "⠁" + "⠃" + "⠇" + "⠋" + "⠛" + "⠟" + "⠿" + "⣿" + ]; # format-icons = ["◰", "◳", "◲", "◱", "▘", "▝", "▖", "▗"] # format-icons = ["▖", "▗", "▘", "▝", "▚", "▞", "▛", "▟"] # format-icons = ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█", "▉", "▊"] @@ -187,7 +206,7 @@ exec = "nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader | sed 's/ %/%/'"; interval = 5; format = " {}"; - on-click = "kitty -e 'nvtop'"; + on-click = "${pkgs.kitty}/bin/kitty -e '${pkgs.nvtopPackages.nvidia}/bin/nvtop'"; }; modules-left = [ @@ -197,12 +216,10 @@ "image#album-art" ]; - modules-center = [ - "clock" - ]; + modules-center = [ "clock" ]; modules-right = [ - "cava" + # "cava" # "network" "tray" "cpu" diff --git a/home/fuwn/meta/desktop/wayland/waybar/waybar/scripts/mediaplayer.py b/home/ebisu/meta/desktop/wayland/waybar/waybar/scripts/mediaplayer.py index c44ee0b..c44ee0b 100755 --- a/home/fuwn/meta/desktop/wayland/waybar/waybar/scripts/mediaplayer.py +++ b/home/ebisu/meta/desktop/wayland/waybar/waybar/scripts/mediaplayer.py diff --git a/home/ebisu/meta/desktop/wayland/waybar/waybar/scripts/mediaplayer.py.bak b/home/ebisu/meta/desktop/wayland/waybar/waybar/scripts/mediaplayer.py.bak new file mode 100755 index 0000000..1630d97 --- /dev/null +++ b/home/ebisu/meta/desktop/wayland/waybar/waybar/scripts/mediaplayer.py.bak @@ -0,0 +1,128 @@ +#!/usr/bin/env python3 +import argparse +import logging +import sys +import signal +import gi +import json +gi.require_version('Playerctl', '2.0') +from gi.repository import Playerctl, GLib + +logger = logging.getLogger(__name__) + + +def write_output(text, player): + logger.info('Writing output') + + output = {'text': text, + 'class': 'custom-' + player.props.player_name, + 'alt': player.props.player_name} + + sys.stdout.write(json.dumps(output) + '\n') + sys.stdout.flush() + + +def on_play(player, status, manager): + logger.info('Received new playback status') + on_metadata(player, player.props.metadata, manager) + + +def on_metadata(player, metadata, manager): + logger.info('Received new metadata') + track_info = '' + + if player.props.player_name == 'spotify' and \ + 'mpris:trackid' in metadata.keys() and \ + ':ad:' in player.props.metadata['mpris:trackid']: + track_info = 'AD PLAYING' + elif player.get_artist() != '' and player.get_title() != '': + track_info = '{artist} - {title}'.format(artist=player.get_artist(), + title=player.get_title()) + else: + track_info = player.get_title() + + if player.props.status != 'Playing' and track_info: + track_info = ' ' + track_info + write_output(track_info, player) + + +def on_player_appeared(manager, player, selected_player=None): + if player is not None and (selected_player is None or player.name == selected_player): + init_player(manager, player) + else: + logger.debug("New player appeared, but it's not the selected player, skipping") + + +def on_player_vanished(manager, player): + logger.info('Player has vanished') + sys.stdout.write('\n') + sys.stdout.flush() + + +def init_player(manager, name): + logger.debug('Initialize player: {player}'.format(player=name.name)) + player = Playerctl.Player.new_from_name(name) + player.connect('playback-status', on_play, manager) + player.connect('metadata', on_metadata, manager) + manager.manage_player(player) + on_metadata(player, player.props.metadata, manager) + + +def signal_handler(sig, frame): + logger.debug('Received signal to stop, exiting') + sys.stdout.write('\n') + sys.stdout.flush() + # loop.quit() + sys.exit(0) + + +def parse_arguments(): + parser = argparse.ArgumentParser() + + # Increase verbosity with every occurrence of -v + parser.add_argument('-v', '--verbose', action='count', default=0) + + # Define for which player we're listening + parser.add_argument('--player') + + return parser.parse_args() + + +def main(): + arguments = parse_arguments() + + # Initialize logging + logging.basicConfig(stream=sys.stderr, level=logging.DEBUG, + format='%(name)s %(levelname)s %(message)s') + + # Logging is set by default to WARN and higher. + # With every occurrence of -v it's lowered by one + logger.setLevel(max((3 - arguments.verbose) * 10, 0)) + + # Log the sent command line arguments + logger.debug('Arguments received {}'.format(vars(arguments))) + + manager = Playerctl.PlayerManager() + loop = GLib.MainLoop() + + manager.connect('name-appeared', lambda *args: on_player_appeared(*args, arguments.player)) + manager.connect('player-vanished', on_player_vanished) + + signal.signal(signal.SIGINT, signal_handler) + signal.signal(signal.SIGTERM, signal_handler) + signal.signal(signal.SIGPIPE, signal.SIG_DFL) + + for player in manager.props.player_names: + if arguments.player is not None and arguments.player != player.name: + logger.debug('{player} is not the filtered player, skipping it' + .format(player=player.name) + ) + continue + + init_player(manager, player) + + loop.run() + + +if __name__ == '__main__': + main() diff --git a/home/fuwn/meta/desktop/wayland/waybar/waybar/style.css b/home/ebisu/meta/desktop/wayland/waybar/waybar/style.css index 9a85e83..121c792 100644 --- a/home/fuwn/meta/desktop/wayland/waybar/waybar/style.css +++ b/home/ebisu/meta/desktop/wayland/waybar/waybar/style.css @@ -1,4 +1,4 @@ -@import "/home/fuwn/.cache/wal/colors-waybar.css"; +@import "/home/ebisu/.cache/wal/colors-waybar.css"; * { /* font-family: CartographCF Nerd Font, Iosevka Nerd Font, cursive; */ diff --git a/home/ebisu/meta/desktop/wayland/waybar/waybar/style.css.bak b/home/ebisu/meta/desktop/wayland/waybar/waybar/style.css.bak new file mode 100644 index 0000000..3858c71 --- /dev/null +++ b/home/ebisu/meta/desktop/wayland/waybar/waybar/style.css.bak @@ -0,0 +1,221 @@ +@import "colors-waybar.css"; + +* { + font-family: CartographCF Nerd Font, Iosevka Nerd Font, cursive; + font-size: 14px; +} + +window#waybar { + background-color: rgba(0, 0, 0, 0); + color: @foreground; + transition-property: background-color; + transition-duration: 0.5s; +} + +window#waybar.hidden { + opacity: 0.1; +} + +#window { + color: @foreground; +} + +#clock, +#cpu, +#memory, +#custom-media, +#tray, +#mode, +#workspaces, +#battery, +#idle_inhibitor, +#window, +#custom-power-menu, +#custom-wallpaper, +#custom-launcher, +#custom-spotify, +#custom-weather, +#custom-theme, +#custom-weather.severe, +#custom-weather.sunnyDay, +#custom-weather.clearNight, +#custom-weather.cloudyFoggyDay, +#custom-weather.cloudyFoggyNight, +#custom-weather.rainyDay, +#custom-weather.rainyNight, +#custom-weather.showyIcyDay, +#custom-weather.snowyIcyNight, +#custom-weather.default { + color: @foreground; + padding: 2px 10px; + background-color: @background; + border-radius: 8px; + margin: 6px 3px 0; +} + +#window { + color: @color8; +} + +#custom-launcher { + color: @color9; + padding: 0 20px 0 20px; + margin-left: 8px; +} + +#cpu { + /* color: @color10; */ + color: @foreground; +} + +#memory { + /* color: @color11; */ + color: @foreground; +} + +#workspaces {} + +#workspaces button { + color: @color10; + box-shadow: inset 0 -3px transparent; + margin-right: 0em; + transition: all 0.5s cubic-bezier(0.55, -0.68, 0.48, 1.68); +} + +#workspaces button.active { + color: @foreground; + margin-right: 0em; + transition: all 0.5s cubic-bezier(0.55, -0.68, 0.48, 1.68); +} + +/* If workspaces is the leftmost module, omit left margin */ +.modules-left>widget:first-child>#workspaces { + margin-left: 0; +} + +/* If workspaces is the rightmost module, omit right margin */ +.modules-right>widget:last-child>#workspaces { + margin-right: 0; +} + +#tray {} + +#tray>.passive { + -gtk-icon-effect: dim; +} + +#tray>.needs-attention { + -gtk-icon-effect: highlight; + background-color: #eb4d4b; +} + +#custom-spotify { + /* color: @color10; */ + color: @color8; +} + +#custom-wallpaper { + padding: 0 18px 0 12px; + color: @color14; +} + +#custom-theme { + padding: 0 18px 0 12px; + color: @color13; +} + +#bluetooth, +#backlight, +#pulseaudio, +#network { + color: @color5; + background-color: @background; + padding: 0 12px; + margin: 6px 0 0; +} + +#bluetooth { + border-radius: 8px 0px 0px 8px; + /* color: @color11; */ + margin-left: 3px; + border-right: none; +} + +#network { + color: @color13; + padding-right: 14px; + border-right: none; + border-left: none; +} + +#network.disconnected { + color: @color11; +} + +#pulseaudio { + /* color: @color10; */ + border-left: none; + /* border-right: none; */ + border-radius: 0 8px 8px 0; + padding-right: 12px; +} + +#pulseaudio.muted { + color: @color11; +} + +#backlight { + margin-right: 3px; + padding-right: 8px; + color: @color13; + border-radius: 0 8px 8px 0; + border-left: none; +} + +#battery { + color: @color9; + border-radius: 8px; + padding: 0 12px; +} + +#battery.critical, +#battery.warning, +#battery.full, +#battery.plugged { + color: @color15; +} + +#clock { + color: @foreground; + margin-left: 6px; +} + +#custom-power-menu { + color: @color10; + margin-right: 8px; + padding: 0 12px 0 10px; +} + +@keyframes blink { + to { + background-color: rgba(30, 34, 42, 0.5); + color: #abb2bf; + } +} + +tooltip { + border-radius: 15px; + padding: 15px; + background-color: @background; + color: @foreground; + font-family: CartographCF Nerd Font; +} + +tooltip label { + padding: 5px; + color: @foreground; +} + +label:focus { + background-color: @background; +} diff --git a/home/ebisu/meta/desktop/wayland/wlogout.nix b/home/ebisu/meta/desktop/wayland/wlogout.nix new file mode 100644 index 0000000..5e20380 --- /dev/null +++ b/home/ebisu/meta/desktop/wayland/wlogout.nix @@ -0,0 +1,114 @@ +{ pkgs, config, ... }: +{ + home.packages = with pkgs; [ wlogout ]; + + xdg.configFile = { + "wlogout/layout".text = '' + { + "label" : "lock", + "action" : "hyprlock", + "text" : "鍵をかける", + "keybind" : "l" + } + { + "label" : "hibernate", + "action" : "hyprctl dispatch dpms off", + "text" : "ハイブネート", + "keybind" : "h" + } + { + "label" : "logout", + "action" : "hyprctl dispatch exit", + "text" : "WMを出る", + "keybind" : "e" + } + { + "label" : "shutdown", + "action" : "doas systemctl poweroff -i", + "text" : "シャットダウン", + "keybind" : "s" + } + { + "label" : "suspend", + "action" : "doas systemctl suspend -i && hyprlock", + "text" : "寝", + "keybind" : "u" + } + { + "label" : "reboot", + "action" : "doas systemctl reboot -i", + "text" : "再起動", + "keybind" : "r" + } + ''; + + "wlogout/style.css".text = '' + @import "/home/${config.home.username}/.cache/wal/colors-waybar.css"; + + * { + background-image: none; + box-shadow: none; + } + + window { + background-color: rgba(0, 0, 0, 0.5); + } + + button { + opacity: 0.95; + border-radius: 10px; + border-color: black; + text-decoration-color: @foreground; + color: @foreground; + background-color: @background; + border-style: none; + background-repeat: no-repeat; + background-position: center; + background-size: 25%; + margin: 5px; + } + + button:focus, + button:active, + button:hover { + background-color: @color11; + } + + #lock { + background-image: image( + url("/home/${config.home.username}/.nix-profile/share/wlogout/icons/lock.png") + ); + } + + #logout { + background-image: image( + url("/home/${config.home.username}/.nix-profile/share/wlogout/icons/logout.png") + ); + } + + #suspend { + background-image: image( + url("/home/${config.home.username}/.nix-profile/share/wlogout/icons/suspend.png") + ); + } + + #hibernate { + background-image: image( + url("/home/${config.home.username}/.nix-profile/share/wlogout/icons/hibernate.png") + ); + } + + #shutdown { + background-image: image( + url("/home/${config.home.username}/.nix-profile/share/wlogout/icons/shutdown.png") + ); + } + + #reboot { + background-image: image( + url("/home/${config.home.username}/.nix-profile/share/wlogout/icons/reboot.png") + ); + } + ''; + }; +} diff --git a/home/fuwn/meta/desktop/xorg/default.nix b/home/ebisu/meta/desktop/xorg/default.nix index 801a736..801a736 100644 --- a/home/fuwn/meta/desktop/xorg/default.nix +++ b/home/ebisu/meta/desktop/xorg/default.nix diff --git a/home/fuwn/meta/development/database/default.nix b/home/ebisu/meta/development/database/default.nix index 95f57eb..95f57eb 100644 --- a/home/fuwn/meta/development/database/default.nix +++ b/home/ebisu/meta/development/database/default.nix diff --git a/home/fuwn/meta/development/default.nix b/home/ebisu/meta/development/default.nix index 7f2a70f..7f2a70f 100644 --- a/home/fuwn/meta/development/default.nix +++ b/home/ebisu/meta/development/default.nix diff --git a/home/fuwn/meta/development/git/default.nix b/home/ebisu/meta/development/git/default.nix index 260b0f6..260b0f6 100644 --- a/home/fuwn/meta/development/git/default.nix +++ b/home/ebisu/meta/development/git/default.nix diff --git a/home/fuwn/meta/development/infrastructure/default.nix b/home/ebisu/meta/development/infrastructure/default.nix index 7f43f0b..7f43f0b 100644 --- a/home/fuwn/meta/development/infrastructure/default.nix +++ b/home/ebisu/meta/development/infrastructure/default.nix diff --git a/home/fuwn/meta/development/languages/agnostic/default.nix b/home/ebisu/meta/development/languages/agnostic/default.nix index e726fae..e726fae 100644 --- a/home/fuwn/meta/development/languages/agnostic/default.nix +++ b/home/ebisu/meta/development/languages/agnostic/default.nix diff --git a/home/fuwn/meta/development/languages/assembly/default.nix b/home/ebisu/meta/development/languages/assembly/default.nix index b593a41..b593a41 100644 --- a/home/fuwn/meta/development/languages/assembly/default.nix +++ b/home/ebisu/meta/development/languages/assembly/default.nix diff --git a/home/fuwn/meta/development/languages/cobol/default.nix b/home/ebisu/meta/development/languages/cobol/default.nix index 82e5464..82e5464 100644 --- a/home/fuwn/meta/development/languages/cobol/default.nix +++ b/home/ebisu/meta/development/languages/cobol/default.nix diff --git a/home/fuwn/meta/development/languages/crystal/default.nix b/home/ebisu/meta/development/languages/crystal/default.nix index 51a0846..51a0846 100644 --- a/home/fuwn/meta/development/languages/crystal/default.nix +++ b/home/ebisu/meta/development/languages/crystal/default.nix diff --git a/home/fuwn/meta/development/languages/csharp/default.nix b/home/ebisu/meta/development/languages/csharp/default.nix index b8f8285..b8f8285 100644 --- a/home/fuwn/meta/development/languages/csharp/default.nix +++ b/home/ebisu/meta/development/languages/csharp/default.nix diff --git a/home/fuwn/meta/development/languages/default.nix b/home/ebisu/meta/development/languages/default.nix index 05cfd95..05cfd95 100644 --- a/home/fuwn/meta/development/languages/default.nix +++ b/home/ebisu/meta/development/languages/default.nix diff --git a/home/fuwn/meta/development/languages/gleam/default.nix b/home/ebisu/meta/development/languages/gleam/default.nix index de1ab92..de1ab92 100644 --- a/home/fuwn/meta/development/languages/gleam/default.nix +++ b/home/ebisu/meta/development/languages/gleam/default.nix diff --git a/home/fuwn/meta/development/languages/go/default.nix b/home/ebisu/meta/development/languages/go/default.nix index a248efd..a248efd 100644 --- a/home/fuwn/meta/development/languages/go/default.nix +++ b/home/ebisu/meta/development/languages/go/default.nix diff --git a/home/fuwn/meta/development/languages/hare/default.nix b/home/ebisu/meta/development/languages/hare/default.nix index 79fc13b..79fc13b 100644 --- a/home/fuwn/meta/development/languages/hare/default.nix +++ b/home/ebisu/meta/development/languages/hare/default.nix diff --git a/home/fuwn/meta/development/languages/haskell/default.nix b/home/ebisu/meta/development/languages/haskell/default.nix index f9a17ce..f9a17ce 100644 --- a/home/fuwn/meta/development/languages/haskell/default.nix +++ b/home/ebisu/meta/development/languages/haskell/default.nix diff --git a/home/fuwn/meta/development/languages/javascript/default.nix b/home/ebisu/meta/development/languages/javascript/default.nix index 26b320d..26b320d 100644 --- a/home/fuwn/meta/development/languages/javascript/default.nix +++ b/home/ebisu/meta/development/languages/javascript/default.nix diff --git a/home/fuwn/meta/development/languages/jvm/default.nix b/home/ebisu/meta/development/languages/jvm/default.nix index 86f9708..86f9708 100644 --- a/home/fuwn/meta/development/languages/jvm/default.nix +++ b/home/ebisu/meta/development/languages/jvm/default.nix diff --git a/home/fuwn/meta/development/languages/nim/default.nix b/home/ebisu/meta/development/languages/nim/default.nix index 4dcb2cf..4dcb2cf 100644 --- a/home/fuwn/meta/development/languages/nim/default.nix +++ b/home/ebisu/meta/development/languages/nim/default.nix diff --git a/home/fuwn/meta/development/languages/other/default.nix b/home/ebisu/meta/development/languages/other/default.nix index a0c7eb0..a0c7eb0 100644 --- a/home/fuwn/meta/development/languages/other/default.nix +++ b/home/ebisu/meta/development/languages/other/default.nix diff --git a/home/fuwn/meta/development/languages/protobuf/default.nix b/home/ebisu/meta/development/languages/protobuf/default.nix index 21dd9f7..21dd9f7 100644 --- a/home/fuwn/meta/development/languages/protobuf/default.nix +++ b/home/ebisu/meta/development/languages/protobuf/default.nix diff --git a/home/fuwn/meta/development/languages/python/default.nix b/home/ebisu/meta/development/languages/python/default.nix index 34112a2..34112a2 100644 --- a/home/fuwn/meta/development/languages/python/default.nix +++ b/home/ebisu/meta/development/languages/python/default.nix diff --git a/home/fuwn/meta/development/languages/rust/default.nix b/home/ebisu/meta/development/languages/rust/default.nix index 02360d1..02360d1 100644 --- a/home/fuwn/meta/development/languages/rust/default.nix +++ b/home/ebisu/meta/development/languages/rust/default.nix diff --git a/home/fuwn/meta/development/languages/shell/default.nix b/home/ebisu/meta/development/languages/shell/default.nix index 6476dca..6476dca 100644 --- a/home/fuwn/meta/development/languages/shell/default.nix +++ b/home/ebisu/meta/development/languages/shell/default.nix diff --git a/home/fuwn/meta/development/languages/tex/default.nix b/home/ebisu/meta/development/languages/tex/default.nix index 0b88179..0b88179 100644 --- a/home/fuwn/meta/development/languages/tex/default.nix +++ b/home/ebisu/meta/development/languages/tex/default.nix diff --git a/home/fuwn/meta/development/languages/vlang/default.nix b/home/ebisu/meta/development/languages/vlang/default.nix index d9da941..d9da941 100644 --- a/home/fuwn/meta/development/languages/vlang/default.nix +++ b/home/ebisu/meta/development/languages/vlang/default.nix diff --git a/home/fuwn/meta/development/languages/yaml/default.nix b/home/ebisu/meta/development/languages/yaml/default.nix index cd91d5e..cd91d5e 100644 --- a/home/fuwn/meta/development/languages/yaml/default.nix +++ b/home/ebisu/meta/development/languages/yaml/default.nix diff --git a/home/fuwn/meta/development/languages/zig/default.nix b/home/ebisu/meta/development/languages/zig/default.nix index 98f1ad9..98f1ad9 100644 --- a/home/fuwn/meta/development/languages/zig/default.nix +++ b/home/ebisu/meta/development/languages/zig/default.nix diff --git a/home/fuwn/meta/development/languages/zig/zls/default.nix b/home/ebisu/meta/development/languages/zig/zls/default.nix index 7aba4eb..7aba4eb 100644 --- a/home/fuwn/meta/development/languages/zig/zls/default.nix +++ b/home/ebisu/meta/development/languages/zig/zls/default.nix diff --git a/home/fuwn/meta/development/nix/default.nix b/home/ebisu/meta/development/nix/default.nix index 4a1519e..6fa9049 100644 --- a/home/fuwn/meta/development/nix/default.nix +++ b/home/ebisu/meta/development/nix/default.nix @@ -7,5 +7,6 @@ nix-init nix-prefetch-git nixpkgs-fmt + nixfmt-rfc-style ]; } diff --git a/home/fuwn/meta/development/tools/build/default.nix b/home/ebisu/meta/development/tools/build/default.nix index 6dff41a..6dff41a 100644 --- a/home/fuwn/meta/development/tools/build/default.nix +++ b/home/ebisu/meta/development/tools/build/default.nix diff --git a/home/fuwn/meta/development/tools/default.nix b/home/ebisu/meta/development/tools/default.nix index 49928f2..982b281 100644 --- a/home/fuwn/meta/development/tools/default.nix +++ b/home/ebisu/meta/development/tools/default.nix @@ -15,5 +15,6 @@ wakatime-cli linuxKernel.packages.linux_lqx.perf radare2 + global ]; } diff --git a/home/ebisu/meta/editor/default.nix b/home/ebisu/meta/editor/default.nix new file mode 100644 index 0000000..183fb72 --- /dev/null +++ b/home/ebisu/meta/editor/default.nix @@ -0,0 +1,12 @@ +{ pkgs, config, ... }: +{ + imports = [ ./vscode-fhs.nix ]; + + home.packages = with pkgs; [ + emacs + neovide + # jetbrains.clion + lunarvim + zed-editor + ]; +} diff --git a/home/ebisu/meta/editor/vscode-fhs.nix b/home/ebisu/meta/editor/vscode-fhs.nix new file mode 100644 index 0000000..59f6b73 --- /dev/null +++ b/home/ebisu/meta/editor/vscode-fhs.nix @@ -0,0 +1,23 @@ +{ pkgs, ... }: +{ + home.packages = with pkgs; [ vscode-fhs ]; + + xdg.configFile."code-flags.conf".text = '' + --enable-features=UseOzonePlatform,WaylandWindowDecorations,WebRTCPipeWireCapturer,TouchpadOverscrollHistoryNavigation + --ozone-platform=wayland + --ignore-gpu-blocklist + --enable-gpu-rasterization + --enable-zero-copy + --disable-gpu-driver-bug-workarounds + --enable-features=VaapiVideoDecoder + --enable-native-gpu-memory-buffers + --disable-features=UseSkiaRenderer + --use-cmd-decoder=passthrough + --process-per-site + --force-dark-mode + --enable-features=WebUIDarkMode + --enable-unsafe-webgpu + --gtk-version=4 + --enable-wayland-ime + ''; +} diff --git a/home/fuwn/meta/education/calculator/default.nix b/home/ebisu/meta/education/calculator/default.nix index a8bcc7f..a8bcc7f 100644 --- a/home/fuwn/meta/education/calculator/default.nix +++ b/home/ebisu/meta/education/calculator/default.nix diff --git a/home/fuwn/meta/education/default.nix b/home/ebisu/meta/education/default.nix index ccddf02..ccddf02 100644 --- a/home/fuwn/meta/education/default.nix +++ b/home/ebisu/meta/education/default.nix diff --git a/home/fuwn/meta/filesystem/archive/default.nix b/home/ebisu/meta/filesystem/archive/default.nix index f52123b..f52123b 100644 --- a/home/fuwn/meta/filesystem/archive/default.nix +++ b/home/ebisu/meta/filesystem/archive/default.nix diff --git a/home/fuwn/meta/filesystem/core/bat/default.nix b/home/ebisu/meta/filesystem/core/bat/default.nix index c1dad3f..c1dad3f 100644 --- a/home/fuwn/meta/filesystem/core/bat/default.nix +++ b/home/ebisu/meta/filesystem/core/bat/default.nix diff --git a/home/fuwn/meta/filesystem/core/default.nix b/home/ebisu/meta/filesystem/core/default.nix index 6408adb..6408adb 100644 --- a/home/fuwn/meta/filesystem/core/default.nix +++ b/home/ebisu/meta/filesystem/core/default.nix diff --git a/home/fuwn/meta/filesystem/core/eza/default.nix b/home/ebisu/meta/filesystem/core/eza/default.nix index a8d2f57..a8d2f57 100644 --- a/home/fuwn/meta/filesystem/core/eza/default.nix +++ b/home/ebisu/meta/filesystem/core/eza/default.nix diff --git a/home/fuwn/meta/filesystem/default.nix b/home/ebisu/meta/filesystem/default.nix index e06a5eb..c830b18 100644 --- a/home/fuwn/meta/filesystem/default.nix +++ b/home/ebisu/meta/filesystem/default.nix @@ -1,4 +1,5 @@ -{ pkgs, ... }: { +{ pkgs, ... }: +{ imports = [ ./archive ./core @@ -14,5 +15,6 @@ gparted # file-roller ncdu + file ]; } diff --git a/home/fuwn/meta/gaming/default.nix b/home/ebisu/meta/gaming/default.nix index 2d86ea0..2d86ea0 100644 --- a/home/fuwn/meta/gaming/default.nix +++ b/home/ebisu/meta/gaming/default.nix diff --git a/home/fuwn/meta/language/default.nix b/home/ebisu/meta/language/default.nix index d1fa5b1..d1fa5b1 100644 --- a/home/fuwn/meta/language/default.nix +++ b/home/ebisu/meta/language/default.nix diff --git a/home/fuwn/meta/multimedia/audio/default.nix b/home/ebisu/meta/multimedia/audio/default.nix index 7944a63..7944a63 100644 --- a/home/fuwn/meta/multimedia/audio/default.nix +++ b/home/ebisu/meta/multimedia/audio/default.nix diff --git a/home/fuwn/meta/multimedia/audio/spotify/default.nix b/home/ebisu/meta/multimedia/audio/spotify/default.nix index 5276e07..5276e07 100644 --- a/home/fuwn/meta/multimedia/audio/spotify/default.nix +++ b/home/ebisu/meta/multimedia/audio/spotify/default.nix diff --git a/home/ebisu/meta/multimedia/browser/default.nix b/home/ebisu/meta/multimedia/browser/default.nix new file mode 100644 index 0000000..176bc9c --- /dev/null +++ b/home/ebisu/meta/multimedia/browser/default.nix @@ -0,0 +1,19 @@ +{ pkgs, inputs, ... }: +{ + imports = [ + ./thorium.nix + # ./ungoogled-chromium.nix + ]; + + home.packages = with pkgs; [ + # elinks + geckodriver + # lynx + # vieb + # ladybird + web-ext + firefox + tor-browser + (pkgs.callPackage ./zen-browser-bin.nix { }) + ]; +} diff --git a/home/ebisu/meta/multimedia/browser/thorium.nix b/home/ebisu/meta/multimedia/browser/thorium.nix new file mode 100644 index 0000000..e789275 --- /dev/null +++ b/home/ebisu/meta/multimedia/browser/thorium.nix @@ -0,0 +1,47 @@ +{ pkgs, lib, ... }: +let + thorium-archive = pkgs.fetchurl { + url = "https://github.com/Alex313031/thorium/releases/download/M126.0.6478.246/Thorium_Browser_126.0.6478.246_Th24_SSE4.AppImage"; + hash = "sha256-izYbx/mSA+l7fAh917SauHopk3UlUJo+7NjkyIGpnNA="; + }; + + version = "126.0.6478.246_Th24"; + + # https://discourse.nixos.org/t/creating-a-nix-derivation-for-an-appimage/31927 + thorium = pkgs.appimageTools.wrapType2 { + pname = "thorium"; + version = version; + src = "${thorium-archive}"; + + meta = with lib; { + description = "Chromium fork named after radioactive element No. 90. Windows and MacOS/Raspi/Android/Special builds are in different repositories, links are towards the top of the README.md."; + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; + homepage = "https://thorium.rocks/"; + license = licenses.bsd3; + platforms = platforms.linux; + mainProgram = "thorium-browser"; + }; + }; +in +{ + home.packages = [ thorium ]; + + xdg.configFile."thorium-flags.conf".text = '' + --enable-features=UseOzonePlatform,WaylandWindowDecorations,WebRTCPipeWireCapturer,TouchpadOverscrollHistoryNavigation + --ozone-platform=wayland + --ignore-gpu-blocklist + --enable-gpu-rasterization + --enable-zero-copy + --disable-gpu-driver-bug-workarounds + --enable-features=VaapiVideoDecoder + --enable-native-gpu-memory-buffers + --disable-features=UseSkiaRenderer + --use-cmd-decoder=passthrough + --process-per-site + --force-dark-mode + --enable-features=WebUIDarkMode + --enable-unsafe-webgpu + --gtk-version=4 + --enable-wayland-ime + ''; +} diff --git a/home/ebisu/meta/multimedia/browser/ungoogled-chromium.nix b/home/ebisu/meta/multimedia/browser/ungoogled-chromium.nix new file mode 100644 index 0000000..d492697 --- /dev/null +++ b/home/ebisu/meta/multimedia/browser/ungoogled-chromium.nix @@ -0,0 +1,23 @@ +{ pkgs, ... }: +{ + home.packages = with pkgs; [ ungoogled-chromium ]; + + xdg.configFile."chromium-flags.conf".text = '' + --enable-features=UseOzonePlatform,WaylandWindowDecorations,WebRTCPipeWireCapturer,TouchpadOverscrollHistoryNavigation + --ozone-platform=wayland + --ignore-gpu-blocklist + --enable-gpu-rasterization + --enable-zero-copy + --disable-gpu-driver-bug-workarounds + --enable-features=VaapiVideoDecoder + --enable-native-gpu-memory-buffers + --disable-features=UseSkiaRenderer + --use-cmd-decoder=passthrough + --process-per-site + --force-dark-mode + --enable-features=WebUIDarkMode + --enable-unsafe-webgpu + --gtk-version=4 + --enable-wayland-ime + ''; +} diff --git a/home/ebisu/meta/multimedia/browser/zen-browser-bin.nix b/home/ebisu/meta/multimedia/browser/zen-browser-bin.nix new file mode 100644 index 0000000..51a95db --- /dev/null +++ b/home/ebisu/meta/multimedia/browser/zen-browser-bin.nix @@ -0,0 +1,128 @@ +{ + stdenv, + lib, + fetchzip, + makeDesktopItem, + autoPatchelfHook, + wrapGAppsHook3, + copyDesktopItems, + gtk3, + alsa-lib, + dbus-glib, + xorg, + pciutils, + libva, + pipewire, + libglvnd, +}: +let + desktopItem = makeDesktopItem { + name = "zen-browser"; + desktopName = "Zen Browser"; + genericName = "Web Browser"; + categories = [ + "Network" + "WebBrowser" + ]; + keywords = [ + "internet" + "www" + "browser" + "web" + "explorer" + ]; + exec = "zen %u"; + icon = "zen"; + mimeTypes = [ + "text/html" + "text/xml" + "application/xhtml+xml" + "application/vnd.mozilla.xul+xml" + "x-scheme-handler/http" + "x-scheme-handler/https" + ]; + startupNotify = true; + startupWMClass = "zen-alpha"; + terminal = false; + actions = { + new-window = { + name = "New Window"; + exec = "zen --new-window %u"; + }; + new-private-window = { + name = "New Private Window"; + exec = "zen --private-window %u"; + }; + profile-manager-window = { + name = "Profile Manager"; + exec = "zen --ProfileManager %u"; + }; + }; + }; +in +stdenv.mkDerivation rec { + pname = "zen-browser-bin"; + version = "1.0.0-a.32"; + + src = fetchzip { + url = "https://github.com/zen-browser/desktop/releases/download/${version}/zen.linux-specific.tar.bz2"; + hash = "sha256-5Z+RG5UwSHM6sC1WT5KHgwL0cco2DlMTSteEfnLGrlo="; + }; + + desktopItems = [ desktopItem ]; + + nativeBuildInputs = [ + autoPatchelfHook + wrapGAppsHook3 + copyDesktopItems + ]; + + buildInputs = [ + gtk3 + alsa-lib + dbus-glib + xorg.libXtst + ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/lib + cp -r $src $out/lib/zen/ + + mkdir -p $out/bin + ln -s $out/lib/zen/zen $out/bin/zen + + for n in {16,32,48,64,128}; do + size=$n"x"$n + mkdir -p $out/share/icons/hicolor/$size/apps + file="default"$n".png" + cp $out/lib/zen/browser/chrome/icons/default/$file $out/share/icons/hicolor/$size/apps/zen.png + done + + runHook postInstall + ''; + + preFixup = '' + gappsWrapperArgs+=( + --prefix LD_LIBRARY_PATH : "${ + lib.makeLibraryPath [ + pciutils + pipewire + libva + libglvnd + ] + }" + ) + gappsWrapperArgs+=(--set MOZ_LEGACY_PROFILES 1) + wrapGApp $out/lib/zen/zen + ''; + + meta = with lib; { + license = licenses.mpl20; + maintainers = with maintainers; [ mordrag ]; + description = "Experience tranquillity while browsing the web without people tracking you! "; + platforms = platforms.linux; + mainProgram = "zen"; + }; +} diff --git a/home/fuwn/meta/multimedia/default.nix b/home/ebisu/meta/multimedia/default.nix index 86da8c4..86da8c4 100644 --- a/home/fuwn/meta/multimedia/default.nix +++ b/home/ebisu/meta/multimedia/default.nix diff --git a/home/fuwn/meta/multimedia/document/default.nix b/home/ebisu/meta/multimedia/document/default.nix index d6ddbc7..d6ddbc7 100644 --- a/home/fuwn/meta/multimedia/document/default.nix +++ b/home/ebisu/meta/multimedia/document/default.nix diff --git a/home/ebisu/meta/multimedia/image/ahoviewer.nix b/home/ebisu/meta/multimedia/image/ahoviewer.nix new file mode 100644 index 0000000..38524dc --- /dev/null +++ b/home/ebisu/meta/multimedia/image/ahoviewer.nix @@ -0,0 +1,54 @@ +{ + pkgs ? import <nixpkgs> { }, +}: +pkgs.stdenv.mkDerivation rec { + pname = "ahoviewer"; + version = "42e16f9"; + + src = pkgs.fetchFromGitHub { + owner = "ahodesuka"; + repo = pname; + rev = "42e16f94b78496e3e346f0d127baa569039a6757"; + sha256 = "sha256-HcijKiExwyBoWDvMlJ5AMA0U7BtS9EfcA54nfQ/iGvE="; + }; + + buildInputs = with pkgs; [ + meson + ninja + gtkmm3 + gtk3 + libconfig + libxml2 + curl + gst_all_1.gstreamer + gst_all_1.gst-plugins-base + libpeas + libsecret + libzip + ]; + + nativeBuildInputs = [ pkgs.pkg-config ]; + + configurePhase = '' + meson setup build --buildtype=release + ''; + + buildPhase = '' + cd build + ninja + cd .. + ''; + + installPhase = '' + mkdir -p $out/bin + cp build/src/ahoviewer $out/bin + ''; + + meta = with pkgs.lib; { + description = "A GTK image viewer, manga reader, and booru browser"; + homepage = "https://github.com/ahodesuka/ahoviewer"; + license = licenses.mit; + maintainers = with maintainers; [ ]; + platforms = platforms.linux; + }; +} diff --git a/home/fuwn/meta/multimedia/image/default.nix b/home/ebisu/meta/multimedia/image/default.nix index e115cad..5ff22b8 100644 --- a/home/fuwn/meta/multimedia/image/default.nix +++ b/home/ebisu/meta/multimedia/image/default.nix @@ -1,6 +1,7 @@ -{ pkgs, ... }: { +{ pkgs, ... }: +{ home.packages = with pkgs; [ - ahoviewer + (pkgs.callPackage ./ahoviewer.nix { }) emulsion feh imv diff --git a/home/fuwn/meta/multimedia/video/anime/default.nix b/home/ebisu/meta/multimedia/video/anime/default.nix index 75f6bb8..471bb7a 100644 --- a/home/fuwn/meta/multimedia/video/anime/default.nix +++ b/home/ebisu/meta/multimedia/video/anime/default.nix @@ -1,6 +1,7 @@ -{ pkgs, ... }: { +{ pkgs, ... }: +{ home.packages = with pkgs; [ ani-cli - miru + # miru ]; } diff --git a/home/fuwn/meta/multimedia/video/default.nix b/home/ebisu/meta/multimedia/video/default.nix index 1d5a964..1d5a964 100644 --- a/home/fuwn/meta/multimedia/video/default.nix +++ b/home/ebisu/meta/multimedia/video/default.nix diff --git a/home/fuwn/meta/network/default.nix b/home/ebisu/meta/network/default.nix index a7ea06e..a7ea06e 100644 --- a/home/fuwn/meta/network/default.nix +++ b/home/ebisu/meta/network/default.nix diff --git a/home/fuwn/meta/network/smolnet/bollux/default.nix b/home/ebisu/meta/network/smolnet/bollux/default.nix index 4d26eee..4d26eee 100644 --- a/home/fuwn/meta/network/smolnet/bollux/default.nix +++ b/home/ebisu/meta/network/smolnet/bollux/default.nix diff --git a/home/fuwn/meta/network/smolnet/bollux/fix_lesskey_nag.patch b/home/ebisu/meta/network/smolnet/bollux/fix_lesskey_nag.patch index 329b886..329b886 100644 --- a/home/fuwn/meta/network/smolnet/bollux/fix_lesskey_nag.patch +++ b/home/ebisu/meta/network/smolnet/bollux/fix_lesskey_nag.patch diff --git a/home/ebisu/meta/network/smolnet/default.nix b/home/ebisu/meta/network/smolnet/default.nix new file mode 100644 index 0000000..93003c1 --- /dev/null +++ b/home/ebisu/meta/network/smolnet/default.nix @@ -0,0 +1,12 @@ +{ pkgs, config, ... }: +{ + imports = [ ./bollux ]; + + home.packages = with pkgs; [ + amfora + geopard + gmni + phetch + lagrange + ]; +} diff --git a/home/fuwn/meta/network/tools/default.nix b/home/ebisu/meta/network/tools/default.nix index 3b6d59f..3b6d59f 100644 --- a/home/fuwn/meta/network/tools/default.nix +++ b/home/ebisu/meta/network/tools/default.nix diff --git a/home/fuwn/meta/network/tools/http/default.nix b/home/ebisu/meta/network/tools/http/default.nix index c70c2ba..59d6efc 100644 --- a/home/fuwn/meta/network/tools/http/default.nix +++ b/home/ebisu/meta/network/tools/http/default.nix @@ -1,6 +1,8 @@ -{ pkgs, ... }: { +{ pkgs, ... }: +{ imports = [ ./httpie ./yaak + ./wget.nix ]; } diff --git a/home/fuwn/meta/network/tools/http/httpie/default.nix b/home/ebisu/meta/network/tools/http/httpie/default.nix index b917245..b917245 100644 --- a/home/fuwn/meta/network/tools/http/httpie/default.nix +++ b/home/ebisu/meta/network/tools/http/httpie/default.nix diff --git a/home/ebisu/meta/network/tools/http/wget.nix b/home/ebisu/meta/network/tools/http/wget.nix new file mode 100644 index 0000000..c5d2936 --- /dev/null +++ b/home/ebisu/meta/network/tools/http/wget.nix @@ -0,0 +1,8 @@ +{ pkgs, ... }: +{ + home.packages = [ pkgs.wget ]; + + xdg.configFile."wget/wgetrc".text = '' + hsts-file=~/.cache/wget-hsts + ''; +} diff --git a/home/fuwn/meta/network/tools/http/yaak/default.nix b/home/ebisu/meta/network/tools/http/yaak/default.nix index 9a24921..05bf0e7 100644 --- a/home/fuwn/meta/network/tools/http/yaak/default.nix +++ b/home/ebisu/meta/network/tools/http/yaak/default.nix @@ -24,7 +24,5 @@ let }; in { - home.packages = [ - yaak - ]; + home.packages = [ yaak ]; } diff --git a/home/fuwn/meta/network/tools/shark/default.nix b/home/ebisu/meta/network/tools/shark/default.nix index 5305bdf..5305bdf 100644 --- a/home/fuwn/meta/network/tools/shark/default.nix +++ b/home/ebisu/meta/network/tools/shark/default.nix diff --git a/home/fuwn/meta/network/tools/tcp/default.nix b/home/ebisu/meta/network/tools/tcp/default.nix index 6af1824..6af1824 100644 --- a/home/fuwn/meta/network/tools/tcp/default.nix +++ b/home/ebisu/meta/network/tools/tcp/default.nix diff --git a/home/fuwn/meta/rice/bottom/default.nix b/home/ebisu/meta/rice/bottom.nix index 4acf218..4acf218 100644 --- a/home/fuwn/meta/rice/bottom/default.nix +++ b/home/ebisu/meta/rice/bottom.nix diff --git a/home/ebisu/meta/rice/default.nix b/home/ebisu/meta/rice/default.nix new file mode 100644 index 0000000..d2b229e --- /dev/null +++ b/home/ebisu/meta/rice/default.nix @@ -0,0 +1,23 @@ +{ pkgs, ... }: +{ + imports = [ + ./bottom.nix + ./glances.nix + ./fastfetch.nix + ./gtk.nix + ]; + + programs = { + btop.enable = true; + pywal.enable = true; + }; + + home.packages = with pkgs; [ + cpufetch + iotop + nvtopPackages.nvidia + htop-vim + iftop + neofetch + ]; +} diff --git a/home/fuwn/meta/rice/fastfetch/default.nix b/home/ebisu/meta/rice/fastfetch.nix index 8ae6284..fed2677 100644 --- a/home/fuwn/meta/rice/fastfetch/default.nix +++ b/home/ebisu/meta/rice/fastfetch.nix @@ -1,10 +1,11 @@ -{ pkgs, ... }: { +{ pkgs, ... }: +{ programs.fastfetch = { enable = true; settings = { logo = { - source = "~/Downloads/91363-1550240807.png"; + source = "~/Downloads/91363-1550240807.jpg"; width = 30; padding = { diff --git a/home/fuwn/meta/rice/glances/default.nix b/home/ebisu/meta/rice/glances.nix index cda5a63..cda5a63 100644 --- a/home/fuwn/meta/rice/glances/default.nix +++ b/home/ebisu/meta/rice/glances.nix diff --git a/home/ebisu/meta/rice/gtk.nix b/home/ebisu/meta/rice/gtk.nix new file mode 100644 index 0000000..0e4f13c --- /dev/null +++ b/home/ebisu/meta/rice/gtk.nix @@ -0,0 +1,35 @@ +{ pkgs, ... }: { + gtk = { + enable = true; + + iconTheme = { + name = "WhiteSur-dark"; + package = pkgs.whitesur-icon-theme; + }; + + theme = { + name = "WhiteSur-Dark"; + package = pkgs.whitesur-gtk-theme; + }; + + cursorTheme = { + name = "Bibata-Modern-Ice"; + package = pkgs.bibata-cursors; + size = 18; + }; + + gtk3.extraConfig = { + Settings = '' + gtk-application-prefer-dark-theme=1 + ''; + }; + + gtk4.extraConfig = { + Settings = '' + gtk-application-prefer-dark-theme=1 + ''; + }; + }; + + home.sessionVariables.GTK_THEME = "WhiteSur-Dark"; +}
\ No newline at end of file diff --git a/home/fuwn/meta/scripts/default.nix b/home/ebisu/meta/scripts/default.nix index 58851ea..58851ea 100644 --- a/home/fuwn/meta/scripts/default.nix +++ b/home/ebisu/meta/scripts/default.nix diff --git a/home/fuwn/meta/scripts/scripts/.gitignore b/home/ebisu/meta/scripts/scripts/.gitignore index 2ea4e67..2ea4e67 100644 --- a/home/fuwn/meta/scripts/scripts/.gitignore +++ b/home/ebisu/meta/scripts/scripts/.gitignore diff --git a/home/fuwn/meta/scripts/scripts/altserver b/home/ebisu/meta/scripts/scripts/altserver index 0a0d5f9..0a0d5f9 100755 --- a/home/fuwn/meta/scripts/scripts/altserver +++ b/home/ebisu/meta/scripts/scripts/altserver diff --git a/home/fuwn/meta/scripts/scripts/anidub b/home/ebisu/meta/scripts/scripts/anidub index aacf84f..aacf84f 100755 --- a/home/fuwn/meta/scripts/scripts/anidub +++ b/home/ebisu/meta/scripts/scripts/anidub diff --git a/home/fuwn/meta/scripts/scripts/anime b/home/ebisu/meta/scripts/scripts/anime index 60b143b..60b143b 100755 --- a/home/fuwn/meta/scripts/scripts/anime +++ b/home/ebisu/meta/scripts/scripts/anime diff --git a/home/fuwn/meta/scripts/scripts/apod b/home/ebisu/meta/scripts/scripts/apod index a8814a9..a8814a9 100755 --- a/home/fuwn/meta/scripts/scripts/apod +++ b/home/ebisu/meta/scripts/scripts/apod diff --git a/home/fuwn/meta/scripts/scripts/catboy b/home/ebisu/meta/scripts/scripts/catboy index cc75e52..cc75e52 100755 --- a/home/fuwn/meta/scripts/scripts/catboy +++ b/home/ebisu/meta/scripts/scripts/catboy diff --git a/home/fuwn/meta/scripts/scripts/chan2 b/home/ebisu/meta/scripts/scripts/chan2 index 525d5f1..525d5f1 100755 --- a/home/fuwn/meta/scripts/scripts/chan2 +++ b/home/ebisu/meta/scripts/scripts/chan2 diff --git a/home/fuwn/meta/scripts/scripts/fim b/home/ebisu/meta/scripts/scripts/fim index d1be1c5..d1be1c5 100755 --- a/home/fuwn/meta/scripts/scripts/fim +++ b/home/ebisu/meta/scripts/scripts/fim diff --git a/home/fuwn/meta/scripts/scripts/gmiwatch b/home/ebisu/meta/scripts/scripts/gmiwatch index cf3e52a..cf3e52a 100755 --- a/home/fuwn/meta/scripts/scripts/gmiwatch +++ b/home/ebisu/meta/scripts/scripts/gmiwatch diff --git a/home/fuwn/meta/scripts/scripts/hon b/home/ebisu/meta/scripts/scripts/hon index b4436ec..b4436ec 100755 --- a/home/fuwn/meta/scripts/scripts/hon +++ b/home/ebisu/meta/scripts/scripts/hon diff --git a/home/fuwn/meta/scripts/scripts/locs b/home/ebisu/meta/scripts/scripts/locs index 7b0ea19..7b0ea19 100755 --- a/home/fuwn/meta/scripts/scripts/locs +++ b/home/ebisu/meta/scripts/scripts/locs diff --git a/home/fuwn/meta/scripts/scripts/neovide-lunarvim b/home/ebisu/meta/scripts/scripts/neovide-lunarvim index 502a3f1..502a3f1 100644 --- a/home/fuwn/meta/scripts/scripts/neovide-lunarvim +++ b/home/ebisu/meta/scripts/scripts/neovide-lunarvim diff --git a/home/fuwn/meta/scripts/scripts/reco b/home/ebisu/meta/scripts/scripts/reco index 9402a1a..9402a1a 100755 --- a/home/fuwn/meta/scripts/scripts/reco +++ b/home/ebisu/meta/scripts/scripts/reco diff --git a/home/fuwn/meta/scripts/scripts/setbg b/home/ebisu/meta/scripts/scripts/setbg index a399344..a399344 100755 --- a/home/fuwn/meta/scripts/scripts/setbg +++ b/home/ebisu/meta/scripts/scripts/setbg diff --git a/home/fuwn/meta/scripts/scripts/shiori b/home/ebisu/meta/scripts/scripts/shiori index 5f825e7..5f825e7 100755 --- a/home/fuwn/meta/scripts/scripts/shiori +++ b/home/ebisu/meta/scripts/scripts/shiori diff --git a/home/fuwn/meta/scripts/scripts/skyla b/home/ebisu/meta/scripts/scripts/skyla index a0d9030..a0d9030 100755 --- a/home/fuwn/meta/scripts/scripts/skyla +++ b/home/ebisu/meta/scripts/scripts/skyla diff --git a/home/fuwn/meta/scripts/scripts/start-vm b/home/ebisu/meta/scripts/scripts/start-vm index df372c1..df372c1 100755 --- a/home/fuwn/meta/scripts/scripts/start-vm +++ b/home/ebisu/meta/scripts/scripts/start-vm diff --git a/home/fuwn/meta/scripts/scripts/tup-init b/home/ebisu/meta/scripts/scripts/tup-init index 387fa53..387fa53 100644 --- a/home/fuwn/meta/scripts/scripts/tup-init +++ b/home/ebisu/meta/scripts/scripts/tup-init diff --git a/home/fuwn/meta/scripts/scripts/vivwal b/home/ebisu/meta/scripts/scripts/vivwal index 995359e..995359e 100755 --- a/home/fuwn/meta/scripts/scripts/vivwal +++ b/home/ebisu/meta/scripts/scripts/vivwal diff --git a/home/fuwn/meta/scripts/scripts/wal_mako b/home/ebisu/meta/scripts/scripts/wal_mako index 5cf4b1f..5cf4b1f 100755 --- a/home/fuwn/meta/scripts/scripts/wal_mako +++ b/home/ebisu/meta/scripts/scripts/wal_mako diff --git a/home/fuwn/meta/scripts/scripts/worlds b/home/ebisu/meta/scripts/scripts/worlds index 834079a..834079a 100755 --- a/home/fuwn/meta/scripts/scripts/worlds +++ b/home/ebisu/meta/scripts/scripts/worlds diff --git a/home/fuwn/meta/steam/default.nix b/home/ebisu/meta/steam/default.nix index c358a60..c358a60 100644 --- a/home/fuwn/meta/steam/default.nix +++ b/home/ebisu/meta/steam/default.nix diff --git a/home/fuwn/meta/system/bitwarden/default.nix b/home/ebisu/meta/system/bitwarden/default.nix index 2ac188f..2ac188f 100644 --- a/home/fuwn/meta/system/bitwarden/default.nix +++ b/home/ebisu/meta/system/bitwarden/default.nix diff --git a/home/fuwn/meta/system/default.nix b/home/ebisu/meta/system/default.nix index 702a0b4..25b26b3 100644 --- a/home/fuwn/meta/system/default.nix +++ b/home/ebisu/meta/system/default.nix @@ -1,4 +1,5 @@ -{ pkgs, ... }: { +{ pkgs, ... }: +{ imports = [ ./bitwarden ./fonts @@ -11,6 +12,7 @@ home.packages = with pkgs; [ # bpftrace + xdg-utils ]; # services.ananicy = { diff --git a/home/ebisu/meta/system/fonts/default.nix b/home/ebisu/meta/system/fonts/default.nix new file mode 100644 index 0000000..ffc6f89 --- /dev/null +++ b/home/ebisu/meta/system/fonts/default.nix @@ -0,0 +1,54 @@ +{ pkgs, ... }: +{ + imports = [ ./meowsans ]; + + fonts = { + fontconfig = { + enable = true; + + defaultFonts = { + serif = [ + "New York Medium" + "Hiragino Sans" + "JoyPixels" + "Noto Color Emoji" + "FontAwesome" + ]; + + sansSerif = [ + "SF Pro Text" + "Hiragino Sans" + "JoyPixels" + "Noto Color Emoji" + "FontAwesome" + ]; + + monospace = [ + "SF Mono" + "Hiragino Sans" + "JoyPixels" + "FontAwesome" + "Braille" + ]; + }; + }; + }; + + home.packages = with pkgs; [ + source-code-pro + source-han-sans + noto-fonts + noto-fonts-cjk-sans + noto-fonts-cjk-serif + noto-fonts-color-emoji + lmodern + hanazono + jigmo + iosevka + libertine + sarasa-gothic + nerdfonts + cantarell-fonts + inter + ]; +} diff --git a/home/ebisu/meta/system/fonts/meowsans/MeowSans_Font/MeowSans-Regular.ttf b/home/ebisu/meta/system/fonts/meowsans/MeowSans_Font/MeowSans-Regular.ttf Binary files differnew file mode 100644 index 0000000..0d12d34 --- /dev/null +++ b/home/ebisu/meta/system/fonts/meowsans/MeowSans_Font/MeowSans-Regular.ttf diff --git a/home/ebisu/meta/system/fonts/meowsans/MeowSans_Font/MeowSans.ttf b/home/ebisu/meta/system/fonts/meowsans/MeowSans_Font/MeowSans.ttf Binary files differnew file mode 100644 index 0000000..8bb6c1a --- /dev/null +++ b/home/ebisu/meta/system/fonts/meowsans/MeowSans_Font/MeowSans.ttf diff --git a/home/ebisu/meta/system/fonts/meowsans/default.nix b/home/ebisu/meta/system/fonts/meowsans/default.nix new file mode 100644 index 0000000..9b5a4f1 --- /dev/null +++ b/home/ebisu/meta/system/fonts/meowsans/default.nix @@ -0,0 +1,4 @@ +{ pkgs, ... }: +{ + home.file.".local/share/fonts/MeowSans_Font ".source = ./MeowSans_Font; +} diff --git a/home/fuwn/meta/system/opengl/default.nix b/home/ebisu/meta/system/opengl/default.nix index cabb8f9..cabb8f9 100644 --- a/home/fuwn/meta/system/opengl/default.nix +++ b/home/ebisu/meta/system/opengl/default.nix diff --git a/home/fuwn/meta/system/peripheral/default.nix b/home/ebisu/meta/system/peripheral/default.nix index f05379c..f05379c 100644 --- a/home/fuwn/meta/system/peripheral/default.nix +++ b/home/ebisu/meta/system/peripheral/default.nix diff --git a/home/fuwn/meta/system/shell/default.nix b/home/ebisu/meta/system/shell/default.nix index bb15ac0..2ee83d1 100644 --- a/home/fuwn/meta/system/shell/default.nix +++ b/home/ebisu/meta/system/shell/default.nix @@ -1,4 +1,5 @@ -{ pkgs, ... }: { +{ pkgs, ... }: +{ imports = [ ./fish ./starship @@ -15,5 +16,6 @@ termius dash mosh + killall ]; } diff --git a/home/fuwn/meta/system/shell/fish/default.nix b/home/ebisu/meta/system/shell/fish/default.nix index 55f441d..55f441d 100644 --- a/home/fuwn/meta/system/shell/fish/default.nix +++ b/home/ebisu/meta/system/shell/fish/default.nix diff --git a/home/fuwn/meta/system/shell/scripting/charmbracelet/default.nix b/home/ebisu/meta/system/shell/scripting/charmbracelet/default.nix index e3b78df..e3b78df 100644 --- a/home/fuwn/meta/system/shell/scripting/charmbracelet/default.nix +++ b/home/ebisu/meta/system/shell/scripting/charmbracelet/default.nix diff --git a/home/fuwn/meta/system/shell/scripting/default.nix b/home/ebisu/meta/system/shell/scripting/default.nix index fc07d55..2fe33df 100644 --- a/home/fuwn/meta/system/shell/scripting/default.nix +++ b/home/ebisu/meta/system/shell/scripting/default.nix @@ -13,5 +13,6 @@ inxi pv yad + jq ]; } diff --git a/home/fuwn/meta/system/shell/scripting/ripgrep/default.nix b/home/ebisu/meta/system/shell/scripting/ripgrep/default.nix index 00de07f..00de07f 100644 --- a/home/fuwn/meta/system/shell/scripting/ripgrep/default.nix +++ b/home/ebisu/meta/system/shell/scripting/ripgrep/default.nix diff --git a/home/fuwn/meta/system/shell/starship/default.nix b/home/ebisu/meta/system/shell/starship/default.nix index 0088038..0088038 100644 --- a/home/fuwn/meta/system/shell/starship/default.nix +++ b/home/ebisu/meta/system/shell/starship/default.nix diff --git a/home/fuwn/meta/system/terminal/default.nix b/home/ebisu/meta/system/terminal/default.nix index 6375e0a..6375e0a 100644 --- a/home/fuwn/meta/system/terminal/default.nix +++ b/home/ebisu/meta/system/terminal/default.nix diff --git a/home/fuwn/meta/system/terminal/foot/default.nix b/home/ebisu/meta/system/terminal/foot/default.nix index ed0820b..ed0820b 100644 --- a/home/fuwn/meta/system/terminal/foot/default.nix +++ b/home/ebisu/meta/system/terminal/foot/default.nix diff --git a/home/fuwn/meta/system/terminal/kitty/default.nix b/home/ebisu/meta/system/terminal/kitty/default.nix index 387f785..4346e8d 100644 --- a/home/fuwn/meta/system/terminal/kitty/default.nix +++ b/home/ebisu/meta/system/terminal/kitty/default.nix @@ -1,10 +1,7 @@ -{ pkgs -, config -, ... -}: { +{ pkgs, config, ... }: +{ programs.kitty = { enable = true; - package = (config.lib.nixGL.wrap pkgs.kitty); settings = { # Font diff --git a/home/fuwn/meta/system/virtualisation/default.nix b/home/ebisu/meta/system/virtualisation/default.nix index d99c7eb..d99c7eb 100644 --- a/home/fuwn/meta/system/virtualisation/default.nix +++ b/home/ebisu/meta/system/virtualisation/default.nix diff --git a/home/fuwn/meta/system/virtualisation/docker/default.nix b/home/ebisu/meta/system/virtualisation/docker/default.nix index 26854be..26854be 100644 --- a/home/fuwn/meta/system/virtualisation/docker/default.nix +++ b/home/ebisu/meta/system/virtualisation/docker/default.nix diff --git a/home/fuwn/meta/utility/ai/default.nix b/home/ebisu/meta/utility/ai/default.nix index 7513348..7513348 100644 --- a/home/fuwn/meta/utility/ai/default.nix +++ b/home/ebisu/meta/utility/ai/default.nix diff --git a/home/fuwn/meta/utility/default.nix b/home/ebisu/meta/utility/default.nix index 4c5da73..4c5da73 100644 --- a/home/fuwn/meta/utility/default.nix +++ b/home/ebisu/meta/utility/default.nix diff --git a/home/fuwn/wallpaper.png b/home/ebisu/wallpaper.png Binary files differindex b0db6b0..b0db6b0 100644 --- a/home/fuwn/wallpaper.png +++ b/home/ebisu/wallpaper.png diff --git a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/workspaces.nix b/home/fuwn/meta/desktop/wayland/hyprland/hyprland/workspaces.nix deleted file mode 100644 index d77a24b..0000000 --- a/home/fuwn/meta/desktop/wayland/hyprland/hyprland/workspaces.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ config, ... }: { - wayland.windowManager.hyprland.settings.workspace = ( - let - generateWorkspaces = monitor: workspaces: offset: - builtins.genList - (x: - let - ws = - let - c = (x + 1) / workspaces; - in - builtins.toString (x + 1 - (c * workspaces)); - in - [ "${toString (x + offset + 1)}, monitor:${monitor}" ] - ) - workspaces; - generateWorkspacesAll = monitors: tags: - builtins.concatLists (builtins.map - (monitor: generateWorkspaces - (builtins.elemAt monitors monitor) - tags - (builtins.elemAt - (builtins.genList - (index: index * tags) - (builtins.length monitors)) - monitor)) - (builtins.genList (index: index) (builtins.length monitors)) - ); - in - builtins.concatLists (generateWorkspacesAll [ "DP-2" "HDMI-A-2" "DP-1" ] 10) - ) ++ [ - "special:simple_terminal, on-created-empty:[float;center;size 50% 65%] kitty --class simple_terminal" - "special:simple_calculator, on-created-empty:[float;center;size 50% 50%] kitty --class simple_calculator -e bc -lq" - "special:chatgpt, on-created-empty:[float;center;size 65% 75%] thorium-browser --user-data-dir=${config.home.homeDirectory}/.local/share/thorium-browser-chatgpt --app='https://chatgpt.com/'" - "special:spotify, on-created-empty:[float;center;size 65% 90%] spotify" - "special:calculator, on-created-empty:[float;center;size 50% 50%] qalculate-gtk" - ]; -} diff --git a/home/fuwn/meta/desktop/wayland/waybar/default.nix b/home/fuwn/meta/desktop/wayland/waybar/default.nix deleted file mode 100644 index 401efa8..0000000 --- a/home/fuwn/meta/desktop/wayland/waybar/default.nix +++ /dev/null @@ -1,93 +0,0 @@ -{ pkgs, ... }: { - programs.waybar = { - enable = true; - style = ./waybar/style.css; - - settings = ( - let - defaultModules = - (import ./waybar/default-modules.nix { - inherit pkgs; - }); - hyprland-workspaces-base = { - disable-scroll = true; - disable-markup = false; - all-outputs = false; - format = "{icon}"; - }; - in - [ - (defaultModules // { - output = "HDMI-A-2"; - "hyprland/workspaces" = hyprland-workspaces-base // { - format-icons = { - "11" = "一"; - "12" = "二"; - "13" = "三"; - "14" = "四"; - "15" = "五"; - "16" = "六"; - "17" = "七"; - "18" = "八"; - "19" = "九"; - "20" = "十"; - }; - }; - }) - (defaultModules // { - output = "DP-2"; - "hyprland/workspaces" = hyprland-workspaces-base // { - format-icons = { - "1" = "一"; - "2" = "二"; - "3" = "三"; - "4" = "四"; - "5" = "五"; - "6" = "六"; - "7" = "七"; - "8" = "八"; - "9" = "九"; - "10" = "十"; - }; - }; - }) - (defaultModules // { - output = "DP-1"; - "hyprland/workspaces" = hyprland-workspaces-base // { - format-icons = { - "21" = "一"; - "22" = "二"; - "23" = "三"; - "24" = "四"; - "25" = "五"; - "26" = "六"; - "27" = "七"; - "28" = "八"; - "29" = "九"; - "30" = "十"; - }; - }; - }) - ] - ); - }; - - xdg.configFile = ( - let - scripts = [ - "mediaplayer.py" - ]; - in - ( - builtins.listToAttrs (map - (script: { - name = "waybar/scripts/${script}"; - - value = { - source = ./waybar/scripts/${script}; - }; - }) - scripts) - ) - ); -} diff --git a/home/fuwn/meta/editor/default.nix b/home/fuwn/meta/editor/default.nix deleted file mode 100644 index 4f98527..0000000 --- a/home/fuwn/meta/editor/default.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ pkgs, config, ... }: { - home.packages = with pkgs; [ - emacs - (config.lib.nixGL.wrap neovide) - # jetbrains.clion - ]; -} diff --git a/home/fuwn/meta/multimedia/browser/default.nix b/home/fuwn/meta/multimedia/browser/default.nix deleted file mode 100644 index 06696ea..0000000 --- a/home/fuwn/meta/multimedia/browser/default.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ pkgs -, inputs -, ... -}: { - home.packages = with pkgs; [ - # elinks - geckodriver - # lynx - # vieb - ladybird - # inputs.zen-browser.packages."${system}".default - web-ext - ]; -} diff --git a/home/fuwn/meta/network/smolnet/default.nix b/home/fuwn/meta/network/smolnet/default.nix deleted file mode 100644 index 03dc57b..0000000 --- a/home/fuwn/meta/network/smolnet/default.nix +++ /dev/null @@ -1,17 +0,0 @@ -{ pkgs -, config -, ... -}: { - imports = [ - ./bollux - ]; - - home.packages = with pkgs; [ - amfora - geopard - gmni - phetch - ] ++ [ - (config.lib.nixGL.wrap pkgs.lagrange) - ]; -} diff --git a/home/fuwn/meta/rice/default.nix b/home/fuwn/meta/rice/default.nix deleted file mode 100644 index 2470feb..0000000 --- a/home/fuwn/meta/rice/default.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ pkgs, ... }: { - imports = [ - ./bottom - ./glances - ./fastfetch - ]; - - programs.btop.enable = true; - programs.pywal.enable = true; - - home.packages = with pkgs; [ - cpufetch - iotop - # nvtopPackages.nvidia - htop-vim - iftop - neofetch - ]; -} diff --git a/home/fuwn/meta/scripts/scripts/bt b/home/fuwn/meta/scripts/scripts/bt deleted file mode 100755 index 5760c27..0000000 --- a/home/fuwn/meta/scripts/scripts/bt +++ /dev/null @@ -1,16 +0,0 @@ -ctl=bluetoothctl - -connect() { - ${ctl} power on - ${ctl} connect "${1}" -} - -if [[ "${1}" == "ap" ]]; then - connect 0A:E1:61:05:31:FA -elif [[ "${1}" == "pro" ]]; then - connect C4:14:11:45:CF:60 -elif [[ "${1}" == "ctl" ]]; then - ${ctl} -else - ${ctl} -fi diff --git a/home/fuwn/meta/scripts/scripts/counter b/home/fuwn/meta/scripts/scripts/counter deleted file mode 100755 index 830b658..0000000 --- a/home/fuwn/meta/scripts/scripts/counter +++ /dev/null @@ -1,3 +0,0 @@ -gum spin -- ssh sina 'sqlite3 /var/lib/docker/volumes/counter/_data/count.db "select * from tb_count;"' | - awk -F\| '{printf "%-5s %s\n", $3, $2}' | - sort -n diff --git a/home/fuwn/meta/scripts/scripts/rinny b/home/fuwn/meta/scripts/scripts/rinny deleted file mode 100755 index fe17374..0000000 --- a/home/fuwn/meta/scripts/scripts/rinny +++ /dev/null @@ -1,29 +0,0 @@ -DAYS=("Monday" "Tuesday" "Wednesday" "Thursday" "Friday" "Saturday" "Sunday") -DAY="${1:-$(date +'%A')}" -CACHE="/tmp/rin_${DAY}" - -is_day_of_week() { - for day in "${DAYS[@]}"; do - if [[ ${1} == "${day}" ]]; then - return 0 - fi - done - - return 1 -} - -if ! is_day_of_week "${DAY}"; then - DAY="" -fi - -source "/home/fuwn/Documents/Code/Loose/Python/rin/venv/bin/activate" - -if [ ! -e "${CACHE}" ] || [ -n "${CACHE_BUST}" ]; then - python ~/Documents/Code/Loose/Python/rin/rin.py "${DAY}" >"${CACHE}" -fi - -echo - -mdcat "${CACHE}" | sed 's/^/ /' - -echo diff --git a/home/fuwn/meta/system/fonts/default.nix b/home/fuwn/meta/system/fonts/default.nix deleted file mode 100644 index 189a864..0000000 --- a/home/fuwn/meta/system/fonts/default.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ pkgs -, ... -}: { - home.packages = with pkgs; [ - source-code-pro - source-han-sans - noto-fonts - noto-fonts-cjk-sans - noto-fonts-cjk-serif - noto-fonts-color-emoji - lmodern - hanazono - jigmo - iosevka - libertine - sarasa-gothic - ]; -} |