diff --git a/assets/.zshrc b/assets/.zshrc new file mode 100644 index 0000000..6c0662e --- /dev/null +++ b/assets/.zshrc @@ -0,0 +1,32 @@ +# If you come from bash you might have to change your $PATH. +# export PATH=$HOME/bin:/usr/local/bin:$PATH + +export ZSH="$HOME/.oh-my-zsh" + +# Set-up icons for files/folders in terminal +alias ls='eza -a --icons' +alias ll='eza -al --icons' +alias lt='eza -a --tree --level=1 --icons' + +# Starting down here, are set in user.nix + +#ZSH_THEME="xiong-chiamiov-plus" + +#plugins=( +# git + #zsh-autosuggestions + #zsh-syntax-highlighting +#) + +# Display Pokemon-colorscripts +# Project page: https://gitlab.com/phoneybadger/pokemon-colorscripts#on-other-distros-and-macos +#pokemon-colorscripts --no-title -s -r + + +# Set-up FZF key bindings (CTRL R for fuzzy history finder) +#source <(fzf --zsh) + +#HISTFILE=~/.zsh_history +#HISTSIZE=10000 +#SAVEHIST=10000 +#setopt appendhistory \ No newline at end of file diff --git a/assets/Thunar/accels.scm b/assets/Thunar/accels.scm new file mode 100644 index 0000000..35ce572 --- /dev/null +++ b/assets/Thunar/accels.scm @@ -0,0 +1,124 @@ +; Thunar GtkAccelMap rc-file -*- scheme -*- +; this file is an automated accelerator map dump +; +; (gtk_accel_path "/ThunarStandardView/sort-by-type" "") +; (gtk_accel_path "/ThunarStatusBar/toggle-last-modified" "") +; (gtk_accel_path "/ThunarActionManager/cut" "x") +; (gtk_accel_path "/ThunarStandardView/sort-by-size" "") +; (gtk_accel_path "/ThunarWindow/file-menu" "") +; (gtk_accel_path "/ThunarWindow/close-tab" "w") +; (gtk_accel_path "/ThunarStatusBar/toggle-size" "") +; (gtk_accel_path "/ThunarWindow/new-window" "n") +; (gtk_accel_path "/ThunarWindow/clear-directory-specific-settings" "") +; (gtk_accel_path "/ThunarWindow/close-window" "q") +; (gtk_accel_path "/ThunarWindow/open-parent" "Up") +; (gtk_accel_path "/ThunarWindow/view-side-pane-menu" "") +; (gtk_accel_path "/ThunarStatusBar/toggle-size-in-bytes" "") +; (gtk_accel_path "/ThunarWindow/switch-previous-tab" "Page_Up") +; (gtk_accel_path "/ThunarBookmarks/3925ac2f7e4055558c447a20c2e047ad" "") +; (gtk_accel_path "/ThunarActionManager/open" "o") +; (gtk_accel_path "/ThunarStandardView/sort-ascending" "") +; (gtk_accel_path "/ThunarWindow/toggle-split-view" "F3") +; (gtk_accel_path "/ThunarActionManager/copy-2" "Insert") +; (gtk_accel_path "/ThunarActionManager/trash-delete" "Delete") +; (gtk_accel_path "/ThunarWindow/open-recent" "") +; (gtk_accel_path "/ThunarWindow/view-configure-toolbar" "") +; (gtk_accel_path "/ThunarStandardView/forward" "Right") +; (gtk_accel_path "/ThunarActionManager/restore" "") +; (gtk_accel_path "/ThunarBookmarks/9f0d843e4074095bf657b996746ec75c" "") +; (gtk_accel_path "/ThunarWindow/open-location-alt" "d") +; (gtk_accel_path "/ThunarBookmarks/a16339451d60726d0755a887bd755af2" "") +; (gtk_accel_path "/ThunarWindow/zoom-out-alt" "KP_Subtract") +; (gtk_accel_path "/ThunarStandardView/select-by-pattern" "s") +; (gtk_accel_path "/ThunarWindow/open-file-menu" "F10") +; (gtk_accel_path "/ThunarWindow/contents" "F1") +; (gtk_accel_path "/ThunarWindow/show-highlight" "") +; (gtk_accel_path "/ThunarBookmarks/44e0e66b3d753576f90ed75c87917822" "") +; (gtk_accel_path "/ThunarStandardView/sort-descending" "") +; (gtk_accel_path "/ThunarStandardView/sort-by-name" "") +; (gtk_accel_path "/ThunarStandardView/select-all-files" "a") +; (gtk_accel_path "/ThunarActionManager/execute" "") +; (gtk_accel_path "/ThunarStandardView/properties" "Return") +; (gtk_accel_path "/ThunarActionManager/cut-2" "") +; (gtk_accel_path "/ThunarStandardView/sort-by-dtime" "") +; (gtk_accel_path "/ThunarWindow/switch-next-tab" "Page_Down") +; (gtk_accel_path "/ThunarActionManager/paste-2" "Insert") +; (gtk_accel_path "/ThunarWindow/open-templates" "") +; (gtk_accel_path "/ThunarStatusBar/toggle-filetype" "") +; (gtk_accel_path "/ThunarWindow/close-all-windows" "w") +; (gtk_accel_path "/ThunarStandardView/create-document" "") +; (gtk_accel_path "/ThunarWindow/detach-tab" "") +; (gtk_accel_path "/ThunarBookmarks/978d3e7a7225e42c977fe94183792d87" "") +; (gtk_accel_path "/ThunarWindow/cancel-search" "Escape") +; (gtk_accel_path "/ThunarWindow/zoom-in-alt2" "equal") +; (gtk_accel_path "/ThunarShortcutsPane/sendto-shortcuts" "d") +; (gtk_accel_path "/ThunarActionManager/undo" "z") +; (gtk_accel_path "/ThunarStandardView/toggle-sort-order" "") +; (gtk_accel_path "/ThunarWindow/reload-alt" "F5") +; (gtk_accel_path "/ThunarWindow/view-location-selector-entry" "") +; (gtk_accel_path "/ThunarActionManager/paste" "v") +; (gtk_accel_path "/ThunarWindow/zoom-in-alt1" "KP_Add") +; (gtk_accel_path "/ThunarWindow/view-menubar" "m") +; (gtk_accel_path "/ThunarStandardView/back" "Left") +; (gtk_accel_path "/ThunarWindow/open-desktop" "") +; (gtk_accel_path "/ThunarWindow/view-as-detailed-list" "2") +; (gtk_accel_path "/ThunarActionManager/restore-show" "") +; (gtk_accel_path "/ThunarWindow/zoom-out" "minus") +; (gtk_accel_path "/ThunarStatusBar/toggle-display-name" "") +; (gtk_accel_path "/ThunarWindow/sendto-menu" "") +; (gtk_accel_path "/ThunarWindow/go-menu" "") +; (gtk_accel_path "/ThunarWindow/remove-from-recent" "") +; (gtk_accel_path "/ThunarActionManager/open-with-other" "") +; (gtk_accel_path "/ThunarStandardView/invert-selection" "") +; (gtk_accel_path "/ThunarWindow/view-side-pane-shortcuts" "b") +; (gtk_accel_path "/ThunarWindow/view-location-selector-menu" "") +; (gtk_accel_path "/ThunarWindow/edit-menu" "") +; (gtk_accel_path "/ThunarWindow/reload" "r") +; (gtk_accel_path "/ThunarActionManager/move-to-trash" "") +; (gtk_accel_path "/ThunarActionManager/copy" "c") +; (gtk_accel_path "/ThunarActionManager/delete-3" "KP_Delete") +; (gtk_accel_path "/ThunarWindow/toggle-side-pane" "F9") +; (gtk_accel_path "/ThunarStandardView/sort-by-mtime" "") +; (gtk_accel_path "/ThunarBookmarks/a50db0a56a1e6c31df6bf18c55eb78cd" "") +; (gtk_accel_path "/ThunarStandardView/arrange-items-menu" "") +; (gtk_accel_path "/ThunarStandardView/unselect-all-files" "Escape") +; (gtk_accel_path "/ThunarWindow/open-computer" "") +; (gtk_accel_path "/ThunarWindow/bookmarks-menu" "") +; (gtk_accel_path "/ThunarWindow/toggle-image-preview" "") +; (gtk_accel_path "/ThunarWindow/view-as-icons" "1") +; (gtk_accel_path "/ThunarActionManager/delete-2" "Delete") +; (gtk_accel_path "/ThunarWindow/zoom-in" "plus") +; (gtk_accel_path "/ThunarStandardView/rename" "F2") +; (gtk_accel_path "/ThunarWindow/open-location" "l") +; (gtk_accel_path "/ThunarWindow/view-as-compact-list" "3") +; (gtk_accel_path "/ThunarWindow/view-menu" "") +; (gtk_accel_path "/ThunarWindow/search" "f") +; (gtk_accel_path "/ThunarWindow/new-tab" "t") +; (gtk_accel_path "/ThunarWindow/zoom-reset" "0") +; (gtk_accel_path "/ThunarWindow/contents/help-menu" "") +; (gtk_accel_path "/ThunarActionManager/open-in-new-tab" "p") +; (gtk_accel_path "/ThunarWindow/view-location-selector-buttons" "") +; (gtk_accel_path "/ThunarActionManager/redo" "z") +; (gtk_accel_path "/ThunarWindow/open-trash" "") +; (gtk_accel_path "/ThunarActionManager/open-in-new-window" "o") +; (gtk_accel_path "/ThunarWindow/view-statusbar" "") +; (gtk_accel_path "/ThunarActionManager/open-location" "") +; (gtk_accel_path "/ThunarStandardView/duplicate" "") +; (gtk_accel_path "/ThunarBookmarks/c76f07a72d3c8ef5d4bf8e84c8981221" "") +; (gtk_accel_path "/ThunarActionManager/trash-delete-2" "KP_Delete") +; (gtk_accel_path "/ThunarStandardView/create-folder" "n") +; (gtk_accel_path "/ThunarWindow/open-home" "Home") +; (gtk_accel_path "/ThunarWindow/show-hidden" "h") +; (gtk_accel_path "/ThunarStandardView/set-default-app" "") +; (gtk_accel_path "/ThunarWindow/empty-trash" "") +; (gtk_accel_path "/ThunarStandardView/back-alt" "BackSpace") +; (gtk_accel_path "/ThunarWindow/preferences" "") +; (gtk_accel_path "/ThunarBookmarks/8ea92a0b35875a5a65ffafcf02698ce8" "") +; (gtk_accel_path "/ThunarActionManager/delete" "") +; (gtk_accel_path "/ThunarWindow/view-side-pane-tree" "e") +; (gtk_accel_path "/ThunarWindow/open-file-system" "") +; (gtk_accel_path "/ThunarWindow/open-network" "") +; (gtk_accel_path "/ThunarActionManager/sendto-desktop" "") +; (gtk_accel_path "/ThunarStandardView/make-link" "") +; (gtk_accel_path "/ThunarWindow/zoom-reset-alt" "KP_0") +; (gtk_accel_path "/ThunarWindow/about" "") \ No newline at end of file diff --git a/assets/Thunar/uca.xml b/assets/Thunar/uca.xml new file mode 100644 index 0000000..17e5d7e --- /dev/null +++ b/assets/Thunar/uca.xml @@ -0,0 +1,59 @@ + + + + audacious + Add to audacious playlist + + 1681893052016505-1 + audacious -e %U + + * + * + + + + utilities-terminal + Open Terminal Here + + 1703572977408169-1 + exo-open --working-directory %f --launch TerminalEmulator + Launch TerminalEmulator + + * + + + + + checkbox + Check sha1sum + + 1526633271260079-26 + yad --info --title="Check sha1 for %n" --text="$(sha1sum %f)" + Check sha1sum + + *.iso;*.ISO + + + + checkbox + Check sha256sum + + 1577688162350307-1 + yad --info --title="Check sha256 for %n" --text="$(sha256sum %f)" + Check sha256sum + + *.iso;*.ISO + + + + checkbox + Check md5sum + + 1526736788575383-2 + yad --info --title="Check md5 for %n" --text="$(md5sum %f)" + Check md5sum + + *.iso;*.ISO;*.tar.gz;*.TAR.GZ;*.zip;*.ZIP + + + \ No newline at end of file diff --git a/assets/fastfetch/config-compact.jsonc b/assets/fastfetch/config-compact.jsonc new file mode 100644 index 0000000..de7475b --- /dev/null +++ b/assets/fastfetch/config-compact.jsonc @@ -0,0 +1,75 @@ +{ + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", + "logo": { + "source": "~/.config/fastfetch/nixos.png", + "type": "kitty-direct", + "height": 10, + "width": 20, + "padding": { + "top": 1 + } + }, + "display": { + "separator": " -> " + }, + "modules": [ + "break", + { + "type": "title", + "keyWidth": 10, + "format": " {6}{7}{8}" + }, + { + "type": "custom", + "format": " ─────────────────────────── " + }, + { + "type": "kernel", + "key": " ", + "keyColor": "yellow" + }, + { + "type": "wm", + "key": " ", + "keyColor": "blue" + }, + { + "type": "shell", + "key": " ", + "keyColor": "yellow" + }, + { + "type": "terminal", + "key": " ", + "keyColor": "blue" + }, + /* + { + "type": "packages", + "key": "󰏖 ", + "keyColor": "yellow" + }, + */ + { + "type": "memory", + "key": "󰍛 ", + "keyColor": "magenta", + // format: used / total + "format": "{1} / {2}" + }, + { + "type": "uptime", + "key": "󰔛 ", + "keyColor": "green" + }, + { + "type": "custom", + "format": " ─────────────────────────── " + }, + { + "type": "custom", + "format": " \u001b[31m \u001b[32m \u001b[33m \u001b[34m \u001b[35m \u001b[36m \u001b[37m \u001b[90m " + }, + "break" + ] +} \ No newline at end of file diff --git a/assets/fastfetch/config-v2.jsonc b/assets/fastfetch/config-v2.jsonc new file mode 100644 index 0000000..4475a82 --- /dev/null +++ b/assets/fastfetch/config-v2.jsonc @@ -0,0 +1,112 @@ +{ + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", + "logo": { + //"source": "~/.config/fastfetch/nixos.png", + //"type": "kitty-direct", + "height": 15, + "width": 30, + "padding": { + "top": 1 + } + }, + "display": { + "separator": " ➜ " + }, + + "modules": [ + "break", + { + "type": "os", + "key": " DISTRO", + "keyColor": "31", + }, + { + "type": "kernel", + "key": " ├  ", + "keyColor": "31", + }, + { + "type": "packages", + "key": " ├ 󰏖 ", + "keyColor": "31", + }, + { + "type": "shell", + "key": " └  ", + "keyColor": "31", + }, + "break", + { + "type": "wm", + "key": " DE/WM", + "keyColor": "32", + }, + { + "type": "wmtheme", + "key": " ├ 󰉼 ", + "keyColor": "32", + }, + { + "type": "icons", + "key": " ├ 󰀻 ", + "keyColor": "32", + }, + { + "type": "cursor", + "key": " ├  ", + "keyColor": "32", + }, + { + "type": "terminal", + "key": " ├  ", + "keyColor": "32", + }, + { + "type": "terminalfont", + "key": " └  ", + "keyColor": "32", + }, + "break", + { + "type": "host", + "format": "{2}", + "key": "󰌢 SYSTEM", + "keyColor": "33", + }, + { + "type": "cpu", + "format": "{1} ({3}) @ {7} GHz", + "key": " ├  ", + "keyColor": "33", + }, + { + "type": "gpu", + "format": "{2}", + "key": " ├ 󰢮 ", + "keyColor": "33", + }, + { + "type": "memory", + "key": " ├  ", + "keyColor": "33", + }, + { + "type": "swap", + "key": " ├ 󰓡 ", + "keyColor": "33", + }, + { + "type": "disk", + "key": " ├ 󰋊 ", + "keyColor": "33", + }, + { + "type": "display", + "key": " └  ", + "compactType": "original-with-refresh-rate", + "keyColor": "33", + }, + "break", + "break", + ] +} \ No newline at end of file diff --git a/assets/fastfetch/config.jsonc b/assets/fastfetch/config.jsonc new file mode 100644 index 0000000..11ff7d7 --- /dev/null +++ b/assets/fastfetch/config.jsonc @@ -0,0 +1,132 @@ + +{ + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", + "logo": { + "source": "~/.config/fastfetch/nixos.png", + "type": "kitty-direct", + "height": 18, + "width": 36, + "padding": { + "top": 1 + } + }, + "display": { + "separator": " 󰑃 " + }, + "modules": [ + "break", + { + "type": "os", + "key": " DISTRO", + "keyColor": "yellow" + }, + { + "type": "kernel", + "key": "│ ├", + "keyColor": "yellow" + }, + { + "type": "packages", + "key": "│ ├󰏖", + "keyColor": "yellow" + }, + { + "type": "shell", + "key": "│ └", + "keyColor": "yellow" + }, + { + "type": "wm", + "key": " DE/WM", + "keyColor": "blue" + }, + { + "type": "wmtheme", + "key": "│ ├󰉼", + "keyColor": "blue" + }, + { + "type": "icons", + "key": "│ ├󰀻", + "keyColor": "blue" + }, + { + "type": "cursor", + "key": "│ ├", + "keyColor": "blue", + }, + { + "type": "terminalfont", + "key": "│ ├", + "keyColor": "blue", + }, + { + "type": "terminal", + "key": "│ └", + "keyColor": "blue" + }, + { + "type": "host", + "key": "󰌢 SYSTEM", + "keyColor": "green" + }, + { + "type": "cpu", + "key": "│ ├󰻠", + "keyColor": "green" + }, + { + "type": "gpu", + "key": "│ ├󰻑", + "format": "{2}", + "keyColor": "green" + }, + { + "type": "display", + "key": "│ ├󰍹", + "keyColor": "green", + "compactType": "original-with-refresh-rate" + }, + { + "type": "memory", + "key": "│ ├󰾆", + "keyColor": "green" + }, + { + "type": "swap", + "key": "│ ├󰓡", + "keyColor": "green" + }, + { + "type": "uptime", + "key": "│ ├󰅐", + "keyColor": "green" + }, + { + "type": "display", + "key": "│ └󰍹", + "keyColor": "green" + }, + { + "type": "sound", + "key": " AUDIO", + "format": "{2}", + "keyColor": "magenta" + }, + { + "type": "player", + "key": "│ ├󰥠", + "keyColor": "magenta" + }, + { + "type": "media", + "key": "│ └󰝚", + "keyColor": "magenta" + }, + { + "type": "custom", + "format": "\u001b[90m \u001b[31m \u001b[32m \u001b[33m \u001b[34m \u001b[35m \u001b[36m \u001b[37m \u001b[38m \u001b[39m \u001b[39m  \u001b[38m \u001b[37m \u001b[36m \u001b[35m \u001b[34m \u001b[33m \u001b[32m \u001b[31m \u001b[90m " + }, + "break", + ] +} \ No newline at end of file diff --git a/assets/fastfetch/nixos.png b/assets/fastfetch/nixos.png new file mode 100644 index 0000000..11593f6 Binary files /dev/null and b/assets/fastfetch/nixos.png differ diff --git a/assets/gtk-3.0/settings.ini b/assets/gtk-3.0/settings.ini new file mode 100644 index 0000000..dd9414e --- /dev/null +++ b/assets/gtk-3.0/settings.ini @@ -0,0 +1,17 @@ +[Settings] +gtk-theme-name=Andromeda-dark +gtk-icon-theme-name=Flat-Remix-Blue-Dark +gtk-font-name=Fira Code Semi-Bold 14 +gtk-cursor-theme-name=Bibata-Modern-Ice +gtk-cursor-theme-size=24 +gtk-toolbar-style=GTK_TOOLBAR_ICONS +gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR +gtk-button-images=1 +gtk-menu-images=1 +gtk-enable-event-sounds=1 +gtk-enable-input-feedback-sounds=0 +gtk-xft-antialias=1 +gtk-xft-hinting=1 +gtk-xft-hintstyle=hintslight +gtk-xft-rgba=rgb +gtk-application-prefer-dark-theme=1 \ No newline at end of file diff --git a/assets/xfce4/helpers.rc b/assets/xfce4/helpers.rc new file mode 100644 index 0000000..6acb00b --- /dev/null +++ b/assets/xfce4/helpers.rc @@ -0,0 +1,4 @@ +FileManager=Thunar +TerminalEmulator=kitty +#WebBrowser=firefox +#MailReader=evolution \ No newline at end of file diff --git a/auto-install.sh b/auto-install.sh index 2195075..e2ef2bc 100755 --- a/auto-install.sh +++ b/auto-install.sh @@ -196,4 +196,57 @@ if [ -f "$HOME/.zshrc" ]; then cp -b "$HOME/.zshrc" "$HOME/.zshrc-backup" || true fi -# TODO \ No newline at end of file +# copy the preconfigured zsh themes and profile +cp -r 'assets/.zshrc' ~/ + +echo "-----" +printf "\n%.0s" {1..2} + +# gtk themes and icons installation +echo "${NOTE} installing gtk-themes and icons..." + +if [ -d "nixos-themeing" ]; then + echo "${NOTE} gtk themes and icons folder exists, deleting..." + rm -rf "nixos-themeing" +fi + +# TODO +echo "${NOTE} cloning gtk themes and icons repository..." +if git clone --depth 1 https://g.r-io.lu/shynd/nixos-themeing.git ; then + cd nixos-themeing + chmod +x auto-extract.sh + ./auto-extract.sh + cd .. + echo "${OK} extracted gtk themes and icons to ~/.icons and ~/.themes folders" +else + echo "${ERROR} failed to download gtk themes and icons repository!" +fi + +echo "-----" +printf "\n%.0s" {1..2} + +# check for existing configs and copy if does not exist +for DIR1 in gtk-3.0 Thunar xfce4; do + DIRPATH=~/.config/$DIR1 + if [ -d "$DIRPATH" ]; then + echo -e "${NOTE} config for $DIR1 found, no need to copy" + else + echo -e "${NOTE} config for $DIR1 not found, copying from assets..." + cp -r assets/$DIR1 ~/.config/ && echo "${OK} copy $DIR1 completed!" || echo "${ERROR} error: failed to copy $DIR1 config files!" + fi +done + +echo "-----" +printf "\n%.0s" {1..3} + +# clean up +#gtk themes and icons +if [ -d "nixos-themeing" ]; then + echo "${NOTE} gtk themes and icons folder exists, deleting..." + rm -rf "nixos-themeing" +fi + +echo "-----" +printf "\n%.0s" {1..3} + +# cloning hyprland dotiles to home folder diff --git a/hosts/default/packages-fonts.nix b/hosts/default/packages-fonts.nix index 4284212..082dc82 100644 --- a/hosts/default/packages-fonts.nix +++ b/hosts/default/packages-fonts.nix @@ -23,6 +23,7 @@ in # TODO xdg-user-dirs xdg-utils + kitty fastfetch