From ab20043962d8e2346d83a16db927e62e1f4f6e7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Czy=C5=BC?= Date: Wed, 14 Feb 2024 11:47:59 +0100 Subject: [PATCH] rofi update --- git/.gitconfig | 8 + rofi/.config/rofi/config.rasi | 199 +----------- .../.config/rofi/launchers/type-1/launcher.sh | 15 - .../rofi/launchers/type-1/shared/colors.rasi | 8 - .../rofi/launchers/type-1/shared/fonts.rasi | 10 - .../rofi/launchers/type-1/style-1.rasi | 307 ------------------ .../rofi/powermenu/type-1/powermenu.sh | 95 ------ .../rofi/powermenu/type-1/shared/colors.rasi | 10 - .../rofi/powermenu/type-1/shared/fonts.rasi | 10 - .../rofi/powermenu/type-1/style-1.rasi | 166 ---------- rofi/.config/rofi/scripts/emoji | 6 - rofi/.config/rofi/scripts/launcher | 1 - rofi/.config/rofi/scripts/powermenu | 1 - rofi/.config/rofi/scripts/theme | 51 --- rofi/.config/rofi/scripts/wallpaper | 55 ---- rofi/.config/rofi/scripts/websearch | 54 --- .../share/rofi/themes/catppuccin-frappe.rasi | 111 +++++++ .../share/rofi/themes/catppuccin-latte.rasi | 111 +++++++ .../rofi/themes/catppuccin-macchiato.rasi | 111 +++++++ .../share/rofi/themes/catppuccin-mocha.rasi | 111 +++++++ zsh/.zsh_plugins.zsh | 34 ++ 21 files changed, 503 insertions(+), 971 deletions(-) create mode 100644 git/.gitconfig delete mode 100755 rofi/.config/rofi/launchers/type-1/launcher.sh delete mode 100644 rofi/.config/rofi/launchers/type-1/shared/colors.rasi delete mode 100644 rofi/.config/rofi/launchers/type-1/shared/fonts.rasi delete mode 100644 rofi/.config/rofi/launchers/type-1/style-1.rasi delete mode 100755 rofi/.config/rofi/powermenu/type-1/powermenu.sh delete mode 100644 rofi/.config/rofi/powermenu/type-1/shared/colors.rasi delete mode 100644 rofi/.config/rofi/powermenu/type-1/shared/fonts.rasi delete mode 100644 rofi/.config/rofi/powermenu/type-1/style-1.rasi delete mode 100755 rofi/.config/rofi/scripts/emoji delete mode 120000 rofi/.config/rofi/scripts/launcher delete mode 120000 rofi/.config/rofi/scripts/powermenu delete mode 100755 rofi/.config/rofi/scripts/theme delete mode 100755 rofi/.config/rofi/scripts/wallpaper delete mode 100755 rofi/.config/rofi/scripts/websearch create mode 100644 rofi/.local/share/rofi/themes/catppuccin-frappe.rasi create mode 100644 rofi/.local/share/rofi/themes/catppuccin-latte.rasi create mode 100644 rofi/.local/share/rofi/themes/catppuccin-macchiato.rasi create mode 100644 rofi/.local/share/rofi/themes/catppuccin-mocha.rasi create mode 100644 zsh/.zsh_plugins.zsh diff --git a/git/.gitconfig b/git/.gitconfig new file mode 100644 index 0000000..30c4317 --- /dev/null +++ b/git/.gitconfig @@ -0,0 +1,8 @@ +[user] + email = mike@c2yz.com + name = Michael Czyż + signingkey = 78D4829A477DAB25 +[commit] + gpgsign = true +[push] + default = simple diff --git a/rofi/.config/rofi/config.rasi b/rofi/.config/rofi/config.rasi index 6cee309..fb503d3 100644 --- a/rofi/.config/rofi/config.rasi +++ b/rofi/.config/rofi/config.rasi @@ -1,183 +1,18 @@ -/** - * - * Author : Aditya Shakya (adi1090x) - * Github : @adi1090x - * - * Configuration For Rofi Version: 1.7.3 - **/ - -@import "~/.cache/wal/colors-rofi-dark" - -configuration { - /*---------- General setting ----------*/ - modi: "drun,run,filebrowser,window"; - case-sensitive: false; - cycle: true; - filter: ""; - scroll-method: 0; - normalize-match: true; - show-icons: true; - icon-theme: "Papirus"; -/* cache-dir: ;*/ - steal-focus: false; -/* dpi: -1;*/ - - /*---------- Matching setting ----------*/ - matching: "normal"; - tokenize: true; - - /*---------- SSH settings ----------*/ - ssh-client: "ssh"; - ssh-command: "{terminal} -e {ssh-client} {host} [-p {port}]"; - parse-hosts: true; - parse-known-hosts: true; - - /*---------- Drun settings ----------*/ - drun-categories: ""; - drun-match-fields: "name,generic,exec,categories,keywords"; - drun-display-format: "{name} [({generic})]"; - drun-show-actions: false; - drun-url-launcher: "xdg-open"; - drun-use-desktop-cache: false; - drun-reload-desktop-cache: false; - drun { - /** Parse user desktop files. */ - parse-user: true; - /** Parse system desktop files. */ - parse-system: true; - } - - /*---------- Run settings ----------*/ - run-command: "{cmd}"; - run-list-command: ""; - run-shell-command: "{terminal} -e {cmd}"; - - /*---------- Fallback Icon ----------*/ - run,drun { - fallback-icon: "application-x-addon"; - } - - /*---------- Window switcher settings ----------*/ - window-match-fields: "title,class,role,name,desktop"; - window-command: "wmctrl -i -R {window}"; - window-format: "{w} - {c} - {t:0}"; - window-thumbnail: false; - - /*---------- Combi settings ----------*/ -/* combi-modi: "window,run";*/ -/* combi-hide-mode-prefix: false;*/ -/* combi-display-format: "{mode} {text}";*/ - - /*---------- History and Sorting ----------*/ - disable-history: false; - sorting-method: "normal"; - max-history-size: 25; - - /*---------- Display setting ----------*/ - display-window: "Windows"; - display-windowcd: "Window CD"; - display-run: "Run"; - display-ssh: "SSH"; - display-drun: "Apps"; - display-combi: "Combi"; - display-keys: "Keys"; - display-filebrowser: "Files"; - - /*---------- Misc setting ----------*/ - terminal: "rofi-sensible-terminal"; - font: "Mono 12"; - sort: false; - threads: 0; - click-to-exit: true; -/* ignored-prefixes: "";*/ -/* pid: "/run/user/1000/rofi.pid";*/ - - /*---------- File browser settings ----------*/ - filebrowser { -/* directory: "/home";*/ - directories-first: true; - sorting-method: "name"; - } - - /*---------- Other settings ----------*/ - timeout { - action: "kb-cancel"; - delay: 0; - } - - /*---------- Keybindings ----------*/ -/* - kb-primary-paste: "Control+V,Shift+Insert"; - kb-secondary-paste: "Control+v,Insert"; - kb-clear-line: "Control+w"; - kb-move-front: "Control+a"; - kb-move-end: "Control+e"; - kb-move-word-back: "Alt+b,Control+Left"; - kb-move-word-forward: "Alt+f,Control+Right"; - kb-move-char-back: "Left,Control+b"; - kb-move-char-forward: "Right,Control+f"; - kb-remove-word-back: "Control+Alt+h,Control+BackSpace"; - kb-remove-word-forward: "Control+Alt+d"; - kb-remove-char-forward: "Delete,Control+d"; - kb-remove-char-back: "BackSpace,Shift+BackSpace,Control+h"; - kb-remove-to-eol: "Control+k"; - kb-remove-to-sol: "Control+u"; - kb-accept-entry: "Control+j,Control+m,Return,KP_Enter"; - kb-accept-custom: "Control+Return"; - kb-accept-custom-alt: "Control+Shift+Return"; - kb-accept-alt: "Shift+Return"; - kb-delete-entry: "Shift+Delete"; - kb-mode-next: "Shift+Right,Control+Tab"; - kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab"; - kb-mode-complete: "Control+l"; - kb-row-left: "Control+Page_Up"; - kb-row-right: "Control+Page_Down"; - kb-row-down: "Down,Control+n"; - kb-page-prev: "Page_Up"; - kb-page-next: "Page_Down"; - kb-row-first: "Home,KP_Home"; - kb-row-last: "End,KP_End"; - kb-row-select: "Control+space"; - kb-screenshot: "Alt+S"; - kb-ellipsize: "Alt+period"; - kb-toggle-case-sensitivity: "grave,dead_grave"; - kb-toggle-sort: "Alt+grave"; - kb-cancel: "Escape,Control+g,Control+bracketleft"; - kb-custom-1: "Alt+1"; - kb-custom-2: "Alt+2"; - kb-custom-3: "Alt+3"; - kb-custom-4: "Alt+4"; - kb-custom-5: "Alt+5"; - kb-custom-6: "Alt+6"; - kb-custom-7: "Alt+7"; - kb-custom-8: "Alt+8"; - kb-custom-9: "Alt+9"; - kb-custom-10: "Alt+0"; - kb-custom-11: "Alt+exclam"; - kb-custom-12: "Alt+at"; - kb-custom-13: "Alt+numbersign"; - kb-custom-14: "Alt+dollar"; - kb-custom-15: "Alt+percent"; - kb-custom-16: "Alt+dead_circumflex"; - kb-custom-17: "Alt+ampersand"; - kb-custom-18: "Alt+asterisk"; - kb-custom-19: "Alt+parenleft"; - kb-select-1: "Super+1"; - kb-select-2: "Super+2"; - kb-select-3: "Super+3"; - kb-select-4: "Super+4"; - kb-select-5: "Super+5"; - kb-select-6: "Super+6"; - kb-select-7: "Super+7"; - kb-select-8: "Super+8"; - kb-select-9: "Super+9"; - kb-select-10: "Super+0"; - ml-row-left: "ScrollLeft"; - ml-row-right: "ScrollRight"; - ml-row-up: "ScrollUp"; - ml-row-down: "ScrollDown"; - me-select-entry: "MousePrimary"; - me-accept-entry: "MouseDPrimary"; - me-accept-custom: "Control+MouseDPrimary"; -*/ +configuration{ + modi: "run,drun,window"; + icon-theme: "Oranchelo"; + show-icons: true; + terminal: "alacritty"; + drun-display-format: "{icon} {name}"; + location: 0; + disable-history: false; + hide-scrollbar: true; + display-drun: "  Apps "; + display-run: "  Run "; + display-window: " 﩯 Window"; + display-Network: " 󰤨 Network"; + sidebar-mode: true; } + +@theme "catppuccin-mocha" + diff --git a/rofi/.config/rofi/launchers/type-1/launcher.sh b/rofi/.config/rofi/launchers/type-1/launcher.sh deleted file mode 100755 index a6b7b9b..0000000 --- a/rofi/.config/rofi/launchers/type-1/launcher.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash - -## Author : Aditya Shakya (adi1090x) -## Github : @adi1090x -# -## Rofi : Launcher (Modi Drun, Run, File Browser, Window) -# - -dir="$HOME/.config/rofi/launchers/type-1" -theme='style-1' - -## Run -rofi \ - -show drun \ - -theme ${dir}/${theme}.rasi diff --git a/rofi/.config/rofi/launchers/type-1/shared/colors.rasi b/rofi/.config/rofi/launchers/type-1/shared/colors.rasi deleted file mode 100644 index 9edf4e8..0000000 --- a/rofi/.config/rofi/launchers/type-1/shared/colors.rasi +++ /dev/null @@ -1,8 +0,0 @@ -/** - * - * Author : Aditya Shakya (adi1090x) - * Github : @adi1090x - * - **/ - -@import "~/.cache/wal/colors-rofi.rasi" diff --git a/rofi/.config/rofi/launchers/type-1/shared/fonts.rasi b/rofi/.config/rofi/launchers/type-1/shared/fonts.rasi deleted file mode 100644 index d2290c5..0000000 --- a/rofi/.config/rofi/launchers/type-1/shared/fonts.rasi +++ /dev/null @@ -1,10 +0,0 @@ -/** - * - * Author : Aditya Shakya (adi1090x) - * Github : @adi1090x - * - **/ - -* { - font: "CartographCF Nerd Font 10"; -} diff --git a/rofi/.config/rofi/launchers/type-1/style-1.rasi b/rofi/.config/rofi/launchers/type-1/style-1.rasi deleted file mode 100644 index 60639e4..0000000 --- a/rofi/.config/rofi/launchers/type-1/style-1.rasi +++ /dev/null @@ -1,307 +0,0 @@ -/** - * - * Author : Aditya Shakya (adi1090x) - * Github : @adi1090x - * - * Rofi Theme File - * Rofi Version: 1.7.3 - **/ - -/*****----- Configuration -----*****/ -configuration { - modi: "drun,run,filebrowser"; - show-icons: false; - display-drun: " Apps"; - display-run: " Run"; - display-filebrowser: " Files"; - display-window: " Windows"; - drun-display-format: "{name} [({generic})]"; - window-format: "{w} · {c} · {t}"; -} - -/*****----- Global Properties -----*****/ -@import "shared/colors.rasi" -@import "shared/fonts.rasi" - -* { - border-colour: var(selected); - handle-colour: var(selected); - background-colour: var(background); - foreground-colour: var(foreground); - alternate-background: var(background-alt); - normal-background: var(background); - normal-foreground: var(foreground); - urgent-background: var(urgent); - urgent-foreground: var(background); - active-background: var(active); - active-foreground: var(background); - selected-normal-background: var(selected); - selected-normal-foreground: var(background); - selected-urgent-background: var(active); - selected-urgent-foreground: var(background); - selected-active-background: var(urgent); - selected-active-foreground: var(background); - alternate-normal-background: var(background); - alternate-normal-foreground: var(foreground); - alternate-urgent-background: var(urgent); - alternate-urgent-foreground: var(background); - alternate-active-background: var(active); - alternate-active-foreground: var(background); -} - -/*****----- Main Window -----*****/ -window { - /* properties for window widget */ - transparency: "real"; - location: center; - anchor: center; - fullscreen: false; - width: 800px; - x-offset: 0px; - y-offset: 0px; - - /* properties for all widgets */ - enabled: true; - margin: 0px; - padding: 0px; - border: 0px solid; - border-radius: 20px; - border-color: @border-colour; - cursor: "default"; - /* Backgroud Colors */ - background-color: @background-colour; - /* Backgroud Image */ - //background-image: url("/path/to/image.png", none); - /* Simple Linear Gradient */ - //background-image: linear-gradient(red, orange, pink, purple); - /* Directional Linear Gradient */ - //background-image: linear-gradient(to bottom, pink, yellow, magenta); - /* Angle Linear Gradient */ - //background-image: linear-gradient(45, cyan, purple, indigo); -} - -/*****----- Main Box -----*****/ -mainbox { - enabled: true; - spacing: 10px; - margin: 0px; - padding: 40px; - border: 0px solid; - border-radius: 0px 0px 0px 0px; - border-color: @border-colour; - background-color: transparent; - children: [ "inputbar", "message", "listview", "mode-switcher" ]; -} - -/*****----- Inputbar -----*****/ -inputbar { - enabled: true; - spacing: 10px; - margin: 0px; - padding: 0px; - border: 0px solid; - border-radius: 0px; - border-color: @border-colour; - background-color: transparent; - text-color: @foreground-colour; - children: [ "prompt", "textbox-prompt-colon", "entry" ]; -} - -prompt { - enabled: true; - background-color: inherit; - text-color: inherit; -} -textbox-prompt-colon { - enabled: true; - expand: false; - str: "::"; - background-color: inherit; - text-color: inherit; -} -entry { - enabled: true; - background-color: inherit; - text-color: inherit; - cursor: text; - placeholder: "Search..."; - placeholder-color: inherit; -} -num-filtered-rows { - enabled: true; - expand: false; - background-color: inherit; - text-color: inherit; -} -textbox-num-sep { - enabled: true; - expand: false; - str: "/"; - background-color: inherit; - text-color: inherit; -} -num-rows { - enabled: true; - expand: false; - background-color: inherit; - text-color: inherit; -} -case-indicator { - enabled: true; - background-color: inherit; - text-color: inherit; -} - -/*****----- Listview -----*****/ -listview { - enabled: true; - columns: 2; - lines: 10; - cycle: true; - dynamic: true; - scrollbar: true; - layout: vertical; - reverse: false; - fixed-height: true; - fixed-columns: true; - - spacing: 5px; - margin: 0px; - padding: 0px; - border: 0px solid; - border-radius: 0px; - border-color: @border-colour; - background-color: transparent; - text-color: @foreground-colour; - cursor: "default"; -} -scrollbar { - handle-width: 10px ; - handle-color: @handle-colour; - border-radius: 10px; - background-color: @alternate-background; -} - -/*****----- Elements -----*****/ -element { - enabled: true; - spacing: 10px; - margin: 0px; - padding: 5px 10px; - border: 0px solid; - border-radius: 20px; - border-color: @border-colour; - background-color: transparent; - text-color: @foreground-colour; - cursor: pointer; -} -element normal.normal { - background-color: var(normal-background); - text-color: var(normal-foreground); -} -element normal.urgent { - background-color: var(urgent-background); - text-color: var(urgent-foreground); -} -element normal.active { - background-color: var(active-background); - text-color: var(active-foreground); -} -element selected.normal { - background-color: var(selected-normal-background); - text-color: var(selected-normal-foreground); -} -element selected.urgent { - background-color: var(selected-urgent-background); - text-color: var(selected-urgent-foreground); -} -element selected.active { - background-color: var(selected-active-background); - text-color: var(selected-active-foreground); -} -element alternate.normal { - background-color: var(alternate-normal-background); - text-color: var(alternate-normal-foreground); -} -element alternate.urgent { - background-color: var(alternate-urgent-background); - text-color: var(alternate-urgent-foreground); -} -element alternate.active { - background-color: var(alternate-active-background); - text-color: var(alternate-active-foreground); -} -element-icon { - background-color: transparent; - text-color: inherit; - size: 24px; - cursor: inherit; -} -element-text { - background-color: transparent; - text-color: inherit; - highlight: inherit; - cursor: inherit; - vertical-align: 0.5; - horizontal-align: 0.0; -} - -/*****----- Mode Switcher -----*****/ -mode-switcher{ - enabled: true; - spacing: 10px; - margin: 0px; - padding: 0px; - border: 0px solid; - border-radius: 0px; - border-color: @border-colour; - background-color: transparent; - text-color: @foreground-colour; -} -button { - padding: 5px 10px; - border: 0px solid; - border-radius: 20px; - border-color: @border-colour; - background-color: @alternate-background; - text-color: inherit; - cursor: pointer; -} -button selected { - background-color: var(selected-normal-background); - text-color: var(selected-normal-foreground); -} - -/*****----- Message -----*****/ -message { - enabled: true; - margin: 0px; - padding: 0px; - border: 0px solid; - border-radius: 0px 0px 0px 0px; - border-color: @border-colour; - background-color: transparent; - text-color: @foreground-colour; -} -textbox { - padding: 5px 10px; - border: 0px solid; - border-radius: 20px; - border-color: @border-colour; - background-color: @alternate-background; - text-color: @foreground-colour; - vertical-align: 0.5; - horizontal-align: 0.0; - highlight: none; - placeholder-color: @foreground-colour; - blink: true; - markup: true; -} -error-message { - padding: 10px; - border: 2px solid; - border-radius: 20px; - border-color: @border-colour; - background-color: @background-colour; - text-color: @foreground-colour; -} \ No newline at end of file diff --git a/rofi/.config/rofi/powermenu/type-1/powermenu.sh b/rofi/.config/rofi/powermenu/type-1/powermenu.sh deleted file mode 100755 index d60af98..0000000 --- a/rofi/.config/rofi/powermenu/type-1/powermenu.sh +++ /dev/null @@ -1,95 +0,0 @@ -#!/usr/bin/env bash - -## Author : Aditya Shakya (adi1090x) -## Github : @adi1090x -# -## Rofi : Power Menu - -# Current Theme -dir="$HOME/.config/rofi/powermenu/type-1" -theme='style-1' - -# CMDs -uptime="`uptime -p | sed -e 's/up //g'`" -host=`hostname` - -# Options -shutdown='󰐥 Shutdown' -reboot=' Reboot' -lock=' Lock' -suspend='󰏦 Suspend' -logout='󰿅 Logout' -yes=' Yes' -no=' No' - -# Rofi CMD -rofi_cmd() { - rofi -dmenu \ - -p "Uptime: $uptime" \ - -theme ${dir}/${theme}.rasi -} - -# Confirmation CMD -confirm_cmd() { - rofi -theme-str 'window {location: center; anchor: center; fullscreen: false; width: 250px;}' \ - -theme-str 'mainbox {children: [ "message", "listview" ];}' \ - -theme-str 'listview {columns: 2; lines: 1;}' \ - -theme-str 'element-text {horizontal-align: 0.5;}' \ - -theme-str 'textbox {horizontal-align: 0.5;}' \ - -dmenu \ - -p 'Confirmation' \ - -mesg 'Are you Sure?' \ - -theme ${dir}/${theme}.rasi -} - -# Ask for confirmation -confirm_exit() { - echo -e "$yes\n$no" | confirm_cmd -} - -# Pass variables to rofi dmenu -run_rofi() { - echo -e "$lock\n$suspend\n$logout\n$reboot\n$shutdown" | rofi_cmd -} - -# Execute Command -run_cmd() { - selected="$(confirm_exit)" - if [[ "$selected" == "$yes" ]]; then - if [[ $1 == '--shutdown' ]]; then - systemctl poweroff - elif [[ $1 == '--reboot' ]]; then - systemctl reboot - elif [[ $1 == '--lock' ]]; then - $HOME/.config/hypr/scripts/lock - elif [[ $1 == '--suspend' ]]; then - mpc -q pause - amixer set Master mute - systemctl suspend - elif [[ $1 == '--logout' ]]; then - hyprctl dispatch exit - fi - else - exit 0 - fi -} - -# Actions -chosen="$(run_rofi)" -case ${chosen} in - $shutdown) - run_cmd --shutdown - ;; - $reboot) - run_cmd --reboot - ;; - $lock) - $HOME/.config/hypr/scripts/lock - ;; - $suspend) - run_cmd --suspend - ;; - $logout) - run_cmd --logout - ;; -esac diff --git a/rofi/.config/rofi/powermenu/type-1/shared/colors.rasi b/rofi/.config/rofi/powermenu/type-1/shared/colors.rasi deleted file mode 100644 index ab41845..0000000 --- a/rofi/.config/rofi/powermenu/type-1/shared/colors.rasi +++ /dev/null @@ -1,10 +0,0 @@ -/** - * - * Author : Aditya Shakya (adi1090x) - * Github : @adi1090x - * - **/ - -/* Import color-scheme from `colors` directory */ - -@import "~/.cache/wal/colors-rofi.rasi" diff --git a/rofi/.config/rofi/powermenu/type-1/shared/fonts.rasi b/rofi/.config/rofi/powermenu/type-1/shared/fonts.rasi deleted file mode 100644 index 95d2d4a..0000000 --- a/rofi/.config/rofi/powermenu/type-1/shared/fonts.rasi +++ /dev/null @@ -1,10 +0,0 @@ -/** - * - * Author : Aditya Shakya (adi1090x) - * Github : @adi1090x - * - **/ - -* { - font: "CartographCF Nerd Font 10"; -} diff --git a/rofi/.config/rofi/powermenu/type-1/style-1.rasi b/rofi/.config/rofi/powermenu/type-1/style-1.rasi deleted file mode 100644 index 47406f3..0000000 --- a/rofi/.config/rofi/powermenu/type-1/style-1.rasi +++ /dev/null @@ -1,166 +0,0 @@ -/** - * - * Author : Aditya Shakya (adi1090x) - * Github : @adi1090x - * - * Rofi Theme File - * Rofi Version: 1.7.3 - **/ - -/*****----- Configuration -----*****/ -configuration { - show-icons: false; -} - -/*****----- Global Properties -----*****/ -@import "shared/colors.rasi" -@import "shared/fonts.rasi" - -/*****----- Main Window -----*****/ -window { - /* properties for window widget */ - transparency: "real"; - location: center; - anchor: center; - fullscreen: false; - width: 400px; - x-offset: 0px; - y-offset: 0px; - - /* properties for all widgets */ - enabled: true; - margin: 0px; - padding: 0px; - border: 0px solid; - border-radius: 12px; - border-color: @selected; - cursor: "default"; - background-color: @background; -} - -/*****----- Main Box -----*****/ -mainbox { - enabled: true; - spacing: 10px; - margin: 0px; - padding: 20px; - border: 0px solid; - border-radius: 0px; - border-color: @selected; - background-color: transparent; - children: [ "inputbar", "message", "listview" ]; -} - -/*****----- Inputbar -----*****/ -inputbar { - enabled: true; - spacing: 10px; - margin: 0px; - padding: 0px; - border: 0px; - border-radius: 0px; - border-color: @selected; - background-color: transparent; - text-color: @foreground; - children: [ "textbox-prompt-colon", "prompt"]; -} - -textbox-prompt-colon { - enabled: true; - expand: false; - str: ""; - padding: 10px 14px; - border-radius: 10px; - background-color: @urgent; - text-color: @background; -} -prompt { - enabled: true; - margin: 0px; - padding: 10px; - border: 0px solid; - border-radius: 10px; - border-color: @selected; - background-color: @background-alt; - text-color: @foreground; -} - -/*****----- Message -----*****/ -message { - enabled: true; - margin: 0px; - padding: 10px; - border: 0px solid; - border-radius: 10px; - border-color: @selected; - background-color: @background-alt; - text-color: @foreground; -} -textbox { - background-color: inherit; - text-color: inherit; - vertical-align: 0.5; - horizontal-align: 0.0; - placeholder-color: @foreground; - blink: true; - markup: true; -} -error-message { - padding: 10px; - border: 0px solid; - border-radius: 0px; - border-color: @selected; - background-color: @background; - text-color: @foreground; -} - -/*****----- Listview -----*****/ -listview { - enabled: true; - columns: 1; - lines: 5; - cycle: true; - dynamic: true; - scrollbar: false; - layout: vertical; - reverse: false; - fixed-height: true; - fixed-columns: true; - - spacing: 5px; - margin: 0px; - padding: 0px; - border: 0px solid; - border-radius: 0px; - border-color: @selected; - background-color: transparent; - text-color: @foreground; - cursor: "default"; -} - -/*****----- Elements -----*****/ -element { - enabled: true; - spacing: 0px; - margin: 0px; - padding: 10px; - border: 0px solid; - border-radius: 10px; - border-color: @selected; - background-color: transparent; - text-color: @foreground; - cursor: pointer; -} -element-text { - background-color: transparent; - text-color: inherit; - cursor: inherit; - vertical-align: 0.5; - horizontal-align: 0.0; -} -element selected.normal { - background-color: var(selected); - text-color: var(background); -} - -@import "~/.cache/wal/colors-rofi.rasi" diff --git a/rofi/.config/rofi/scripts/emoji b/rofi/.config/rofi/scripts/emoji deleted file mode 100755 index 60005b7..0000000 --- a/rofi/.config/rofi/scripts/emoji +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -dir="$HOME/.config/rofi/launchers/type-1" -theme='style-1' - -rofi -modi emoji -show emoji -theme ${dir}/${theme}.rasi \ No newline at end of file diff --git a/rofi/.config/rofi/scripts/launcher b/rofi/.config/rofi/scripts/launcher deleted file mode 120000 index 9a28f03..0000000 --- a/rofi/.config/rofi/scripts/launcher +++ /dev/null @@ -1 +0,0 @@ -../launchers/type-1/launcher.sh \ No newline at end of file diff --git a/rofi/.config/rofi/scripts/powermenu b/rofi/.config/rofi/scripts/powermenu deleted file mode 120000 index 9d864f6..0000000 --- a/rofi/.config/rofi/scripts/powermenu +++ /dev/null @@ -1 +0,0 @@ -../powermenu/type-1/powermenu.sh \ No newline at end of file diff --git a/rofi/.config/rofi/scripts/theme b/rofi/.config/rofi/scripts/theme deleted file mode 100755 index 5c23868..0000000 --- a/rofi/.config/rofi/scripts/theme +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash - -export PATH="${PATH}:${HOME}/.local/bin/" - -dir="$HOME/.config/rofi/launchers/type-1" -rofitheme='style-1' - -themes=$HOME/.dots/theme -option="$(ls $themes | rofi -dmenu -i -p " Select theme: " -theme ${dir}/${rofitheme}.rasi)" -theme=$themes/$option - -if [[ -d $themes/$option ]]; then - echo "$themes/$option is a directory" - exit 1 -elif [[ -f $themes/$option ]]; then - echo "$themes/$option is a file" - . $themes/$option -else - echo "$themes/$option is not valid" - exit 1 -fi - -source ~/.colormode - -wallight="" -gtktheme=Macchiato -gtktype=Dark - -if [[ $isLight -eq 1 ]]; then - wallight="-l" - gtktheme=Latte - gtktype=Light -fi - -wal $wallight -i "$(cat $HOME/.cache/wal/wal)" --cols16 -# pywalfox update -# pywal-discord -t default -wal-telegram --wal - -. $HOME/.config/mako/update-colors.sh -. $HOME/.config/spicetify/Themes/Pywal/update-colors.sh & -. $HOME/.config/cava/scripts/update-colors.sh - -echo "Net/ThemeName \"Catppuccin-$gtktheme-Standard-Blue-$gtktype\"" > $HOME/.xsettingsd -killall -HUP xsettingsd -xsettingsd & - -kill -HUP $(pgrep -f 'bar.sh') -bash $HOME/.cache/wal/bar.sh & disown - -killall -HUP dwm diff --git a/rofi/.config/rofi/scripts/wallpaper b/rofi/.config/rofi/scripts/wallpaper deleted file mode 100755 index 180f667..0000000 --- a/rofi/.config/rofi/scripts/wallpaper +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/bash - -export PATH="${PATH}:${HOME}/.local/bin/" - -dir="$HOME/.config/rofi/launchers/type-1" -theme='style-1' - -wallpapers=$HOME/Wallpapers -image="$(ls $wallpapers | rofi -dmenu -i -p " Select wallpaper: " -theme ${dir}/${theme}.rasi)" -wallpaper=$wallpapers/$image - -if [[ -d $wallpapers/$image ]]; then - echo "$wallpapers/$image is a directory" - wallpaper_temp="$image" - sleep2 - wallpaper_location="$(ls $wallpapers/$image | wofi -n --show dmenu -k "/dev/null")" -elif [[ -f $wallpapers/$image ]]; then - echo "$wallpapers/$image is a file" -else - echo "$wallpapers/$image is not valid" - exit 1 -fi - -# swww img $wallpaper --transition-type grow --transition-fps 60 --transition-duration 1.0 --transition-bezier 0.65,0,0.35,1 --transition-step 255 -feh --bg-fill $wallpaper - -source ~/.colormode - -wallight="" -gtktheme=Macchiato -gtktype=Dark - -if [[ $isLight -eq 1 ]]; then - wallight="-l" - gtktheme=Latte - gtktype=Light -fi - -wal $wallight -i $wallpaper --cols16 -# pywalfox update -pywal-discord -t default -wal-telegram --wal - -. $HOME/.config/mako/update-colors.sh -. $HOME/.config/spicetify/Themes/Pywal/update-colors.sh & -. $HOME/.config/cava/scripts/update-colors.sh - -echo "Net/ThemeName \"Catppuccin-$gtktheme-Standard-Blue-$gtktype\"" > $HOME/.xsettingsd -killall -HUP xsettingsd -xsettingsd & - -kill -HUP $(pgrep -f 'bar.sh') -bash $HOME/.cache/wal/bar.sh & disown - -killall -HUP dwm diff --git a/rofi/.config/rofi/scripts/websearch b/rofi/.config/rofi/scripts/websearch deleted file mode 100755 index 3a00768..0000000 --- a/rofi/.config/rofi/scripts/websearch +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash - -dir="$HOME/.config/rofi/launchers/type-1" -theme='style-1' - -declare -A URLS - -URLS=( - ["kvasir"]="https://czyz.icu/search?q=" - ["google"]="https://www.google.com/search?q=" - ["duckduckgo"]="https://www.duckduckgo.com/?q=" - ["bing"]="https://www.bing.com/search?q=" - ["youtube"]="https://www.youtube.com/results?search_query=" - ["github"]="https://github.com/search?q=" - ["goodreads"]="https://www.goodreads.com/search?q=" - ["stackoverflow"]="http://stackoverflow.com/search?q=" - ["symbolhound"]="http://symbolhound.com/?q=" - ["searchcode"]="https://searchcode.com/?q=" - ["superuser"]="http://superuser.com/search?q=" - ["imdb"]="http://www.imdb.com/find?ref_=nv_sr_fn&q=" - ["rottentomatoes"]="https://www.rottentomatoes.com/search/?search=" - ["vimawesome"]="http://vimawesome.com/?q=" -) - -# List for rofi -gen_list() { - for i in "${!URLS[@]}" - do - echo "$i" - done -} - -main() { - # Pass the list to rofi - platform=$( (gen_list) | rofi -dmenu -matching fuzzy -no-custom -location 0 -p "Platform: " -theme ${dir}/${theme}.rasi) - - if [[ -n "$platform" ]]; then - query=$( (echo ) | rofi -dmenu -matching fuzzy -location 0 -p "Search: " -theme ${dir}/${theme}.rasi) - - if [[ -n "$query" ]]; then - url=${URLS[$platform]}$query - xdg-open "$url" - else - exit - fi - - else - exit - fi -} - -main - -exit 0 \ No newline at end of file diff --git a/rofi/.local/share/rofi/themes/catppuccin-frappe.rasi b/rofi/.local/share/rofi/themes/catppuccin-frappe.rasi new file mode 100644 index 0000000..e6e8783 --- /dev/null +++ b/rofi/.local/share/rofi/themes/catppuccin-frappe.rasi @@ -0,0 +1,111 @@ +* { + bg-col: #303446; + bg-col-light: #303446; + border-col: #303446; + selected-col: #303446; + blue: #8caaee; + fg-col: #c6d0f5; + fg-col2: #e78284; + grey: #737994; + + width: 600; + font: "JetBrainsMono Nerd Font 14"; +} + +element-text, element-icon , mode-switcher { + background-color: inherit; + text-color: inherit; +} + +window { + height: 360px; + border: 3px; + border-color: @border-col; + background-color: @bg-col; +} + +mainbox { + background-color: @bg-col; +} + +inputbar { + children: [prompt,entry]; + background-color: @bg-col; + border-radius: 5px; + padding: 2px; +} + +prompt { + background-color: @blue; + padding: 6px; + text-color: @bg-col; + border-radius: 3px; + margin: 20px 0px 0px 20px; +} + +textbox-prompt-colon { + expand: false; + str: ":"; +} + +entry { + padding: 6px; + margin: 20px 0px 0px 10px; + text-color: @fg-col; + background-color: @bg-col; +} + +listview { + border: 0px 0px 0px; + padding: 6px 0px 0px; + margin: 10px 0px 0px 20px; + columns: 2; + lines: 5; + background-color: @bg-col; +} + +element { + padding: 5px; + background-color: @bg-col; + text-color: @fg-col ; +} + +element-icon { + size: 25px; +} + +element selected { + background-color: @selected-col ; + text-color: @fg-col2 ; +} + +mode-switcher { + spacing: 0; + } + +button { + padding: 10px; + background-color: @bg-col-light; + text-color: @grey; + vertical-align: 0.5; + horizontal-align: 0.5; +} + +button selected { + background-color: @bg-col; + text-color: @blue; +} + +message { + background-color: @bg-col-light; + margin: 2px; + padding: 2px; + border-radius: 5px; +} + +textbox { + padding: 6px; + margin: 20px 0px 0px 20px; + text-color: @blue; + background-color: @bg-col-light; +} diff --git a/rofi/.local/share/rofi/themes/catppuccin-latte.rasi b/rofi/.local/share/rofi/themes/catppuccin-latte.rasi new file mode 100644 index 0000000..6826db6 --- /dev/null +++ b/rofi/.local/share/rofi/themes/catppuccin-latte.rasi @@ -0,0 +1,111 @@ +* { + bg-col: #eff1f5; + bg-col-light: #eff1f5; + border-col: #eff1f5; + selected-col: #eff1f5; + blue: #1e66f5; + fg-col: #4c4f69; + fg-col2: #d20f39; + grey: #9ca0b0; + + width: 600; + font: "JetBrainsMono Nerd Font 14"; +} + +element-text, element-icon , mode-switcher { + background-color: inherit; + text-color: inherit; +} + +window { + height: 360px; + border: 3px; + border-color: @border-col; + background-color: @bg-col; +} + +mainbox { + background-color: @bg-col; +} + +inputbar { + children: [prompt,entry]; + background-color: @bg-col; + border-radius: 5px; + padding: 2px; +} + +prompt { + background-color: @blue; + padding: 6px; + text-color: @bg-col; + border-radius: 3px; + margin: 20px 0px 0px 20px; +} + +textbox-prompt-colon { + expand: false; + str: ":"; +} + +entry { + padding: 6px; + margin: 20px 0px 0px 10px; + text-color: @fg-col; + background-color: @bg-col; +} + +listview { + border: 0px 0px 0px; + padding: 6px 0px 0px; + margin: 10px 0px 0px 20px; + columns: 2; + lines: 5; + background-color: @bg-col; +} + +element { + padding: 5px; + background-color: @bg-col; + text-color: @fg-col ; +} + +element-icon { + size: 25px; +} + +element selected { + background-color: @selected-col ; + text-color: @fg-col2 ; +} + +mode-switcher { + spacing: 0; + } + +button { + padding: 10px; + background-color: @bg-col-light; + text-color: @grey; + vertical-align: 0.5; + horizontal-align: 0.5; +} + +button selected { + background-color: @bg-col; + text-color: @blue; +} + +message { + background-color: @bg-col-light; + margin: 2px; + padding: 2px; + border-radius: 5px; +} + +textbox { + padding: 6px; + margin: 20px 0px 0px 20px; + text-color: @blue; + background-color: @bg-col-light; +} diff --git a/rofi/.local/share/rofi/themes/catppuccin-macchiato.rasi b/rofi/.local/share/rofi/themes/catppuccin-macchiato.rasi new file mode 100644 index 0000000..696d769 --- /dev/null +++ b/rofi/.local/share/rofi/themes/catppuccin-macchiato.rasi @@ -0,0 +1,111 @@ +* { + bg-col: #24273a; + bg-col-light: #24273a; + border-col: #24273a; + selected-col: #24273a; + blue: #8aadf4; + fg-col: #cad3f5; + fg-col2: #ed8796; + grey: #6e738d; + + width: 600; + font: "JetBrainsMono Nerd Font 14"; +} + +element-text, element-icon , mode-switcher { + background-color: inherit; + text-color: inherit; +} + +window { + height: 360px; + border: 3px; + border-color: @border-col; + background-color: @bg-col; +} + +mainbox { + background-color: @bg-col; +} + +inputbar { + children: [prompt,entry]; + background-color: @bg-col; + border-radius: 5px; + padding: 2px; +} + +prompt { + background-color: @blue; + padding: 6px; + text-color: @bg-col; + border-radius: 3px; + margin: 20px 0px 0px 20px; +} + +textbox-prompt-colon { + expand: false; + str: ":"; +} + +entry { + padding: 6px; + margin: 20px 0px 0px 10px; + text-color: @fg-col; + background-color: @bg-col; +} + +listview { + border: 0px 0px 0px; + padding: 6px 0px 0px; + margin: 10px 0px 0px 20px; + columns: 2; + lines: 5; + background-color: @bg-col; +} + +element { + padding: 5px; + background-color: @bg-col; + text-color: @fg-col ; +} + +element-icon { + size: 25px; +} + +element selected { + background-color: @selected-col ; + text-color: @fg-col2 ; +} + +mode-switcher { + spacing: 0; + } + +button { + padding: 10px; + background-color: @bg-col-light; + text-color: @grey; + vertical-align: 0.5; + horizontal-align: 0.5; +} + +button selected { + background-color: @bg-col; + text-color: @blue; +} + +message { + background-color: @bg-col-light; + margin: 2px; + padding: 2px; + border-radius: 5px; +} + +textbox { + padding: 6px; + margin: 20px 0px 0px 20px; + text-color: @blue; + background-color: @bg-col-light; +} diff --git a/rofi/.local/share/rofi/themes/catppuccin-mocha.rasi b/rofi/.local/share/rofi/themes/catppuccin-mocha.rasi new file mode 100644 index 0000000..38c0b80 --- /dev/null +++ b/rofi/.local/share/rofi/themes/catppuccin-mocha.rasi @@ -0,0 +1,111 @@ +* { + bg-col: #1e1e2e; + bg-col-light: #1e1e2e; + border-col: #1e1e2e; + selected-col: #1e1e2e; + blue: #89b4fa; + fg-col: #cdd6f4; + fg-col2: #f38ba8; + grey: #6c7086; + + width: 600; + font: "JetBrainsMono Nerd Font 14"; +} + +element-text, element-icon , mode-switcher { + background-color: inherit; + text-color: inherit; +} + +window { + height: 360px; + border: 3px; + border-color: @border-col; + background-color: @bg-col; +} + +mainbox { + background-color: @bg-col; +} + +inputbar { + children: [prompt,entry]; + background-color: @bg-col; + border-radius: 5px; + padding: 2px; +} + +prompt { + background-color: @blue; + padding: 6px; + text-color: @bg-col; + border-radius: 3px; + margin: 20px 0px 0px 20px; +} + +textbox-prompt-colon { + expand: false; + str: ":"; +} + +entry { + padding: 6px; + margin: 20px 0px 0px 10px; + text-color: @fg-col; + background-color: @bg-col; +} + +listview { + border: 0px 0px 0px; + padding: 6px 0px 0px; + margin: 10px 0px 0px 20px; + columns: 2; + lines: 5; + background-color: @bg-col; +} + +element { + padding: 5px; + background-color: @bg-col; + text-color: @fg-col ; +} + +element-icon { + size: 25px; +} + +element selected { + background-color: @selected-col ; + text-color: @fg-col2 ; +} + +mode-switcher { + spacing: 0; + } + +button { + padding: 10px; + background-color: @bg-col-light; + text-color: @grey; + vertical-align: 0.5; + horizontal-align: 0.5; +} + +button selected { + background-color: @bg-col; + text-color: @blue; +} + +message { + background-color: @bg-col-light; + margin: 2px; + padding: 2px; + border-radius: 5px; +} + +textbox { + padding: 6px; + margin: 20px 0px 0px 20px; + text-color: @blue; + background-color: @bg-col-light; +} diff --git a/zsh/.zsh_plugins.zsh b/zsh/.zsh_plugins.zsh new file mode 100644 index 0000000..a157619 --- /dev/null +++ b/zsh/.zsh_plugins.zsh @@ -0,0 +1,34 @@ +fpath+=( /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-romkatv-SLASH-powerlevel10k ) +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-romkatv-SLASH-powerlevel10k/powerlevel10k.zsh-theme +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-romkatv-SLASH-powerlevel10k/powerlevel9k.zsh-theme +fpath+=( /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-rupa-SLASH-z ) +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-rupa-SLASH-z/z.sh +fpath+=( /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib ) +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib/bzr.zsh +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib/clipboard.zsh +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib/cli.zsh +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib/compfix.zsh +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib/completion.zsh +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib/correction.zsh +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib/diagnostics.zsh +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib/directories.zsh +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib/functions.zsh +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib/git.zsh +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib/grep.zsh +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib/history.zsh +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib/key-bindings.zsh +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib/misc.zsh +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib/nvm.zsh +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib/prompt_info_functions.zsh +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib/spectrum.zsh +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib/termsupport.zsh +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib/theme-and-appearance.zsh +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/lib/vcs_info.zsh +fpath+=( /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/plugins/extract ) +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/plugins/extract/extract.plugin.zsh +fpath+=( /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-syntax-highlighting ) +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh +fpath+=( /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-autosuggestions ) +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-autosuggestions/zsh-autosuggestions.plugin.zsh +fpath+=( /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-history-substring-search ) +source /home/mike/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-history-substring-search/zsh-history-substring-search.plugin.zsh