mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
moved files to make more sense and added experimental desktop configuration
This commit is contained in:
parent
22c5b6f826
commit
50fae0b2eb
38 changed files with 533 additions and 191 deletions
111
home-manager/config/rofi/config.rasi
Executable file
111
home-manager/config/rofi/config.rasi
Executable file
|
|
@ -0,0 +1,111 @@
|
|||
configuration{
|
||||
modi: "run,drun,window";
|
||||
lines: 5;
|
||||
show-icons: true;
|
||||
icon-theme: "Flat-Remix-Blue-Dark";
|
||||
terminal: "alacritty";
|
||||
drun-display-format: "{name}";
|
||||
location: 0;
|
||||
disable-history: false;
|
||||
hide-scrollbar: true;
|
||||
display-drun: " Apps ";
|
||||
display-run: " Run ";
|
||||
display-window: " Window";
|
||||
sidebar-mode: true;
|
||||
}
|
||||
@theme "/dev/null"
|
||||
* {
|
||||
background-color: #000000;
|
||||
text-color: #7AA2F7;
|
||||
black: #000000;
|
||||
blue: #7AA2F7;
|
||||
deepblue: #03339c;
|
||||
clear: #00000000;
|
||||
width: 800;
|
||||
font: "Overpass 16";
|
||||
}
|
||||
window {
|
||||
height: 500px;
|
||||
border: 0px;
|
||||
border-radius: 15;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
children: [ mode-switcher, inputbar, listview ];
|
||||
}
|
||||
|
||||
inputbar {
|
||||
children: [prompt,entry];
|
||||
background-color: @black;
|
||||
border-radius: 5px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
prompt {
|
||||
background-color: @blue;
|
||||
padding: 6px;
|
||||
text-color: @black;
|
||||
border-radius: 5px;
|
||||
margin: 20px 0px 0px 20px;
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
expand: false;
|
||||
str: ":";
|
||||
}
|
||||
|
||||
entry {
|
||||
padding: 6px;
|
||||
margin: 20px 0px 0px 10px;
|
||||
}
|
||||
|
||||
listview {
|
||||
border: 0px 0px 0px;
|
||||
padding: 10 10 0;
|
||||
margin: 10 10 0 10;
|
||||
columns: 4;
|
||||
spacing: 15;
|
||||
}
|
||||
|
||||
element {
|
||||
padding: 5px;
|
||||
orientation: vertical;
|
||||
spacing: 10;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
size: 56px;
|
||||
horizontal-align: 0.5;
|
||||
background-color: @clear;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: @deepblue ;
|
||||
text-color: @black ;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
element-text {
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
expand: true;
|
||||
background-color: @clear;
|
||||
}
|
||||
|
||||
mode-switcher {
|
||||
spacing: 0;
|
||||
margin: 5 10 5 10;
|
||||
padding: 10 50 5 50;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 10px;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
button selected {
|
||||
background-color: @blue ;
|
||||
text-color: @black;
|
||||
border-radius: 10px;
|
||||
}
|
||||
42
home-manager/config/rofi/powermenu/powermenu.rasi
Executable file
42
home-manager/config/rofi/powermenu/powermenu.rasi
Executable file
|
|
@ -0,0 +1,42 @@
|
|||
* {
|
||||
background: #00000000;
|
||||
black: #000000;
|
||||
blue: #7aa2f7;
|
||||
deepblue: #03339c;
|
||||
}
|
||||
* {
|
||||
background-color: #00000000;
|
||||
text-color: @blue;
|
||||
font: "Material Design Icons 60";
|
||||
}
|
||||
prompt,inputbar,entry,textbox-prompt-colon { enabled: false; }
|
||||
#window {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: @background;
|
||||
transparency: "real";
|
||||
children: [dummy, listview, dummy];
|
||||
}
|
||||
#dummyofdummy {
|
||||
children: [dummy, listview, dummy];
|
||||
}
|
||||
#dummy {
|
||||
expand: true;
|
||||
}
|
||||
listview {
|
||||
lines: 4;
|
||||
layout: horizontal;
|
||||
children: [element];
|
||||
margin: 100px 0px 100px 585px;
|
||||
}
|
||||
#element {
|
||||
padding: 30px 40px;
|
||||
background-color: @black;
|
||||
border-color: #00000000;
|
||||
border-radius: 20px;
|
||||
text-color: @black;
|
||||
}
|
||||
#element.selected {
|
||||
text-color: @black;
|
||||
background-color: @deepblue;
|
||||
}
|
||||
28
home-manager/config/rofi/powermenu/powermenu.sh
Executable file
28
home-manager/config/rofi/powermenu/powermenu.sh
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
rofi_command="rofi -theme $HOME/.config/rofi/powermenu/powermenu.rasi -p "power""
|
||||
|
||||
#### Options ###
|
||||
power_off="襤 "
|
||||
reboot="勒 "
|
||||
lock=" "
|
||||
suspend=" "
|
||||
log_out=" "
|
||||
# Variable passed to rofi
|
||||
options="$power_off\n$reboot\n$suspend\n$log_out"
|
||||
|
||||
chosen="$(echo -e "$options" | $rofi_command -dmenu -selected-row 2)"
|
||||
case $chosen in
|
||||
$power_off)
|
||||
systemctl poweroff
|
||||
;;
|
||||
$reboot)
|
||||
systemctl reboot
|
||||
;;
|
||||
$suspend)
|
||||
systemctl suspend
|
||||
;;
|
||||
$log_out)
|
||||
bspc quit
|
||||
;;
|
||||
esac
|
||||
109
home-manager/config/rofi/window-switcher/box.rasi
Executable file
109
home-manager/config/rofi/window-switcher/box.rasi
Executable file
|
|
@ -0,0 +1,109 @@
|
|||
configuration {
|
||||
show-icons: true;
|
||||
icon-theme: "Flat-Remix-Blue-Dark";
|
||||
disable-history: true;
|
||||
fullscreen: false;
|
||||
hide-scrollbar: true;
|
||||
sidebar-mode: false;
|
||||
display-window: "";
|
||||
window-format : "{t}";
|
||||
window-thumbnail: false;
|
||||
}
|
||||
|
||||
* {
|
||||
background-color: #000000;
|
||||
black: #000000;
|
||||
text-color: #7AA2F7;
|
||||
blue: #7AA2F7;
|
||||
deepblue: #03339c;
|
||||
clear: #00000000;
|
||||
font: "Overpass 12";
|
||||
}
|
||||
|
||||
window {
|
||||
border: 0px;
|
||||
border-color: @deepblue;
|
||||
border-radius: 20px;
|
||||
height: 150;
|
||||
location: center;
|
||||
x-offset: 0;
|
||||
y-offset: 0;
|
||||
}
|
||||
|
||||
prompt {
|
||||
enabled: false;
|
||||
padding: 0.25% 0.75% 0% -0.25%;
|
||||
}
|
||||
|
||||
entry {
|
||||
enabled: false;
|
||||
placeholder-color: @blue;
|
||||
expand: false;
|
||||
horizontal-align: 0;
|
||||
placeholder: "Switch to...";
|
||||
padding: 0% 0% 0% 0%;
|
||||
blink: true;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
enabled: false;
|
||||
children: [ prompt, entry];
|
||||
expand: false;
|
||||
border: 0.3% 0% 0.3% 0%;
|
||||
border-radius: 100%;
|
||||
border-color: @deepblue;
|
||||
margin: 0% 0% 0% 0%;
|
||||
}
|
||||
|
||||
listview {
|
||||
margin: 0.3% 0% 0% 0%;
|
||||
columns: 8;
|
||||
row: 1;
|
||||
spacing: 1%;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
layout: vertical;
|
||||
fixed-height : true;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
border: 0% 0% 0% 0%;
|
||||
border-radius: 0% 0% 0% 0%;
|
||||
border-color: @accent;
|
||||
children: [ inputbar, listview];
|
||||
spacing: -100%;
|
||||
padding: 1.5% 1% 1% 1%;
|
||||
}
|
||||
|
||||
element {
|
||||
orientation: vertical;
|
||||
border-radius: 75px;
|
||||
padding: 2% 0% 0% 0%;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
size: 50px;
|
||||
border: 0px;
|
||||
}
|
||||
|
||||
element-text {
|
||||
expand: false;
|
||||
horizontal-align: 0.5;
|
||||
vertical-align: 0.9;
|
||||
margin: 1% 0.5% 0.7% 0.5%;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: @deepblue;
|
||||
border: 3px;
|
||||
border-radius: 15px;
|
||||
border-color: @deepblue;
|
||||
}
|
||||
|
||||
element-text, element-icon, element {
|
||||
background-color: inherit;
|
||||
}
|
||||
|
||||
listview, element, element selected, element-icon, element-text {
|
||||
cursor: pointer;
|
||||
}
|
||||
109
home-manager/config/rofi/window-switcher/box.rasi.save
Executable file
109
home-manager/config/rofi/window-switcher/box.rasi.save
Executable file
|
|
@ -0,0 +1,109 @@
|
|||
configuration {
|
||||
show-icons: true;
|
||||
icon-theme: "Flat-Remix-Blue-Dark";
|
||||
disable-history: true;
|
||||
fullscreen: false;
|
||||
hide-scrollbar: true;
|
||||
sidebar-mode: false;
|
||||
display-window: "";
|
||||
window-format : "{t}";
|
||||
window-thumbnail: false;
|
||||
}
|
||||
|
||||
* {
|
||||
background-color: #000000;
|
||||
black: #000000;
|
||||
text-color: #7AA2F7;
|
||||
blue: #7AA2F7;
|
||||
deepblue: #03339c;
|
||||
clear: #00000000;
|
||||
font: "Overpass 16";
|
||||
}
|
||||
|
||||
window {
|
||||
border: 0px;
|
||||
border-color: @deepblue;
|
||||
border-radius: 20px;
|
||||
height: 18.8%;
|
||||
location: center;
|
||||
x-offset: 0;
|
||||
y-offset: 0;
|
||||
}
|
||||
|
||||
prompt {
|
||||
enabled: false;
|
||||
padding: 0.25% 0.75% 0% -0.25%;
|
||||
}
|
||||
|
||||
entry {
|
||||
enabled: false;
|
||||
placeholder-color: @blue;
|
||||
expand: false;
|
||||
horizontal-align: 0;
|
||||
placeholder: "Switch to...";
|
||||
padding: 0% 0% 0% 0%;
|
||||
blink: true;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
enabled: false;
|
||||
children: [ prompt, entry];
|
||||
expand: false;
|
||||
border: 0.3% 0% 0.3% 0%;
|
||||
border-radius: 100%;
|
||||
border-color: @deepblue;
|
||||
margin: 0% 0% 0% 0%;
|
||||
}
|
||||
|
||||
listview {
|
||||
margin: 0.3% 0% 0% 0%;
|
||||
columns: 6;
|
||||
row: 1;
|
||||
spacing: 1%;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
layout: vertical;
|
||||
fixed-height : true;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
border: 0% 0% 0% 0%;
|
||||
border-radius: 0% 0% 0% 0%;
|
||||
border-color: @accent;
|
||||
children: [ inputbar, listview];
|
||||
spacing: -100%;
|
||||
padding: 1.5% 1% 1% 1%;
|
||||
}
|
||||
|
||||
element {
|
||||
orientation: vertical;
|
||||
border-radius: 100px;
|
||||
padding: 2% 0% 0% 0%;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
size: 100px;
|
||||
border: 0px;
|
||||
}
|
||||
|
||||
element-text {
|
||||
expand: false;
|
||||
horizontal-align: 0.5;
|
||||
vertical-align: 0.9;
|
||||
margin: 1% 0.5% 0.7% 0.5%;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: @deepblue;
|
||||
border: 3px;
|
||||
border-radius: 15px;
|
||||
border-color: @deepblue;
|
||||
}
|
||||
|
||||
element-text, element-icon, element {
|
||||
background-color: inherit;
|
||||
}
|
||||
|
||||
listview, element, element selected, element-icon, element-text {
|
||||
cursor: pointer;
|
||||
}
|
||||
13
home-manager/config/rofi/window-switcher/window-switcher.sh
Executable file
13
home-manager/config/rofi/window-switcher/window-switcher.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
path=$HOME/.config/rofi/window-switcher/box.rasi
|
||||
windows="$(xprop -root _NET_CLIENT_LIST | grep -o '0x' | wc -l )"
|
||||
if (($windows<8)); then
|
||||
width=$(($windows*150))
|
||||
else
|
||||
width=1200
|
||||
fi
|
||||
rofi \
|
||||
-no-lazy-grab \
|
||||
-show window \
|
||||
-theme $path \
|
||||
-theme-str 'window {width: '$width';}'
|
||||
Loading…
Add table
Add a link
Reference in a new issue