Reformat more things
This commit is contained in:
parent
1e9f79c731
commit
17d7633b5e
15 changed files with 207 additions and 116 deletions
120
common/home-manager/wayland/rofi/config.rasi
Normal file
120
common/home-manager/wayland/rofi/config.rasi
Normal file
|
|
@ -0,0 +1,120 @@
|
|||
configuration {
|
||||
cycle: false;
|
||||
//modi: "drun,run,window:~/.config/rofi/window.sh,workspace:~/.config/rofi/workspace.sh";
|
||||
modi: "drun,run";
|
||||
font: "JetBrainsMono Nerd Font 14";
|
||||
location: 0;
|
||||
terminal: "alacritty";
|
||||
|
||||
show-icons: true;
|
||||
run-show-icons: false;
|
||||
hide-scrollbar: true;
|
||||
sidebar-mode: true;
|
||||
|
||||
drun-display-format: "{name}";
|
||||
display-drun: " Apps ";
|
||||
display-run: " Run ";
|
||||
display-window: " Window ";
|
||||
display-workspace: " Workspace ";
|
||||
|
||||
run {
|
||||
show-icons: false;
|
||||
}
|
||||
}
|
||||
|
||||
@theme "tokyonight"
|
||||
|
||||
element-text, element-icon, mode-switcher {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
|
||||
window {
|
||||
// Using percentages here breaks literally everything for some reason
|
||||
height: 550px;
|
||||
width: 50%;
|
||||
/* border: 3px; */
|
||||
border-color: @border-col;
|
||||
background-color: @bg-col;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
children: [prompt,entry];
|
||||
background-color: @selected-col;
|
||||
border-radius: 12px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
prompt {
|
||||
background-color: @blue;
|
||||
padding: 6px;
|
||||
text-color: @bg-col;
|
||||
border-radius: 8px;
|
||||
margin: 20px 0px 20px 20px;
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
expand: false;
|
||||
str: ":";
|
||||
}
|
||||
|
||||
entry {
|
||||
padding: 6px;
|
||||
margin: 20px 0px 4px 10px;
|
||||
text-color: @fg-col;
|
||||
background-color: @selected-col;
|
||||
}
|
||||
|
||||
listview {
|
||||
padding: 10 10 0;
|
||||
margin: 10 10 0 10;
|
||||
columns: 5;
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
element {
|
||||
padding: 15 10 15;
|
||||
background-color: @bg-col;
|
||||
text-color: @fg-col;
|
||||
orientation: vertical;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
size: 56px;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: @selected-col;
|
||||
text-color: @blue ;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
element-text {
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
expand: true;
|
||||
font: "JetBrainsMono Nerd Font Medium 10";
|
||||
}
|
||||
|
||||
mode-switcher {
|
||||
spacing: 0;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 10px;
|
||||
background-color: @bg-col;
|
||||
text-color: @empty;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
button selected {
|
||||
background-color: @bg-col;
|
||||
text-color: @blue;
|
||||
}
|
||||
16
common/home-manager/wayland/rofi/tokyonight.rasi
Normal file
16
common/home-manager/wayland/rofi/tokyonight.rasi
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
* {
|
||||
bg-col: #1a1b26;
|
||||
bg-col-light: #272834;
|
||||
border-col: #7aa2f7;
|
||||
selected-col: #282e49;
|
||||
blue: #7bc5e4;
|
||||
fg-col: #abb2bf;
|
||||
fg-col2: #e06c75;
|
||||
grey: #565c64;
|
||||
width: 600;
|
||||
selected: #caaa6a;
|
||||
red: #ce7284;
|
||||
green: #7dc5a0;
|
||||
empty: #5b668e;
|
||||
inactive: #4a5374;
|
||||
}
|
||||
11
common/home-manager/wayland/rofi/window.sh
Executable file
11
common/home-manager/wayland/rofi/window.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ $# -ne 0 ]; then
|
||||
id=echo "$@" | cut -d ' ' -f1
|
||||
swaymsg "[con_id=$id]" focus
|
||||
exit 0
|
||||
fi
|
||||
|
||||
swaymsg -t get_tree |
|
||||
jq -r '.nodes[].nodes[] | if .nodes then [recurse(.nodes[])] else [] end + .floating_nodes |
|
||||
.[] | select(.nodes==[]) | ((.id | tostring) + " " + .name)'
|
||||
9
common/home-manager/wayland/rofi/workspace.sh
Executable file
9
common/home-manager/wayland/rofi/workspace.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ $# -ne 0 ]; then
|
||||
swaymsg workspace "$@"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
swaymsg -t get_workspaces |
|
||||
jq -r '.[].name'
|
||||
Loading…
Add table
Add a link
Reference in a new issue