Update: Added rofi configs, dunst config and icons.

This commit is contained in:
Keyitdev
2025-07-31 11:15:25 +02:00
parent beb1d80f7b
commit 764e3915a3
21 changed files with 703 additions and 52 deletions
+28 -32
View File
@@ -1,10 +1,24 @@
[urgency_low]
background = "#1b1b25"
foreground = "#dedede"
timeout = 5
[urgency_normal]
background = "#1b1b25"
foreground = "#dedede"
timeout = 5
[urgency_critical]
background = "#1b1b25"
foreground = "#dedede"
frame_color = "#f07178"
timeout = 0
default_icon = dialog-warning
[global]
monitor = 0
follow = none
width = 300
width = (300,500)
height = (0, 300)
origin = top-right
offset = (10, 50)
offset = (8, 47)
scale = 0
notification_limit = 20
progress_bar = true
@@ -19,15 +33,16 @@
indicate_hidden = yes
transparency = 0
separator_height = 2
padding = 8
horizontal_padding = 8
padding = 12
horizontal_padding = 12
text_icon_padding = 0
frame_width = 3
frame_color = "#aaaaaa"
frame_width = 2
frame_color = "#343746"
gap_size = 0
separator_color = frame
sort = yes
font = Monospace 8
idle_threshold = 120
font = Roboto mono 12
line_height = 0
markup = full
format = "<b>%s</b>\n%b"
@@ -42,17 +57,18 @@
enable_recursive_icon_lookup = true
icon_theme = Adwaita
icon_position = left
min_icon_size = 32
max_icon_size = 128
min_icon_size = 48
max_icon_size = 256
icon_path = /usr/share/icons/Papirus/16x16/
# icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
sticky_history = yes
history_length = 20
sticky_history = no
history_length = 50
dmenu = /usr/bin/dmenu -p dunst:
browser = /usr/bin/xdg-open
always_run_script = true
title = Dunst
class = Dunst
corner_radius = 0
corner_radius = 20
corners = all
ignore_dbusclose = false
force_xwayland = false
@@ -62,23 +78,3 @@
mouse_right_click = close_all
[experimental]
per_monitor_dpi = false
[urgency_low]
background = "#222222"
foreground = "#888888"
timeout = 10
default_icon = dialog-information
[urgency_normal]
background = "#285577"
foreground = "#ffffff"
timeout = 10
override_pause_level = 30
default_icon = dialog-information
[urgency_critical]
background = "#900000"
foreground = "#ffffff"
frame_color = "#ff0000"
timeout = 0
override_pause_level = 60
default_icon = dialog-warning
+3 -2
View File
@@ -39,8 +39,9 @@ bindsym $mod+Return exec i3-sensible-terminal
# kill focused window
bindsym $mod+Shift+q kill
bindsym $mod+a exec --no-startup-id rofi -show drun -no-default-config -config ~/.config/rofi/1.rasi
bindsym $mod+d exec --no-startup-id rofi -show drun -no-default-config -config ~/.config/rofi/2.rasi
bindsym $mod+a exec --no-startup-id rofi -show drun -no-default-config -config ~/.config/rofi/dmenu.rasi
bindsym $mod+s exec --no-startup-id code
bindsym $mod+d exec --no-startup-id rofi -show drun -no-default-config -config ~/.config/rofi/main.rasi
bindsym $mod+w exec --no-startup-id nemo ~/Pictures/screenshots/
bindsym $mod+e exec --no-startup-id nemo
+10
View File
@@ -0,0 +1,10 @@
/* colors */
* {
al: #00000000;
bg: #1b1b25;
se: #282a36;
fg: #dedede;
ac: #16161e;
br: #343746;
}
+287
View File
@@ -0,0 +1,287 @@
@import "colors.rasi" configuration {
font: "Roboto mono 11";
show-icons: true;
icon-theme: "Papirus";
display-drun: "";
display-window: "";
drun-display-format: "{name}";
disable-history: false;
sidebar-mode: false;
}
* {
border-colour: var(br);
handle-colour: var(fg);
background-colour: var(bg);
foreground-colour: var(fg);
alternate-background: var(al);
normal-background: var(bg);
normal-foreground: var(fg);
urgent-background: var(bg);
urgent-foreground: var(bg);
active-background: var(ac);
active-foreground: var(bg);
selected-normal-background: var(se);
selected-normal-foreground: var(fg);
selected-urgent-background: var(ac);
selected-urgent-foreground: var(fg);
selected-active-background: var(bg);
selected-active-foreground: var(fg);
alternate-normal-background: var(bg);
alternate-normal-foreground: var(fg);
alternate-urgent-background: var(bg);
alternate-urgent-foreground: var(fg);
alternate-active-background: var(ac);
alternate-active-foreground: var(fg);
}
window {
transparency: "real";
location: north;
anchor: north;
fullscreen: false;
width: 100%;
x-offset: 0px;
y-offset: 0px;
children: [ horibox];
enabled: true;
margin: 0px;
padding: 0px;
border: 0px 0px 3px 0px solid;
border-radius: 0px;
border-color: @border-colour;
cursor: "default";
}
horibox {
spacing: 0px;
background-color: @background-colour;
text-color: @foreground-colour;
orientation: horizontal;
children: [ "prompt", "textbox-prompt-colon", "entry", "listview"];
}
mainbox {
enabled: true;
spacing: 20px;
margin: 0px;
padding: 4px;
border: 0px solid;
border-radius: 0px 0px 0px 0px;
border-color: @border-colour;
background-color: transparent;
children: [ "inputbar", "message", "listview", "mode-switcher"];
}
inputbar {
enabled: true;
spacing: 10px;
margin: 0px;
padding: 8px;
border: 0px solid;
border-radius: 4px;
border-color: @border-colour;
background-color: @alternate-background;
text-color: @foreground-colour;
children: [ "prompt", "entry"];
}
prompt {
enabled: true;
padding: 12px 0px 10px 15px;
background-color: inherit;
text-color: inherit;
}
textbox-prompt-colon {
enabled: true;
padding: 10px 0px 10px 0px;
expand: false;
str: "";
background-color: inherit;
text-color: inherit;
}
entry {
enabled: true;
padding: 10px;
expand: false;
width: 12em;
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 {
enabled: true;
columns: 1;
lines: 100;
cycle: true;
dynamic: true;
scrollbar: false;
layout: horizontal;
reverse: false;
fixed-height: true;
fixed-columns: true;
spacing: 10px;
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;
}
element {
enabled: true;
spacing: 8px;
margin: 0px;
padding: 10px 8px;
border: 0px solid;
border-radius: 0px;
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;
}
mode-switcher {
enabled: true;
spacing: 10px;
margin: 0px;
padding: 0px;
border: 0px solid;
border-radius: 4px;
border-color: @border-colour;
background-color: @alternate-background;
text-color: @foreground-colour;
}
button {
padding: 8px;
border: 0px solid;
border-radius: 4px;
border-color: @border-colour;
background-color: transparent;
text-color: inherit;
cursor: pointer;
}
button selected {
background-color: var(normal-foreground);
text-color: var(normal-background);
}
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: 0px;
border-color: @border-colour;
background-color: @alternate-background;
text-color: @foreground-colour;
vertical-align: 0.5;
horizontal-align: 0;
highlight: none;
placeholder-color: @foreground-colour;
blink: true;
markup: true;
}
error-message {
padding: 0px;
border: 0px solid;
border-radius: 0px;
border-color: @border-colour;
background-color: @background-colour;
text-color: @foreground-colour;
}
+120
View File
@@ -0,0 +1,120 @@
/*
* Documentation: https://github.com/davatorium/rofi/wiki
* Config created by Aditya Shakya https://github.com/adi1090x
* Config modified by Keyitdev https://www.github.com/keyitdev/dotfiles
* Copyright (C) 2022 Keyitdev, Aditya Shakya
*/
@import "colors.rasi"
configuration {
font: "Roboto mono 11";
show-icons: true;
icon-theme: "Papirus";
display-drun: "";
display-window: "";
drun-display-format: "{name}";
disable-history: false;
sidebar-mode: false;
}
window {
transparency: "real";
background-color: @bg;
text-color: @fg;
border: 2px;
border-color: @br;
border-radius: 20px;
height: 45.3%;
width: 40%;
location: center;
x-offset: 0;
y-offset: 0;
}
prompt {
enabled: true;
padding: 1.6% 0% 1.5% 1.2%;
background-color: @al;
text-color: @fg;
font: "Iosevka Nerd Font 12";
}
entry {
background-color: @al;
text-color: @fg;
placeholder-color: @fg;
expand: true;
horizontal-align: 0;
placeholder: "Search";
padding: 1.5% 1.5% 1.5% 1.2%;
blink: true;
}
inputbar {
children: [ prompt, entry];
background-color: @ac;
text-color: @bg;
expand: false;
border: 0% 0% 0% 0%;
border-radius: 0px;
border-color: @ac;
margin: 0% 0% 0% 0%;
}
listview {
background-color: @al;
padding: 0px;
columns: 2;
lines: 5;
spacing: 0%;
cycle: false;
dynamic: true;
layout: vertical;
}
mainbox {
background-color: @al;
border: 0% 0% 0% 0%;
border-radius: 0% 0% 0% 0%;
border-color: @ac;
children: [ inputbar, listview];
spacing: 0%;
padding: 0%;
}
element {
background-color: @al;
text-color: @fg;
orientation: horizontal;
border-radius: 0%;
padding: 1% 0.5% 1% 0.5%;
}
element-icon {
background-color: inherit;
text-color: inherit;
horizontal-align: 0.5;
vertical-align: 0.5;
size: 28px;
border: 0px;
padding: 0 10px 0 10px;
}
element-text {
background-color: @al;
text-color: inherit;
expand: true;
horizontal-align: 0;
vertical-align: 0.5;
margin: 0% 0.25% 0% 0.25%;
}
element selected {
background-color: @se;
text-color: @fg;
border: 0% 0% 0% 0%;
border-radius: 0px;
border-color: @bg;
}
+121
View File
@@ -0,0 +1,121 @@
/*
* Documentation: https://github.com/davatorium/rofi/wiki
* Config created by Aditya Shakya https://github.com/adi1090x
* Config modified by Keyitdev https://www.github.com/keyitdev/dotfiles
* Copyright (C) 2022 Keyitdev, Aditya Shakya
*/
@import "colors.rasi"
configuration {
font: "Roboto mono 11";
show-icons: false;
icon-theme: "Papirus";
display-drun: "";
display-window: "";
drun-display-format: "{name}";
disable-history: false;
sidebar-mode: false;
}
window {
transparency: "real";
background-color: @bg;
text-color: @fg;
border: 2px;
border-color: @br;
border-radius: 20px;
height: 36.54%;
width: 25%;
location: center;
x-offset: 0;
y-offset: 0;
}
prompt {
enabled: true;
//padding: 1.6% 0% 1.5% 1%;
padding: 1.7% 0% 1.5% 1%;
background-color: @al;
text-color: @fg;
font: "Iosevka Nerd Font 12";
}
entry {
background-color: @al;
text-color: @fg;
placeholder-color: @fg;
expand: true;
horizontal-align: 0;
placeholder: "Search";
padding: 1.5% 1.5% 1.5% 0.8%;
blink: true;
}
inputbar {
children: [ prompt, entry];
background-color: @ac;
text-color: @bg;
expand: false;
border: 0% 0% 0% 0%;
border-radius: 0px;
border-color: @ac;
margin: 0% 0% 0% 0%;
}
listview {
background-color: @al;
padding: 0px;
columns: 1;
lines: 5;
spacing: 0%;
cycle: false;
dynamic: true;
layout: vertical;
}
mainbox {
background-color: @al;
border: 0% 0% 0% 0%;
border-radius: 0% 0% 0% 0%;
border-color: @ac;
children: [ inputbar, listview];
spacing: 0%;
padding: 0%;
}
element {
background-color: @al;
text-color: @fg;
orientation: horizontal;
border-radius: 0%;
padding: 14px;
}
element-icon {
background-color: inherit;
text-color: inherit;
horizontal-align: 0.5;
vertical-align: 0.5;
size: 28px;
border: 0px;
padding: 0 10px 0 10px;
}
element-text {
background-color: @al;
text-color: inherit;
expand: true;
horizontal-align: 0;
vertical-align: 0.5;
margin: 0% 0.25% 0% 0.25%;
}
element selected {
background-color: @se;
text-color: @fg;
border: 0% 0% 0% 0%;
border-radius: 0px;
border-color: @bg;
}
+53
View File
@@ -0,0 +1,53 @@
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run the `open default settings` command
// from the command palette or from `Zed` application menu.
{
"agent": {
"default_model": {
"provider": "copilot_chat",
"model": "gpt-4o"
},
},
"features": {
"edit_prediction_provider": "none"
},
"theme": {
"mode": "dark",
"dark": "One Dark Pro",
"light": "One Light"
},
"ui_font_size": 18,
"ui_font_family": "Open Sans",
"buffer_font_size": 18.0,
"buffer_font_family": "Roboto Mono",
"buffer_font_weight": 400,
"vim_mode": false,
"preferred_line_length": 80,
"tab_size": 4,
"soft_wrap": "none",
"format_on_save": "off",
"confirm_quit": true,
"tabs": {
"git_status": true
},
"toolbar": {
"quick_actions": false
},
"git": {
"inline_blame": {
"enabled": false,
"delay_ms": 500
}
},
"telemetry": {
"diagnostics": false,
"metrics": false
}
}
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 24 24" fill="none" stroke="#f07178" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="feather feather-battery"><rect x="1" y="6" width="18" height="12" rx="2" ry="2"></rect><line x1="23" y1="13" x2="23" y2="11"></line></svg>

