From 764e3915a3fbc021ed13a9665b1bf778c96cd74d Mon Sep 17 00:00:00 2001
From: Keyitdev <70140437+Keyitdev@users.noreply.github.com>
Date: Thu, 31 Jul 2025 11:15:25 +0200
Subject: [PATCH] Update: Added rofi configs, dunst config and icons.
---
home/.config/dunst/dunstrc | 60 +++--
home/.config/i3/config | 5 +-
home/.config/rofi/colors.rasi | 10 +
home/.config/rofi/dmenu.rasi | 287 ++++++++++++++++++++++
home/.config/rofi/main.rasi | 120 +++++++++
home/.config/rofi/main_without_icons.rasi | 121 +++++++++
home/.config/zed/settings.json | 53 ++++
usr/local/bin/icons/battery.svg | 1 +
usr/local/bin/icons/mic-off.svg | 1 +
usr/local/bin/icons/mic.svg | 1 +
usr/local/bin/icons/moon.svg | 1 +
usr/local/bin/icons/sun.svg | 1 +
usr/local/bin/icons/volume-1.svg | 1 +
usr/local/bin/icons/volume-2.svg | 1 +
usr/local/bin/icons/volume-3.svg | 48 ++++
usr/local/bin/icons/volume-x.svg | 1 +
usr/local/bin/icons/volume.svg | 1 +
usr/local/bin/rofi-powermenu | 30 +--
usr/local/bin/rofi-screenshot | 2 +-
usr/local/bin/volume_level | 5 +-
usr/local/bin/volume_mute | 5 +-
21 files changed, 703 insertions(+), 52 deletions(-)
create mode 100755 home/.config/rofi/colors.rasi
create mode 100644 home/.config/rofi/dmenu.rasi
create mode 100644 home/.config/rofi/main.rasi
create mode 100644 home/.config/rofi/main_without_icons.rasi
create mode 100644 home/.config/zed/settings.json
create mode 100755 usr/local/bin/icons/battery.svg
create mode 100755 usr/local/bin/icons/mic-off.svg
create mode 100755 usr/local/bin/icons/mic.svg
create mode 100755 usr/local/bin/icons/moon.svg
create mode 100755 usr/local/bin/icons/sun.svg
create mode 100755 usr/local/bin/icons/volume-1.svg
create mode 100755 usr/local/bin/icons/volume-2.svg
create mode 100755 usr/local/bin/icons/volume-3.svg
create mode 100755 usr/local/bin/icons/volume-x.svg
create mode 100755 usr/local/bin/icons/volume.svg
diff --git a/home/.config/dunst/dunstrc b/home/.config/dunst/dunstrc
index 05d1e41..d283f07 100644
--- a/home/.config/dunst/dunstrc
+++ b/home/.config/dunst/dunstrc
@@ -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 = "%s\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
diff --git a/home/.config/i3/config b/home/.config/i3/config
index 66fa343..f2cb7b3 100644
--- a/home/.config/i3/config
+++ b/home/.config/i3/config
@@ -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
diff --git a/home/.config/rofi/colors.rasi b/home/.config/rofi/colors.rasi
new file mode 100755
index 0000000..8aae000
--- /dev/null
+++ b/home/.config/rofi/colors.rasi
@@ -0,0 +1,10 @@
+/* colors */
+
+* {
+ al: #00000000;
+ bg: #1b1b25;
+ se: #282a36;
+ fg: #dedede;
+ ac: #16161e;
+ br: #343746;
+}
\ No newline at end of file
diff --git a/home/.config/rofi/dmenu.rasi b/home/.config/rofi/dmenu.rasi
new file mode 100644
index 0000000..207d4ff
--- /dev/null
+++ b/home/.config/rofi/dmenu.rasi
@@ -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;
+}
diff --git a/home/.config/rofi/main.rasi b/home/.config/rofi/main.rasi
new file mode 100644
index 0000000..ebfd1d9
--- /dev/null
+++ b/home/.config/rofi/main.rasi
@@ -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;
+}
diff --git a/home/.config/rofi/main_without_icons.rasi b/home/.config/rofi/main_without_icons.rasi
new file mode 100644
index 0000000..79c003e
--- /dev/null
+++ b/home/.config/rofi/main_without_icons.rasi
@@ -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;
+}
diff --git a/home/.config/zed/settings.json b/home/.config/zed/settings.json
new file mode 100644
index 0000000..fbf3858
--- /dev/null
+++ b/home/.config/zed/settings.json
@@ -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
+ }
+}
diff --git a/usr/local/bin/icons/battery.svg b/usr/local/bin/icons/battery.svg
new file mode 100755
index 0000000..caaf4a6
--- /dev/null
+++ b/usr/local/bin/icons/battery.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/usr/local/bin/icons/mic-off.svg b/usr/local/bin/icons/mic-off.svg
new file mode 100755
index 0000000..bfa04e0
--- /dev/null
+++ b/usr/local/bin/icons/mic-off.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/usr/local/bin/icons/mic.svg b/usr/local/bin/icons/mic.svg
new file mode 100755
index 0000000..129c60d
--- /dev/null
+++ b/usr/local/bin/icons/mic.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/usr/local/bin/icons/moon.svg b/usr/local/bin/icons/moon.svg
new file mode 100755
index 0000000..2b6fe2c
--- /dev/null
+++ b/usr/local/bin/icons/moon.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/usr/local/bin/icons/sun.svg b/usr/local/bin/icons/sun.svg
new file mode 100755
index 0000000..8e5ded0
--- /dev/null
+++ b/usr/local/bin/icons/sun.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/usr/local/bin/icons/volume-1.svg b/usr/local/bin/icons/volume-1.svg
new file mode 100755
index 0000000..92393eb
--- /dev/null
+++ b/usr/local/bin/icons/volume-1.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/usr/local/bin/icons/volume-2.svg b/usr/local/bin/icons/volume-2.svg
new file mode 100755
index 0000000..d2bf1ba
--- /dev/null
+++ b/usr/local/bin/icons/volume-2.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/usr/local/bin/icons/volume-3.svg b/usr/local/bin/icons/volume-3.svg
new file mode 100755
index 0000000..ddfa3a2
--- /dev/null
+++ b/usr/local/bin/icons/volume-3.svg
@@ -0,0 +1,48 @@
+
+
diff --git a/usr/local/bin/icons/volume-x.svg b/usr/local/bin/icons/volume-x.svg
new file mode 100755
index 0000000..57599f1
--- /dev/null
+++ b/usr/local/bin/icons/volume-x.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/usr/local/bin/icons/volume.svg b/usr/local/bin/icons/volume.svg
new file mode 100755
index 0000000..a8ac835
--- /dev/null
+++ b/usr/local/bin/icons/volume.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/usr/local/bin/rofi-powermenu b/usr/local/bin/rofi-powermenu
index 3e0dad7..27e6809 100755
--- a/usr/local/bin/rofi-powermenu
+++ b/usr/local/bin/rofi-powermenu
@@ -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
;;
diff --git a/usr/local/bin/rofi-screenshot b/usr/local/bin/rofi-screenshot
index 4b31a12..02c43e7 100755
--- a/usr/local/bin/rofi-screenshot
+++ b/usr/local/bin/rofi-screenshot
@@ -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"
diff --git a/usr/local/bin/volume_level b/usr/local/bin/volume_level
index 649e852..5b69c11 100755
--- a/usr/local/bin/volume_level
+++ b/usr/local/bin/volume_level
@@ -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
diff --git a/usr/local/bin/volume_mute b/usr/local/bin/volume_mute
index d5087b1..ab5374c 100755
--- a/usr/local/bin/volume_mute
+++ b/usr/local/bin/volume_mute
@@ -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