diff options
| author | Nantha Sorubakanthan <nantha@mielota.com> | 2026-06-07 12:38:05 +0200 |
|---|---|---|
| committer | Nantha Sorubakanthan <nantha@mielota.com> | 2026-06-07 12:38:05 +0200 |
| commit | 0f0e252fc0fe134c202536935ea30af3d220d828 (patch) | |
| tree | e1dc02249c0f3e601b979d4f76928004081eaa1a /nixos/config | |
| parent | f4977db08909fcc78c7a5c7cedaa17668ab3e0f0 (diff) | |
add wallpaper and rofi
Diffstat (limited to 'nixos/config')
| -rw-r--r-- | nixos/config/hypr/hyprland.lua | 10 | ||||
| -rw-r--r-- | nixos/config/rofi/config.rasi | 27 | ||||
| -rw-r--r-- | nixos/config/rofi/tokyonight.rasi | 158 | ||||
| -rw-r--r-- | nixos/config/waybar/config.jsonc | 2 |
4 files changed, 191 insertions, 6 deletions
diff --git a/nixos/config/hypr/hyprland.lua b/nixos/config/hypr/hyprland.lua index 1c27d75..0472b3b 100644 --- a/nixos/config/hypr/hyprland.lua +++ b/nixos/config/hypr/hyprland.lua @@ -19,12 +19,12 @@ end local terminal = "alacritty" local browser = "firefox" -local menu = "exec $(tofi-drun -c ~/.config/tofi.ini)" +local menu = "rofi -show drun" hl.on("hyprland.start", function() hl.exec_cmd("dunst") hl.exec_cmd("waybar") - hl.exec_cmd("sh ~/.local/bin/unlock-pipewire.sh") + hl.exec_cmd("sh ~/.local/bin/unblock-pipewire.sh") hl.exec_cmd("gsettings set org.gnome.desktop.interface gtk-theme \"Adwaita-dark\"") hl.exec_cmd("gsettings set org.gnome.desktop.interface color-scheme \"prefer-dark\"") end) @@ -36,8 +36,8 @@ hl.env("XDG_SESSION_DESKTOP", "Hyprland") hl.config({ general = { - gaps_in = 7, - gaps_out = 7, + gaps_in = 6, + gaps_out = 12, border_size = 2, col = { active_border = "rgba(122, 162, 247, 1)", @@ -54,7 +54,7 @@ hl.config({ active_opacity = 1.0, inactive_opacity = 1.0, shadow = { enabled = false, }, - blur = { enabled = false, }, + blur = { enabled = true, }, }, animations = { enabled = true, }, diff --git a/nixos/config/rofi/config.rasi b/nixos/config/rofi/config.rasi new file mode 100644 index 0000000..03a46e6 --- /dev/null +++ b/nixos/config/rofi/config.rasi @@ -0,0 +1,27 @@ +@theme "tokyonight.rasi" + +configuration { + modes: "window,drun,run,ssh"; + font: "monospace 18"; + show-icons: true; + terminal: "alacritty"; + ssh-client: "ssh"; + disable-history: true; + sort: true; + sorting-method: "normal"; + case-sensitive: false; + case-smart: false; + cycle: true; + sidebar-mode: false; + hover-select: true; + + timeout { + action: "kb-cancel"; + delay: 0; + } + + filebrowser { + directories-first: true; + sorting-method: "name"; + } +} diff --git a/nixos/config/rofi/tokyonight.rasi b/nixos/config/rofi/tokyonight.rasi new file mode 100644 index 0000000..2f322fc --- /dev/null +++ b/nixos/config/rofi/tokyonight.rasi @@ -0,0 +1,158 @@ +/******************************************************************************* + * ROFI Color theme + * User: Lairizzle + * Copyright: Lairizzle + * GitHub: https://github.com/Lairizzle/rofi-tokyonight + ********************************************************************************/ + +* { + selected-normal-foreground: rgba(125, 207, 255, 1); /* blue highlight */ + foreground: rgba(224, 234, 252, 1); /* bright */ + normal-foreground: @foreground; + alternate-normal-background: rgba(36, 40, 59, 1); /* #24283b */ + red: rgba(247, 118, 142, 1); /* #f7768e */ + selected-urgent-foreground: rgba(125, 207, 255, 1); /* bright blue */ + blue: rgba(125, 207, 255, 1); /* #7dcfff */ + urgent-foreground: rgba(247, 118, 142, 1); /* #f7768e */ + alternate-urgent-background: rgba(36, 40, 59, 1); /* #24283b */ + active-foreground: rgba(125, 207, 255, 1); /* blue */ + lightbg: rgba(217, 222, 239, 1); + selected-active-foreground: rgba(125, 207, 255, 1); + alternate-active-background: rgba(36, 40, 59, 1); + background: rgba(26, 27, 38, 0.93); /* #1a1b26 */ + bordercolor: rgba(125, 207, 255, 1); /* #7dcfff */ + alternate-normal-foreground: @foreground; + normal-background: rgba(36, 40, 59, 0.06); + lightfg: rgba(200, 210, 255, 1); /* bright dim text */ + selected-normal-background: rgba(65, 72, 104, 1); /* #414868 */ + border-color: @bordercolor; + spacing: 2; + separatorcolor: rgba(65, 72, 104, 1); + urgent-background: rgba(26, 27, 38, 1); /* #1a1b26 */ + selected-urgent-background: rgba(247, 118, 142, 1); + alternate-urgent-foreground: @urgent-foreground; + background-color: rgba(0, 0, 0, 0); + alternate-active-foreground: @active-foreground; + active-background: rgba(26, 27, 38, 1); + selected-active-background: rgba(65, 72, 104, 1); /* #414868 */ +} + +window { + background-color: @background; + border: 2; + border-radius: 8px; + padding: 5; + width: 50%; + height: 50%; +} +mainbox { + border: 0; + padding: 0; +} +message { + border: 2px 0px 0px ; + border-color: @separatorcolor; + padding: 1px ; +} +textbox { + text-color: @foreground; +} +listview { + fixed-height: 0; + border: 2px 0px 0px ; + border-color: @separatorcolor; + spacing: 2px ; + scrollbar: true; + padding: 2px 0px 0px ; +} +element { + border: 0; + padding: 1px ; +} +element-text { + background-color: inherit; + text-color: inherit; +} +element.normal.normal { + background-color: @normal-background; + text-color: @normal-foreground; +} +element.normal.urgent { + background-color: @urgent-background; + text-color: @urgent-foreground; +} +element.normal.active { + background-color: @active-background; + text-color: @active-foreground; +} +element.selected.normal { + background-color: @selected-normal-background; + text-color: @selected-normal-foreground; +} +element.selected.urgent { + background-color: @selected-urgent-background; + text-color: @selected-urgent-foreground; +} +element.selected.active { + background-color: @selected-active-background; + text-color: @selected-active-foreground; +} +element.alternate.normal { + background-color: @alternate-normal-background; + text-color: @alternate-normal-foreground; +} +element.alternate.urgent { + background-color: @alternate-urgent-background; + text-color: @alternate-urgent-foreground; +} +element.alternate.active { + background-color: @alternate-active-background; + text-color: @alternate-active-foreground; +} +scrollbar { + width: 4px ; + border: 0; + handle-width: 8px ; + padding: 0; +} +mode-switcher { + border: 2px 0px 0px ; + border-color: @separatorcolor; +} +button.selected { + background-color: @selected-normal-background; + text-color: @selected-normal-foreground; +} +inputbar { + spacing: 0; + text-color: @normal-foreground; + padding: 1px ; +} +case-indicator { + spacing: 0; + text-color: @normal-foreground; +} +entry { + spacing: 0; + text-color: @normal-foreground; +} +prompt { + spacing: 0; + text-color: @normal-foreground; +} +inputbar { + children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; +} +textbox-prompt-colon { + expand: false; + str: ":"; + margin: 0px 0.3em 0em 0em ; + text-color: @normal-foreground; +} +scrollbar { + width: 4px; + border: 0; + handle-width: 8px; + padding: 0; + handle-color: rgba(125, 207, 255, 0.8); /* bright blue scrollbar handle */ +} diff --git a/nixos/config/waybar/config.jsonc b/nixos/config/waybar/config.jsonc index 7b8e46c..90c8ca9 100644 --- a/nixos/config/waybar/config.jsonc +++ b/nixos/config/waybar/config.jsonc @@ -25,7 +25,7 @@ "hyprland/workspaces": { "format": "{name}", "persistent-workspaces": { - "*" : 9 + "*" : 10 } }, |
