Refactor config to merge modules from platforms

This commit is contained in:
Kiana Sheibani 2023-01-03 21:17:49 -05:00
parent a3eecd7007
commit 0c4ce3e936
32 changed files with 95 additions and 116 deletions

View file

@ -0,0 +1,113 @@
configuration {
cycle: false;
modi: "drun,run,window:~/.config/rofi/window.sh,workspace:~/.config/rofi/workspace.sh";
font: "JetBrainsMono Nerd Font 14";
location: 0;
terminal: "alacritty";
show-icons: true;
hide-scrollbar: true;
drun-display-format: "{name}";
display-drun: "  Apps ";
display-run: "  Run ";
display-window: " 﩯 Window ";
display-workspace: "  Workspace ";
}
@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;
}

View file

@ -0,0 +1,6 @@
@import "config.rasi"
configuration {
show-icons: false;
}

View 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;
}

View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
if [ $# -ne 0 ]; then
id=$(echo "$@" | cut -d ' ' -f1)
swaymsg "[con_id=$id]" focus
# Hack to get around weird bug
pkill rofi
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)'

View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
if [ $# -ne 0 ]; then
swaymsg workspace "$@"
# Hack to get around weird bug
pkill rofi
exit 0
fi
swaymsg -t get_workspaces |
jq -r '.[].name'