After

Width:  |  Height:  |  Size: 321 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 24 24" fill="none" stroke="#f07178" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="feather feather-mic-off"><line x1="1" y1="1" x2="23" y2="23"></line><path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"></path><path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line></svg>

After

Width:  |  Height:  |  Size: 489 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 24 24" fill="none" stroke="#c3e88d" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="feather feather-mic"><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line></svg>

After

Width:  |  Height:  |  Size: 413 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 24 24" fill="none" stroke="#ffcb6b" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>

After

Width:  |  Height:  |  Size: 276 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 24 24" fill="none" stroke="#ffcb6b" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>

After

Width:  |  Height:  |  Size: 645 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 24 24" fill="none" stroke="#82aaff" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="feather feather-volume-1"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path></svg>

After

Width:  |  Height:  |  Size: 323 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 24 24" fill="none" stroke="#82aaff" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="feather feather-volume-2"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path></svg>

After

Width:  |  Height:  |  Size: 354 B

+48
View File
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="56"
height="56"
viewBox="0 0 24 24"
fill="none"
stroke="#82aaff"
stroke-width="1"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-volume-2"
version="1.1"
id="svg1"
sodipodi:docname="volume-3.svg"
inkscape:version="1.4.2 (ebf0e940d0, 2025-05-08)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="14.196429"
inkscape:cx="25.745912"
inkscape:cy="28.563522"
inkscape:window-width="1904"
inkscape:window-height="1025"
inkscape:window-x="8"
inkscape:window-y="47"
inkscape:window-maximized="1"
inkscape:current-layer="svg1" />
<polygon
points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"
id="polygon1"
style="stroke-width:0.99985714;stroke-dasharray:none;stroke:#f07178;stroke-opacity:1" />
<path
d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"
id="path1"
style="opacity:1;stroke:#f07178;stroke-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 24 24" fill="none" stroke="#f07178" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="feather feather-volume-x"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><line x1="23" y1="9" x2="17" y2="15"></line><line x1="17" y1="9" x2="23" y2="15"></line></svg>

