Added rofi config
This commit is contained in:
parent
4f4b2e1f64
commit
cd5bc16400
4 changed files with 143 additions and 0 deletions
79
rofi/LilieshBase/base-theme.rasi
Normal file
79
rofi/LilieshBase/base-theme.rasi
Normal file
|
@ -0,0 +1,79 @@
|
|||
* {
|
||||
bg-color: rgba(0, 0, 0, 0.7);
|
||||
font-color: #ffffff;
|
||||
primary-color: #e7b2eb;
|
||||
secondary-color: #85e8ed;
|
||||
}
|
||||
|
||||
configuration {
|
||||
sidebar-mode: false;
|
||||
show-icons: true;
|
||||
icon-theme: "Catpuccin Frappe Pink";
|
||||
font: "Ubuntu 14";
|
||||
}
|
||||
|
||||
window,
|
||||
message
|
||||
{
|
||||
background-color: @bg-color;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
window,
|
||||
mainbox,
|
||||
listview {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
element {
|
||||
border: 0;
|
||||
children: [ element-text, element-icon ];
|
||||
}
|
||||
|
||||
entry {
|
||||
border-radius: 10px;
|
||||
padding: 0 10px 0 10px;
|
||||
color: @secondary-color;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
children: [entry];
|
||||
}
|
||||
|
||||
element,
|
||||
element-icon,
|
||||
element-text {
|
||||
background-color: transparent;
|
||||
color: #ffffff;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
padding: 5px;
|
||||
size: 1.2em;
|
||||
}
|
||||
|
||||
element-text {
|
||||
padding: 0 5px 0 5px;
|
||||
vertical-align: 0.5;
|
||||
}
|
||||
|
||||
scrollbar {
|
||||
background-color: transparent;
|
||||
handle-color: @primary-color;
|
||||
}
|
||||
|
||||
element selected,
|
||||
element-text selected,
|
||||
element-icon selected,
|
||||
element.selected.normal {
|
||||
background-color: @primary-color;
|
||||
border-radius: 10px;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
|
||||
element.normal.normal,
|
||||
element.alternate.normal {
|
||||
background-color: transparent;
|
||||
}
|
1
rofi/LilieshBase/config.rasi
Normal file
1
rofi/LilieshBase/config.rasi
Normal file
|
@ -0,0 +1 @@
|
|||
@import "~/.config/rofi/base-theme.rasi"
|
27
rofi/LilieshBase/powermenu.rasi
Normal file
27
rofi/LilieshBase/powermenu.rasi
Normal file
|
@ -0,0 +1,27 @@
|
|||
@import "~/.config/rofi/base-theme.rasi"
|
||||
|
||||
configuration {
|
||||
show-icons: false;
|
||||
scroll-method: 0;
|
||||
disable-history: true;
|
||||
sidebar-mode: false;
|
||||
}
|
||||
|
||||
window {
|
||||
border: 0;
|
||||
padding: 10;
|
||||
transparency: "real";
|
||||
width: 180px;
|
||||
location: east;
|
||||
}
|
||||
|
||||
listview {
|
||||
lines: 4;
|
||||
columns: 1;
|
||||
scrollbar: false;
|
||||
color: white;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
enabled: false;
|
||||
}
|
36
rofi/LilieshBase/powermenu.sh
Executable file
36
rofi/LilieshBase/powermenu.sh
Executable file
|
@ -0,0 +1,36 @@
|
|||
#!/bin/env bash
|
||||
|
||||
logout=" Logout"
|
||||
sleep=" Sleep"
|
||||
shutdown=" Shutdown"
|
||||
reboot=" Reboot"
|
||||
|
||||
# Get answer from user via rofi
|
||||
selected=$(echo "$logout
|
||||
$sleep
|
||||
$reboot
|
||||
$shutdown" | rofi -dmenu\
|
||||
-i\
|
||||
-p "Power"\
|
||||
-config "~/.config/rofi/powermenu.rasi"\
|
||||
-font "Cascadia Code 12"\
|
||||
-width "15"\
|
||||
-lines 5\
|
||||
-line-margin 3\
|
||||
-line-padding 10\
|
||||
-scrollbar-width "0" )
|
||||
|
||||
case $selected in
|
||||
$logout)
|
||||
hyprctl dispatch exit
|
||||
;;
|
||||
$sleep)
|
||||
systemctl suspend
|
||||
;;
|
||||
$reboot)
|
||||
systemctl reboot
|
||||
;;
|
||||
$shutdown)
|
||||
systemctl poweroff
|
||||
;;
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue