From 879f308cc29051c859de64ae62f1349631d4308b Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sun, 12 Jan 2025 23:03:06 -0500 Subject: [PATCH] Fix xinitrc and update rofi/dunst --- config/dunst/dunstrc | 10 +- config/rofi/aditya_style.rasi | 305 ++++++++++++++++++++++++++++++++++ config/rofi/config.rasi | 2 +- config/rofi/dark.rasi | 40 +---- config/rofi/light.rasi | 40 +---- home/.xinitrc | 2 +- 6 files changed, 324 insertions(+), 75 deletions(-) create mode 100644 config/rofi/aditya_style.rasi diff --git a/config/dunst/dunstrc b/config/dunst/dunstrc index dbb5cee..c23a419 100644 --- a/config/dunst/dunstrc +++ b/config/dunst/dunstrc @@ -1,6 +1,6 @@ [global] - frame_width = 2 - frame_color = "#888694" + frame_width = 0 + frame_color = "#353535" font = FiraCode Nerd Font 11 @@ -80,7 +80,7 @@ # The transparency of the window. Range: [0; 100]. # This option will only work if a compositing windowmanager is # present (e.g. xcompmgr, compiz, etc.). - transparency =25 + transparency =0 # Don't remove messages, if the user is idle (no mouse or keyboard input) # for longer than idle_threshold seconds. @@ -189,8 +189,8 @@ timeout = 5 [urgency_normal] - background = "#BBBBBB" - foreground = "#191919" + background = "#353535" + foreground = "#BBBBBB" timeout = 5 [urgency_critical] diff --git a/config/rofi/aditya_style.rasi b/config/rofi/aditya_style.rasi new file mode 100644 index 0000000..0b5cd13 --- /dev/null +++ b/config/rofi/aditya_style.rasi @@ -0,0 +1,305 @@ +/** + * + * Author : Aditya Shakya (adi1090x) + * Github : @adi1090x + * + * Rofi Theme File + * Rofi Version: 1.7.3 + **/ + +/*****----- Configuration -----*****/ +configuration { + modi: "drun,run"; + show-icons: false; + display-drun: ""; + display-run: ""; + display-filebrowser: ""; + display-window: ""; + drun-display-format: "{name}"; + window-format: "{w} · {c} · {t}"; +} + +/*****----- Global Properties -----*****/ + +* { + border-colour: var(selected); + handle-colour: var(foreground); + 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: 400px; + x-offset: 0px; + y-offset: 0px; + + /* properties for all widgets */ + enabled: true; + margin: 0px; + padding: 0px; + border: 0px solid; + border-radius: 8px; + 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: 30px; + 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", "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: 1; + lines: 6; + 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: @border-colour; + background-color: transparent; + text-color: @foreground-colour; + cursor: "default"; +} +scrollbar { + handle-width: 5px ; + handle-color: @handle-colour; + border-radius: 8px; + background-color: @alternate-background; +} + +/*****----- Elements -----*****/ +element { + enabled: true; + spacing: 8px; + margin: 0px; + padding: 8px; + border: 0px solid; + border-radius: 4px; + 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(normal-foreground); + text-color: var(normal-background); +} +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: 8px; + border: 0px solid; + border-radius: 4px; + border-color: @border-colour; + background-color: @alternate-background; + text-color: inherit; + cursor: pointer; +} +button selected { + background-color: var(normal-foreground); + text-color: var(normal-background); +} + +/*****----- 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: 8px; + border: 0px solid; + border-radius: 4px; + 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: 0px solid; + border-radius: 4px; + border-color: @border-colour; + background-color: @background-colour; + text-color: @foreground-colour; +} diff --git a/config/rofi/config.rasi b/config/rofi/config.rasi index 80b72ba..0461708 100644 --- a/config/rofi/config.rasi +++ b/config/rofi/config.rasi @@ -1,2 +1,2 @@ -@import "gruvbox-common.rasinc.rasi" @import "dark.rasi" +@import "aditya_style.rasi" diff --git a/config/rofi/dark.rasi b/config/rofi/dark.rasi index 25f3447..98c0c07 100644 --- a/config/rofi/dark.rasi +++ b/config/rofi/dark.rasi @@ -1,36 +1,8 @@ -@import "gruvbox-common.rasinc.rasi" * { - /* Theme settings */ - highlight: bold italic; - scrollbar: false; - - /* Theme colors */ - background: #191919; - background-color: @background; - foreground: #8e8e82; - border-color: #61676B; - separatorcolor: @border-color; - scrollbar-handle: @border-color; - - normal-background: @background; - normal-foreground: @foreground; - alternate-normal-background: @background; - alternate-normal-foreground: @foreground; - selected-normal-background: #3d3839; - selected-normal-foreground: #BBBBBB; - - active-background: #B77E64; - active-foreground: @background; - alternate-active-background: @active-background; - alternate-active-foreground: @active-foreground; - selected-active-background: #D68C67; - selected-active-foreground: @active-foreground; - - urgent-background: #DE6E7C; - urgent-foreground: @background; - alternate-urgent-background: @urgent-background; - alternate-urgent-foreground: @urgent-foreground; - selected-urgent-background: #E8838F; - selected-urgent-foreground: @urgent-foreground; + background: #353535FF; + background-alt: #8e8e8eFF; + foreground: #BBBBBBFF; + selected: #83A598FF; + active: #B8BB26FF; + urgent: #FB4934FF; } - diff --git a/config/rofi/light.rasi b/config/rofi/light.rasi index b8ef7f7..36c65e2 100644 --- a/config/rofi/light.rasi +++ b/config/rofi/light.rasi @@ -1,36 +1,8 @@ -@import "gruvbox-common.rasinc.rasi" * { - /* Theme settings */ - highlight: bold italic; - scrollbar: false; - - /* Theme colors */ - background: #8e8e82; - background-color: @background; - foreground: #191919; - border-color: #61676B; - separatorcolor: @border-color; - scrollbar-handle: @border-color; - - normal-background: @background; - normal-foreground: @foreground; - alternate-normal-background: @background; - alternate-normal-foreground: @foreground; - selected-normal-background: #BBBBBB; - selected-normal-foreground: #3d3839; - - active-background: #B77E64; - selected-active-background: #D68C67; - active-foreground: @background; - alternate-active-background: @active-background; - alternate-active-foreground: @active-foreground; - selected-active-foreground: @active-foreground; - - urgent-background: #DE6E7C; - urgent-foreground: @background; - alternate-urgent-background: @urgent-background; - alternate-urgent-foreground: @urgent-foreground; - selected-urgent-background: #E8838F; - selected-urgent-foreground: @urgent-foreground; + background: #BBBBBBFF; + background-alt: #8e8e8eFF; + foreground: #191919FF; + selected: #83A598FF; + active: #B8BB26FF; + urgent: #FB4934FF; } - diff --git a/home/.xinitrc b/home/.xinitrc index ce0e0a6..67cc62f 100644 --- a/home/.xinitrc +++ b/home/.xinitrc @@ -58,5 +58,5 @@ exec picom -b & exec wallpaper_randomizer.sh & exec dwmblocks & wmname LG3D & -exec dbus-launch --sh-syntax --exit-with-session "pipewire &; dwm" +exec dbus-launch --sh-syntax --exit-with-session "dwm"