Reformat more things
This commit is contained in:
parent
1e9f79c731
commit
17d7633b5e
|
@ -48,6 +48,7 @@ nixpkgs, # The flake's input version of nixpkgs
|
|||
(nerdfonts.override { fonts = [ "UbuntuMono" "JetBrainsMono" ]; })
|
||||
meslo-lgs-nf
|
||||
victor-mono
|
||||
ubuntu_font_family
|
||||
];
|
||||
|
||||
fontconfig = {
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
{
|
||||
programs.starship.enable = true;
|
||||
|
||||
# This config is intended to make starship look like Tide,
|
||||
# since that was the previous prompt I used and I think it looks better.
|
||||
|
||||
programs.starship.settings = {
|
||||
|
||||
format = "$directory$nix_shell$all$fill$cmd_duration$status$jobs$time$line_break$character";
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
imports = [
|
||||
./sway.nix
|
||||
./swaylock.nix
|
||||
./wofi.nix
|
||||
./mako.nix
|
||||
./rofi.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
margin = "5";
|
||||
padding = "5,10";
|
||||
borderSize = 2;
|
||||
borderColor = "#04c2e8";
|
||||
borderColor = "#7bc5e4";
|
||||
borderRadius = 5;
|
||||
defaultTimeout = 10000;
|
||||
|
||||
|
@ -20,19 +20,23 @@
|
|||
[urgency=low]
|
||||
format=<i>%s</i>\n%b
|
||||
background-color=#111111c0
|
||||
border-color=#ffffff
|
||||
border-color=#787c99
|
||||
border-size=1
|
||||
|
||||
[urgency=high]
|
||||
background-color=#1e0909d0
|
||||
border-color=#bf616a
|
||||
border-size=4
|
||||
border-color=#ce7284
|
||||
border-size=3
|
||||
default-timeout=0
|
||||
ignore-timeout=1
|
||||
|
||||
[app-name=discord]
|
||||
format=<b>%s</b>\n\n%b
|
||||
border-color=#7da6ff
|
||||
|
||||
[app-name=discordcanary]
|
||||
format=<b>%s</b>\n%b
|
||||
border-color=#88c0d0
|
||||
format=<b>%s</b>\n\n%b
|
||||
border-color=#7da6ff
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
7
common/home-manager/wayland/rofi.nix
Normal file
7
common/home-manager/wayland/rofi.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
programs.rofi.enable = true;
|
||||
programs.rofi.package = pkgs.rofi-wayland;
|
||||
|
||||
xdg.configFile.rofi.source = ./rofi;
|
||||
}
|
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'
|
|
@ -10,12 +10,12 @@ in {
|
|||
wrapperFeatures.gtk = true;
|
||||
config = {
|
||||
inherit modifier terminal;
|
||||
menu = "wofi --show drun";
|
||||
menu = "rofi -show drun";
|
||||
|
||||
fonts = {
|
||||
names = [ "NotoSans Nerd Font" ];
|
||||
names = [ "JetBrainsMono Nerd Font" ];
|
||||
style = "Medium";
|
||||
size = 12.0;
|
||||
size = 10.0;
|
||||
};
|
||||
|
||||
bars = [{ command = "waybar"; }];
|
||||
|
@ -75,8 +75,12 @@ in {
|
|||
# Grim screenshot file name
|
||||
filename = ''~/Pictures/$(date +%Y-%m-%d_%H-%M-%S).png'';
|
||||
in pkgs.lib.mkOptionDefault {
|
||||
"${modifier}+Shift+d" = ''exec wofi --show run'';
|
||||
"${modifier}+Shift+m" = ''exec swaylock'';
|
||||
"${modifier}+Shift+d" = "exec rofi -show run";
|
||||
# "${modifier}+w" = "exec rofi -show window";
|
||||
# "${modifier}+Shift+w" = "exec rofi -show workspace";
|
||||
|
||||
"${modifier}+t" = "layout tabbed";
|
||||
"${modifier}+Shift+m" = "exec swaylock";
|
||||
|
||||
# Screenshot
|
||||
"Print" = ''exec grim ${filename}'';
|
||||
|
@ -102,18 +106,18 @@ in {
|
|||
This will end your Wayland session." -b "Yes, exit sway" "swaymsg exit" '';
|
||||
|
||||
# Workspaces
|
||||
"${modifier}+1" = "workspace 1:browser";
|
||||
"${modifier}+2" = "workspace 2:terminal";
|
||||
"${modifier}+3" = "workspace 3:code";
|
||||
"${modifier}+4" = "workspace 4:files";
|
||||
"${modifier}+5" = "workspace 5:discord";
|
||||
"${modifier}+6" = "workspace 6:settings";
|
||||
"${modifier}+Shift+1" = "move container to workspace 1:browser";
|
||||
"${modifier}+Shift+2" = "move container to workspace 2:terminal";
|
||||
"${modifier}+Shift+3" = "move container to workspace 3:code";
|
||||
"${modifier}+Shift+4" = "move container to workspace 4:files";
|
||||
"${modifier}+Shift+5" = "move container to workspace 5:discord";
|
||||
"${modifier}+Shift+6" = "move container to workspace 6:settings";
|
||||
"${modifier}+1" = "workspace 10:browser";
|
||||
"${modifier}+2" = "workspace 20:terminal";
|
||||
"${modifier}+3" = "workspace 30:code";
|
||||
"${modifier}+4" = "workspace 40:files";
|
||||
"${modifier}+5" = "workspace 50:discord";
|
||||
"${modifier}+6" = "workspace 60:settings";
|
||||
"${modifier}+Shift+1" = "move container to workspace 10:browser";
|
||||
"${modifier}+Shift+2" = "move container to workspace 20:terminal";
|
||||
"${modifier}+Shift+3" = "move container to workspace 30:code";
|
||||
"${modifier}+Shift+4" = "move container to workspace 40:files";
|
||||
"${modifier}+Shift+5" = "move container to workspace 50:discord";
|
||||
"${modifier}+Shift+6" = "move container to workspace 60:settings";
|
||||
};
|
||||
|
||||
output."*" = {
|
||||
|
|
|
@ -12,12 +12,12 @@
|
|||
indicator
|
||||
screenshots
|
||||
|
||||
font=Ubuntu
|
||||
text-color=ffffff
|
||||
font=UbuntuMono
|
||||
text-color=a9b1d6
|
||||
|
||||
color=00000000
|
||||
ring-color=151fea
|
||||
key-hl-color=6ecef4
|
||||
ring-color=7da6ff
|
||||
key-hl-color=7bc5e4
|
||||
|
||||
line-uses-inside
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
|||
|
||||
|
||||
clock
|
||||
datestr=%A, %e.%m.%Y
|
||||
datestr=%A, %Y-%m-%e
|
||||
|
||||
effect-scale=0.4
|
||||
effect-vignette=0.3:0.7
|
||||
|
|
|
@ -22,12 +22,12 @@ modules-right:
|
|||
format = "<big>{icon}</big>";
|
||||
|
||||
persistent_workspaces = {
|
||||
"1:browser" = [];
|
||||
"2:terminal" = [];
|
||||
"3:code" = [];
|
||||
"4:files" = [];
|
||||
"5:discord" = [];
|
||||
"6:settings" = [];
|
||||
"10:browser" = [];
|
||||
"20:terminal" = [];
|
||||
"30:code" = [];
|
||||
"40:files" = [];
|
||||
"50:discord" = [];
|
||||
"60:settings" = [];
|
||||
};
|
||||
|
||||
format-icons = {
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [ pkgs.wofi ];
|
||||
|
||||
xdg.configFile.wofi.source = ./wofi;
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
location=center
|
||||
width=50%
|
||||
height=55%
|
||||
columns=6
|
||||
image_size=64
|
||||
content_halign=center
|
||||
prompt=
|
||||
always_parse_args=true
|
||||
sort_order=alphabetical
|
||||
allow_images=true
|
||||
no_actions=true
|
||||
term=alacritty
|
|
@ -1,60 +0,0 @@
|
|||
window {
|
||||
padding: 15px;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
background-color: #1a1b26;
|
||||
color: #a9b1d6;
|
||||
font-size: 14px;
|
||||
font-family: "JetBrainsMono Nerd Font";
|
||||
}
|
||||
|
||||
#input {
|
||||
color: white;
|
||||
margin-bottom: 8px;
|
||||
border-radius: 0px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#inner-box {
|
||||
margin: 0px;
|
||||
margin-right: 10px;
|
||||
margin-left: 10px;
|
||||
border-top: 2px solid transparent;
|
||||
color: #;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#img {
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
#outer-box {
|
||||
margin: 0px;
|
||||
border: 0px solid;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#scroll {
|
||||
margin: 0px;
|
||||
border: 0px solid;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#entry {
|
||||
display: grid;
|
||||
padding: 1px;
|
||||
padding-left: 4px;
|
||||
padding-right: 4px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
image { display: block; }
|
||||
label { display: flex; }
|
||||
|
||||
#entry:selected {
|
||||
}
|
||||
|
||||
#text:selected {
|
||||
outline: 0px;
|
||||
border-radius: 0px;
|
||||
}
|
Loading…
Reference in a new issue