feat(dotfiles): add rofi plus niri waybar ricing
This commit is contained in:
parent
2fedcd8c8d
commit
fa24b6abfb
10 changed files with 346 additions and 22 deletions
|
@ -95,7 +95,7 @@ environment {
|
||||||
// https://github.com/YaLTeR/niri/wiki/Configuration:-Layout
|
// https://github.com/YaLTeR/niri/wiki/Configuration:-Layout
|
||||||
layout {
|
layout {
|
||||||
// Set gaps around windows in logical pixels.
|
// Set gaps around windows in logical pixels.
|
||||||
gaps 32
|
gaps 16
|
||||||
|
|
||||||
// When to center a column when changing focus, options are:
|
// When to center a column when changing focus, options are:
|
||||||
// - "never", default behavior, focusing an off-screen column will keep at the left
|
// - "never", default behavior, focusing an off-screen column will keep at the left
|
||||||
|
@ -179,7 +179,7 @@ layout {
|
||||||
// If you enable the border, you probably want to disable the focus ring.
|
// If you enable the border, you probably want to disable the focus ring.
|
||||||
off
|
off
|
||||||
|
|
||||||
width 4
|
width 3
|
||||||
active-color "#ffc87f"
|
active-color "#ffc87f"
|
||||||
inactive-color "#505050"
|
inactive-color "#505050"
|
||||||
|
|
||||||
|
@ -211,7 +211,7 @@ spawn-at-startup "swww-daemon"
|
||||||
spawn-at-startup "wl-paste --type text --watch cliphist store # Stores only text data"
|
spawn-at-startup "wl-paste --type text --watch cliphist store # Stores only text data"
|
||||||
spawn-at-startup "wl-paste --type image --watch cliphist store # Stores only image data"
|
spawn-at-startup "wl-paste --type image --watch cliphist store # Stores only image data"
|
||||||
spawn-at-startup "~/Code/nixos-config/scripts/swww.sh ~/Code/wallpaper"
|
spawn-at-startup "~/Code/nixos-config/scripts/swww.sh ~/Code/wallpaper"
|
||||||
spawn-at-startup "firefox"
|
spawn-at-startup "zen"
|
||||||
spawn-at-startup "kitty"
|
spawn-at-startup "kitty"
|
||||||
|
|
||||||
hotkey-overlay {
|
hotkey-overlay {
|
||||||
|
@ -258,6 +258,10 @@ window-rule {
|
||||||
default-column-width {}
|
default-column-width {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window-rule {
|
||||||
|
match title="rofi"
|
||||||
|
open-floating true
|
||||||
|
}
|
||||||
// Example: block out two password managers from screen capture.
|
// Example: block out two password managers from screen capture.
|
||||||
// (This example rule is commented out with a "/-" in front.)
|
// (This example rule is commented out with a "/-" in front.)
|
||||||
/-window-rule {
|
/-window-rule {
|
||||||
|
@ -275,7 +279,7 @@ window-rule {
|
||||||
window-rule {
|
window-rule {
|
||||||
geometry-corner-radius 5
|
geometry-corner-radius 5
|
||||||
clip-to-geometry true
|
clip-to-geometry true
|
||||||
opacity 0.95
|
opacity 0.98
|
||||||
}
|
}
|
||||||
|
|
||||||
binds {
|
binds {
|
||||||
|
|
6
dotfiles/rofi/config.rasi
Normal file
6
dotfiles/rofi/config.rasi
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
configuration {
|
||||||
|
font: "Inter Semibold 13px";
|
||||||
|
icon-theme: "Papirus-Dark";
|
||||||
|
}
|
||||||
|
|
||||||
|
@theme "~/.config/rofi/theme/cherry-midnight.rasi"
|
BIN
dotfiles/rofi/images/header-1.jpg
Normal file
BIN
dotfiles/rofi/images/header-1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 264 KiB |
8
dotfiles/rofi/rofi-session.conf
Normal file
8
dotfiles/rofi/rofi-session.conf
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#
|
||||||
|
# rofi-session configuration
|
||||||
|
#
|
||||||
|
|
||||||
|
icon=true
|
||||||
|
choices=lockscreen:logout:reboot:shutdown
|
||||||
|
label=false
|
||||||
|
theme=~/.config/rofi/theme/cherry-midnight.session.rasi
|
104
dotfiles/rofi/theme/cherry-midnight.rasi
Normal file
104
dotfiles/rofi/theme/cherry-midnight.rasi
Normal file
|
@ -0,0 +1,104 @@
|
||||||
|
configuration {
|
||||||
|
show-icons: true;
|
||||||
|
display-run: ">_";
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
color0: #33333f;
|
||||||
|
color1: #ff568e;
|
||||||
|
color2: #64de83;
|
||||||
|
color3: #efff73;
|
||||||
|
color4: #73a9ff;
|
||||||
|
color5: #946ff7;
|
||||||
|
color6: #62c6da;
|
||||||
|
color7: #dedeef;
|
||||||
|
|
||||||
|
bg: #101017f0;
|
||||||
|
bg-alt: #1f222e;
|
||||||
|
fg: #bdc3c7;
|
||||||
|
|
||||||
|
color: @fg;
|
||||||
|
background-color: transparent;
|
||||||
|
highlight: underline bold #ff568e;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
window {
|
||||||
|
width: 480px;
|
||||||
|
children: [ mainbox];
|
||||||
|
location: center;
|
||||||
|
transparency: "real";
|
||||||
|
background-color: @bg;
|
||||||
|
}
|
||||||
|
|
||||||
|
mainbox {
|
||||||
|
orientation: vertical;
|
||||||
|
children: [ inputbar, message, listview, mode-switcher];
|
||||||
|
border: 1px;
|
||||||
|
border-color: @color0;
|
||||||
|
}
|
||||||
|
|
||||||
|
inputbar {
|
||||||
|
padding: 1em;
|
||||||
|
children: [prompt,entry];
|
||||||
|
spacing: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
prompt {
|
||||||
|
background-color: @color1;
|
||||||
|
padding: 15px;
|
||||||
|
text-color: @bg;
|
||||||
|
border-radius: 50% 0 0 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
entry {
|
||||||
|
padding: 15px 30px 15px 15px;
|
||||||
|
border: 0px;
|
||||||
|
border-radius: 0 100% 100% 0;
|
||||||
|
background-color: @bg;
|
||||||
|
text-color: @fg;
|
||||||
|
}
|
||||||
|
|
||||||
|
message {
|
||||||
|
padding: 0 0 1em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
textbox {
|
||||||
|
background-color: @color1;
|
||||||
|
padding: 0 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
listview {
|
||||||
|
margin: 0.5em 0 0 0;
|
||||||
|
lines: 6;
|
||||||
|
}
|
||||||
|
|
||||||
|
element {
|
||||||
|
padding: 0.5em;
|
||||||
|
color: @fg;
|
||||||
|
}
|
||||||
|
|
||||||
|
element selected.normal {
|
||||||
|
background-color: @bg-alt;
|
||||||
|
}
|
||||||
|
|
||||||
|
element-icon {
|
||||||
|
padding: 0 0.5em 0 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
mode-switcher {
|
||||||
|
padding: 0 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
margin: 0.3em 0 0.5em;
|
||||||
|
padding: 0.3em;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
button selected {
|
||||||
|
background-color: @color5;
|
||||||
|
text-color: @color0;
|
||||||
|
}
|
93
dotfiles/rofi/theme/cherry-midnight.session.rasi
Normal file
93
dotfiles/rofi/theme/cherry-midnight.session.rasi
Normal file
|
@ -0,0 +1,93 @@
|
||||||
|
configuration {
|
||||||
|
show-icons: true;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
color0: #33333f;
|
||||||
|
color1: #ff568e;
|
||||||
|
color2: #64de83;
|
||||||
|
color3: #efff73;
|
||||||
|
color4: #73a9ff;
|
||||||
|
color5: #946ff7;
|
||||||
|
color6: #62c6da;
|
||||||
|
color7: #dedeef;
|
||||||
|
|
||||||
|
bg: #101017;
|
||||||
|
bg-alt: #1f222e;
|
||||||
|
fg: #bdc3c7;
|
||||||
|
|
||||||
|
color: @fg;
|
||||||
|
background-color: transparent;
|
||||||
|
highlight: underline bold #ff568e;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
window {
|
||||||
|
children: [ mainbox];
|
||||||
|
transparency: "real";
|
||||||
|
location: center;
|
||||||
|
width: 480px;
|
||||||
|
background-color: #101017f0;
|
||||||
|
}
|
||||||
|
|
||||||
|
mainbox {
|
||||||
|
children: [ inputbar, listview, message];
|
||||||
|
border: 1px;
|
||||||
|
border-color: @color0;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
inputbar {
|
||||||
|
children: [ textbox-prompt-colon, prompt];
|
||||||
|
spacing: -1px;
|
||||||
|
padding: 3em;
|
||||||
|
background-image: url("~/.config/rofi/images/header-1.jpg", width);
|
||||||
|
}
|
||||||
|
|
||||||
|
textbox-prompt-colon {
|
||||||
|
expand: false;
|
||||||
|
str: "";
|
||||||
|
padding: 15px;
|
||||||
|
border-radius: 100% 0 0 100%;
|
||||||
|
background-color: @color5;
|
||||||
|
text-color: @bg;
|
||||||
|
}
|
||||||
|
|
||||||
|
prompt {
|
||||||
|
padding: 15px 30px 15px 15px;
|
||||||
|
border: 0px;
|
||||||
|
border-radius: 0 100% 100% 0;
|
||||||
|
background-color: #101017f0;
|
||||||
|
}
|
||||||
|
|
||||||
|
listview {
|
||||||
|
columns: 6;
|
||||||
|
lines: 1;
|
||||||
|
spacing: -1px;
|
||||||
|
margin: 2em;
|
||||||
|
border-radius: 50px;
|
||||||
|
border: 1px;
|
||||||
|
border-color: @bg-alt;
|
||||||
|
text-color: @fg;
|
||||||
|
background-color: #101017f0;
|
||||||
|
}
|
||||||
|
|
||||||
|
element {
|
||||||
|
padding: 20px;
|
||||||
|
border-radius: 50%;
|
||||||
|
orientation: vertical;
|
||||||
|
children: [ element-icon];
|
||||||
|
}
|
||||||
|
|
||||||
|
element-icon {
|
||||||
|
size: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
element selected.normal {
|
||||||
|
border-radius: 50%;
|
||||||
|
background-color: #ff568e25;
|
||||||
|
border: 1px;
|
||||||
|
border-color: #ff568e;
|
||||||
|
}
|
105
dotfiles/rofi/theme/cherry.rasi
Normal file
105
dotfiles/rofi/theme/cherry.rasi
Normal file
|
@ -0,0 +1,105 @@
|
||||||
|
configuration {
|
||||||
|
show-icons: true;
|
||||||
|
display-run: ">_";
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
color0: #43434f;
|
||||||
|
color1: #ff568e;
|
||||||
|
color2: #64de83;
|
||||||
|
color3: #efff73;
|
||||||
|
color4: #73a9ff;
|
||||||
|
color5: #946ff7;
|
||||||
|
color6: #62c6da;
|
||||||
|
color7: #dedeef;
|
||||||
|
|
||||||
|
bg: #23232ff0;
|
||||||
|
bg-alt: #3c3e4d;
|
||||||
|
fg: #bdc3c7;
|
||||||
|
|
||||||
|
color: @fg;
|
||||||
|
background-color: transparent;
|
||||||
|
highlight: underline bold #ff568e;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
window {
|
||||||
|
width: 480px;
|
||||||
|
children: [ mainbox];
|
||||||
|
location: center;
|
||||||
|
transparency: "real";
|
||||||
|
background-color: @bg;
|
||||||
|
}
|
||||||
|
|
||||||
|
mainbox {
|
||||||
|
orientation: vertical;
|
||||||
|
children: [ inputbar, message, listview, mode-switcher];
|
||||||
|
border: 1px;
|
||||||
|
border-color: @color0;
|
||||||
|
}
|
||||||
|
|
||||||
|
inputbar {
|
||||||
|
padding: 3em;
|
||||||
|
background-image: url("~/.config/rofi/images/header-1.jpg", width);
|
||||||
|
children: [prompt,entry];
|
||||||
|
spacing: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
prompt {
|
||||||
|
background-color: @color1;
|
||||||
|
padding: 15px;
|
||||||
|
text-color: @bg;
|
||||||
|
border-radius: 50% 0 0 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
entry {
|
||||||
|
padding: 15px 30px 15px 15px;
|
||||||
|
border: 0px;
|
||||||
|
border-radius: 0 100% 100% 0;
|
||||||
|
background-color: @bg;
|
||||||
|
text-color: @fg;
|
||||||
|
}
|
||||||
|
|
||||||
|
message {
|
||||||
|
padding: 0 0 1em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
textbox {
|
||||||
|
background-color: @color1;
|
||||||
|
padding: 0 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
listview {
|
||||||
|
margin: 0.5em 0 0 0;
|
||||||
|
lines: 6;
|
||||||
|
}
|
||||||
|
|
||||||
|
element {
|
||||||
|
padding: 0.5em;
|
||||||
|
color: @fg;
|
||||||
|
}
|
||||||
|
|
||||||
|
element selected.normal {
|
||||||
|
background-color: @bg-alt;
|
||||||
|
}
|
||||||
|
|
||||||
|
element-icon {
|
||||||
|
padding: 0 0.5em 0 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
mode-switcher {
|
||||||
|
padding: 0 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
margin: 0.3em 0 0.5em;
|
||||||
|
padding: 0.3em;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
button selected {
|
||||||
|
background-color: @color5;
|
||||||
|
text-color: @color0;
|
||||||
|
}
|
|
@ -17,15 +17,15 @@
|
||||||
"niri/window"
|
"niri/window"
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"network",
|
//"network",
|
||||||
"cpu",
|
//"cpu",
|
||||||
"memory",
|
//"memory",
|
||||||
"battery",
|
"battery",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
"custom/cliphist",
|
//"custom/cliphist",
|
||||||
"tray",
|
"tray",
|
||||||
"clock",
|
"clock"
|
||||||
"custom/exit"
|
//"custom/exit"
|
||||||
],
|
],
|
||||||
"disable-scroll": true,
|
"disable-scroll": true,
|
||||||
"tray": {
|
"tray": {
|
||||||
|
@ -34,7 +34,9 @@
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
},
|
||||||
"clock": {
|
"clock": {
|
||||||
"format": "{:%a %d %b %H:%M}",
|
//"format": "{:%a %d %b %H:%M}",
|
||||||
|
"format": "{:L%a %d %b %R}",
|
||||||
|
"locale": "fr_FR.utf8",
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
},
|
||||||
"cpu": {
|
"cpu": {
|
||||||
|
@ -54,7 +56,7 @@
|
||||||
"on-click": "kitty btop"
|
"on-click": "kitty btop"
|
||||||
},
|
},
|
||||||
"battery": {
|
"battery": {
|
||||||
"format": "{icon} {capacity}%",
|
"format": "{icon} {capacity}%",
|
||||||
"format-icons": [
|
"format-icons": [
|
||||||
"",
|
"",
|
||||||
"",
|
"",
|
||||||
|
@ -79,8 +81,8 @@
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
"scroll-step": 1,
|
"scroll-step": 1,
|
||||||
"max-volume": 100,
|
"max-volume": 100,
|
||||||
"format": " {volume}%",
|
"format": " {volume}%",
|
||||||
"format-bluetooth": " {volume}%",
|
"format-bluetooth": " {volume}%",
|
||||||
"nospacing": 1,
|
"nospacing": 1,
|
||||||
"on-click": "pavucontrol",
|
"on-click": "pavucontrol",
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
|
@ -130,5 +132,5 @@
|
||||||
"on-click-right": "sleep 0.1 && ~/Code/nixos-config/scripts/cliphist.sh d",
|
"on-click-right": "sleep 0.1 && ~/Code/nixos-config/scripts/cliphist.sh d",
|
||||||
"on-click-middle": "sleep 0.1 && ~/Code/nixos-config/scripts/cliphist.sh w",
|
"on-click-middle": "sleep 0.1 && ~/Code/nixos-config/scripts/cliphist.sh w",
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
* {
|
* {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
font-family: "Iosevka Nerd Font Mono";
|
font-family: "Inter Display Medium";
|
||||||
}
|
}
|
||||||
window#waybar {
|
window#waybar {
|
||||||
all: unset;
|
all: unset;
|
||||||
|
@ -33,15 +33,16 @@ window#waybar {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
.modules-left {
|
.modules-left {
|
||||||
margin-left: 9px;
|
margin-left: 0px;
|
||||||
}
|
}
|
||||||
.modules-right {
|
.modules-right {
|
||||||
margin-right: 9px;
|
margin-right: 0px;
|
||||||
}
|
}
|
||||||
tooltip {
|
tooltip {
|
||||||
background: @base;
|
background: @base;
|
||||||
color: @text;
|
color: @text;
|
||||||
}
|
}
|
||||||
|
#custom-appmenu,
|
||||||
#custom-wallpaper,
|
#custom-wallpaper,
|
||||||
#clock,
|
#clock,
|
||||||
#bluetooth,
|
#bluetooth,
|
||||||
|
@ -56,11 +57,12 @@ tooltip {
|
||||||
#window,
|
#window,
|
||||||
#workspaces {
|
#workspaces {
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background: alpha(@base, 0.75);
|
background: @base;
|
||||||
box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.75);
|
box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.75);
|
||||||
color: @text;
|
color: @text;
|
||||||
padding: 2px 8px;
|
padding: 2px 8px;
|
||||||
margin: 3px;
|
margin: 3px;
|
||||||
|
min-width: 20px;
|
||||||
}
|
}
|
||||||
#custom-wallpaper:hover,
|
#custom-wallpaper:hover,
|
||||||
#clock:hover,
|
#clock:hover,
|
||||||
|
@ -76,7 +78,7 @@ tooltip {
|
||||||
#window:hover,
|
#window:hover,
|
||||||
#workspaces:hover {
|
#workspaces:hover {
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
background: @base;
|
background: alpha(@base, 0.85);
|
||||||
}
|
}
|
||||||
|
|
||||||
#network {
|
#network {
|
||||||
|
@ -89,7 +91,7 @@ tooltip {
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
padding: 1px;
|
padding: 0px;
|
||||||
margin: 1px;
|
margin: 1px;
|
||||||
color: @text;
|
color: @text;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
|
|
@ -13,7 +13,7 @@ if [[ $# -lt 1 ]] || [[ ! -d $1 ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Edit below to control the images transition
|
# Edit below to control the images transition
|
||||||
export SWWW_TRANSITION_FPS=120
|
export SWWW_TRANSITION_FPS=240
|
||||||
export SWWW_TRANSITION_DURATION=1
|
export SWWW_TRANSITION_DURATION=1
|
||||||
export SWWW_TRANSITION_STEP=2
|
export SWWW_TRANSITION_STEP=2
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue