rofi config
This commit is contained in:
@@ -10,7 +10,7 @@ source "$HOME"/.config/rofi/applets/shared/theme.bash
|
||||
theme="$type/$style"
|
||||
|
||||
# Volume Info
|
||||
mixer="`amixer info Master | grep 'Mixer name' | cut -d':' -f2 | tr -d \',' '`"
|
||||
mixer="`pamixer --get-volume`"
|
||||
speaker="`amixer get Master | tail -n1 | awk -F ' ' '{print $5}' | tr -d '[]'`"
|
||||
mic="`amixer get Capture | tail -n1 | awk -F ' ' '{print $5}' | tr -d '[]'`"
|
||||
|
||||
@@ -18,7 +18,7 @@ active=""
|
||||
urgent=""
|
||||
|
||||
# Speaker Info
|
||||
amixer get Master | grep '\[on\]' &>/dev/null
|
||||
pamixer --get-mute | grep 'false' &>/dev/null
|
||||
if [[ "$?" == 0 ]]; then
|
||||
active="-a 1"
|
||||
stext='Unmute'
|
||||
@@ -30,7 +30,7 @@ else
|
||||
fi
|
||||
|
||||
# Microphone Info
|
||||
amixer get Capture | grep '\[on\]' &>/dev/null
|
||||
pamixer --source 70 --get-mute | grep 'false' &>/dev/null
|
||||
if [[ "$?" == 0 ]]; then
|
||||
[ -n "$active" ] && active+=",3" || active="-a 3"
|
||||
mtext='Unmute'
|
||||
@@ -100,15 +100,15 @@ run_rofi() {
|
||||
# Execute Command
|
||||
run_cmd() {
|
||||
if [[ "$1" == '--opt1' ]]; then
|
||||
amixer -Mq set Master,0 5%+ unmute
|
||||
pamixer --increase 5
|
||||
elif [[ "$1" == '--opt2' ]]; then
|
||||
amixer set Master toggle
|
||||
pamixer --toggle-mute
|
||||
elif [[ "$1" == '--opt3' ]]; then
|
||||
amixer -Mq set Master,0 5%- unmute
|
||||
pamixer --decrease 5
|
||||
elif [[ "$1" == '--opt4' ]]; then
|
||||
amixer set Capture toggle
|
||||
pamixer --source 70 --toggle-mute
|
||||
elif [[ "$1" == '--opt5' ]]; then
|
||||
pavucontrol
|
||||
pavucontrol-qt
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@@ -15,4 +15,4 @@
|
||||
|
||||
/* Import color-scheme from `colors` directory */
|
||||
|
||||
@import "~/.config/rofi/colors/onedark.rasi"
|
||||
@import "~/.config/rofi/colors/catppuccin.rasi"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
## Current Theme
|
||||
|
||||
type="$HOME/.config/rofi/applets/type-1"
|
||||
style='style-1.rasi'
|
||||
type="$HOME/.config/rofi/applets/type-3"
|
||||
style='style-3.rasi'
|
||||
|
||||
@@ -23,16 +23,16 @@ USE_ICON=YES
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
transparency: "real";
|
||||
location: east;
|
||||
anchor: east;
|
||||
location: north East;
|
||||
anchor: North East;
|
||||
fullscreen: false;
|
||||
width: 120px;
|
||||
x-offset: -20px;
|
||||
y-offset: 0px;
|
||||
x-offset: -240px;
|
||||
y-offset: 10px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 100%;
|
||||
border: 2px;
|
||||
border-radius: 20px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
**/
|
||||
|
||||
* {
|
||||
background: #1E1D2FFF;
|
||||
background-alt: #282839FF;
|
||||
foreground: #D9E0EEFF;
|
||||
selected: #7AA2F7FF;
|
||||
active: #ABE9B3FF;
|
||||
urgent: #F28FADFF;
|
||||
background: #24273a;
|
||||
background-alt: #1e2030;
|
||||
foreground: #6c7086;
|
||||
selected: #8aadf4;
|
||||
active: #a6da95;
|
||||
urgent: #ed8796;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
## style-11 style-12 style-13 style-14 style-15
|
||||
|
||||
dir="$HOME/.config/rofi/launchers/type-2"
|
||||
theme='style-1'
|
||||
theme='style-2'
|
||||
|
||||
## Run
|
||||
rofi \
|
||||
|
||||
@@ -15,4 +15,4 @@
|
||||
|
||||
/* Import color-scheme from `colors` directory */
|
||||
|
||||
@import "~/.config/rofi/colors/onedark.rasi"
|
||||
@import "~/.config/rofi/colors/catppuccin.rasi"
|
||||
|
||||
@@ -32,7 +32,7 @@ window {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border: 2px;
|
||||
border-radius: 12px;
|
||||
border-color: @selected;
|
||||
background-color: @background;
|
||||
|
||||
@@ -33,8 +33,8 @@ window {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border: 2px;
|
||||
border-radius: 10px;
|
||||
border-color: @selected;
|
||||
background-color: @background;
|
||||
cursor: "default";
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
# Current Theme
|
||||
dir="$HOME/.config/rofi/powermenu/type-2"
|
||||
theme='style-2'
|
||||
theme='style-5'
|
||||
|
||||
# CMDs
|
||||
uptime="`uptime -p | sed -e 's/up //g'`"
|
||||
@@ -79,6 +79,8 @@ run_cmd() {
|
||||
i3-msg exit
|
||||
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
|
||||
qdbus org.kde.ksmserver /KSMServer logout 0 0 0
|
||||
elif [[ "$DESKTOP_SESSION" == 'hyprland' ]] then
|
||||
hyprctl dispatch exit
|
||||
fi
|
||||
fi
|
||||
else
|
||||
@@ -100,6 +102,8 @@ case ${chosen} in
|
||||
betterlockscreen -l
|
||||
elif [[ -x '/usr/bin/i3lock' ]]; then
|
||||
i3lock
|
||||
elif [[ -x 'usr/bin/hyprlock' ]]; then
|
||||
hyprlock
|
||||
fi
|
||||
;;
|
||||
$suspend)
|
||||
|
||||
@@ -35,7 +35,7 @@ window {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border: 2px;
|
||||
border-radius: 20px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
|
||||
@@ -24,18 +24,18 @@ USE_BUTTONS=YES
|
||||
window {
|
||||
/* properties for window widget */
|
||||
transparency: "real";
|
||||
location: west;
|
||||
anchor: west;
|
||||
location: North East;
|
||||
anchor: North East;
|
||||
fullscreen: false;
|
||||
width: 115px;
|
||||
x-offset: 15px;
|
||||
y-offset: 0px;
|
||||
x-offset: -20px;
|
||||
y-offset: 20px;
|
||||
|
||||
/* properties for all widgets */
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border: 2px;
|
||||
border-radius: 12px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
|
||||
Reference in New Issue
Block a user