After

Width:  |  Height:  |  Size: 365 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 24 24" fill="none" stroke="#82aaff" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="feather feather-volume"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon></svg>

After

Width:  |  Height:  |  Size: 275 B

+15 -15
View File
@@ -1,16 +1,16 @@
#!/bin/sh
# rofi theme
theme="$HOME/.config/rofi/1.rasi"
theme="$HOME/.config/rofi/main_without_icons.rasi"
get_options() {
echo " Poweroff"
echo " Reboot"
echo " Reboot to Windows"
echo " Hibernate"
echo " Lock"
echo " Suspend"
echo " Log out"
echo " Poweroff"
echo " Reboot"
echo " Reboot to Windows"
echo " Hibernate"
echo " Lock"
echo " Suspend"
echo " Log out"
}
main() {
@@ -21,25 +21,25 @@ main() {
# run the selected command
case $choice in
' Poweroff')
' Poweroff')
systemctl poweroff
;;
' Reboot')
' Reboot')
systemctl reboot
;;
' Reboot to Windows')
' Reboot to Windows')
pkexec grub-reboot 3 && systemctl reboot
;;
' Hibernate')
' Hibernate')
systemctl hibernate
;;
' Lock')
' Lock')
lock
;;
' Suspend')
' Suspend')
systemctl suspend
;;
' Log out')
' Log out')
i3-msg exit
;;
+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/sh
# rofi theme
theme="$HOME/.config/rofi/1.rasi"
theme="$HOME/.config/rofi/main_without_icons.rasi"
get_options() {
echo " Selected area screenshot"
+4 -1
View File
@@ -3,6 +3,7 @@
dir_icons="/usr/local/bin/icons"
vol_quiet=33
vol_loud=66
vol_very_loud=101
cur_vol_left=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -o '[0-9]\+%' | sed -n '1p'| sed 's/%//g')
cur_vol_right=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -o '[0-9]\+%' | sed -n '2p' | sed 's/%//g')
@@ -12,6 +13,8 @@ if [ "$cur_vol_average" -le "$vol_quiet" ]; then
dunstify "Speakers" "Volume: $cur_vol_average%" -r 100 -i "$dir_icons"/volume.svg
elif [ "$cur_vol_average" -gt "$vol_quiet" ] && [ "$cur_vol_average" -le "$vol_loud" ]; then
dunstify "Speakers" "Volume: $cur_vol_average%" -r 100 -i "$dir_icons"/volume-1.svg
elif [ "$cur_vol_average" -gt "$vol_loud" ]; then
elif [ "$cur_vol_average" -gt "$vol_loud" ] && [ "$cur_vol_average" -le "$vol_very_loud" ]; then
dunstify "Speakers" "Volume: $cur_vol_average%" -r 100 -i "$dir_icons"/volume-2.svg
elif [ "$cur_vol_average" -gt "$vol_very_loud" ]; then
dunstify "Speakers" "Volume: $cur_vol_average%" -r 100 -i "$dir_icons"/volume-3.svg
fi
+4 -1
View File
@@ -3,6 +3,7 @@
dir_icons="/usr/local/bin/icons"
vol_quiet=33
vol_loud=66
vol_very_loud=101
cur_vol_left=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -o '[0-9]\+%' | sed -n '1p'| sed 's/%//g')
cur_vol_right=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -o '[0-9]\+%' | sed -n '2p' | sed 's/%//g')
@@ -16,7 +17,9 @@ elif [ "$mute" = "no" ]; then
dunstify "Speakers" "Speakers are unmuted" -r 100 -i "$dir_icons"/volume.svg
elif [ "$cur_vol_average" -gt "$vol_quiet" ] && [ "$cur_vol_average" -le "$vol_loud" ]; then
dunstify "Speakers" "Speakers are unmuted" -r 100 -i "$dir_icons"/volume-1.svg
elif [ "$cur_vol_average" -gt "$vol_loud" ]; then
elif [ "$cur_vol_average" -gt "$vol_loud" ] && [ "$cur_vol_average" -le "$vol_very_loud" ]; then
dunstify "Speakers" "Speakers are unmuted" -r 100 -i "$dir_icons"/volume-2.svg
elif [ "$cur_vol_average" -gt "$vol_very_loud" ]; then
dunstify "Speakers" "Speakers are unmuted" -r 100 -i "$dir_icons"/volume-3.svg
fi
fi