Added
This commit is contained in:
29
programs/wm/common/rofi/configs/config.ini
Normal file
29
programs/wm/common/rofi/configs/config.ini
Normal file
@@ -0,0 +1,29 @@
|
||||
[dmenu]
|
||||
dmenu_command = rofi -theme ~/.config/rofi/network.rasi
|
||||
active_chars = ==
|
||||
highlight = True
|
||||
highlight_fg =
|
||||
highlight_bg =
|
||||
highlight_bold = True
|
||||
compact = False
|
||||
pinentry =
|
||||
wifi_icons =
|
||||
format = {name:<{max_len_name}s} {sec:<{max_len_sec}s} {icon:>4}
|
||||
list_saved = False
|
||||
prompt = Networks
|
||||
|
||||
[dmenu_passphrase]
|
||||
obscure = False
|
||||
obscure_color = #222222
|
||||
|
||||
[pinentry]
|
||||
description = Get network password
|
||||
prompt = Password:
|
||||
|
||||
[editor]
|
||||
terminal = kitty
|
||||
gui_if_available = True
|
||||
gui = nm-connection-editor
|
||||
|
||||
[nmdm]
|
||||
rescan_delay = 5
|
||||
138
programs/wm/common/rofi/configs/network.rasi
Normal file
138
programs/wm/common/rofi/configs/network.rasi
Normal file
@@ -0,0 +1,138 @@
|
||||
* {
|
||||
rosewater: #f5e0dc;
|
||||
flamingo: #f2cdcd;
|
||||
pink: #f5c2e7;
|
||||
mauve: #cba6f7;
|
||||
red: #f38ba8;
|
||||
maroon: #eba0ac;
|
||||
peach: #fab387;
|
||||
yellow: #f9e2af;
|
||||
green: #a6e3a1;
|
||||
teal: #94e2d5;
|
||||
sky: #89dceb;
|
||||
sapphire: #74c7ec;
|
||||
blue: #89b4fa;
|
||||
lavender: #b4befe;
|
||||
text: #cdd6f4;
|
||||
subtext1: #bac2de;
|
||||
subtext0: #a6adc8;
|
||||
overlay2: #9399b2;
|
||||
overlay1: #7f849c;
|
||||
overlay0: #6c7086;
|
||||
surface2: #585b70;
|
||||
surface1: #45475a;
|
||||
surface0: #313244;
|
||||
base: #1e1e2e;
|
||||
mantle: #181825;
|
||||
crust: #11111b;
|
||||
}
|
||||
* {
|
||||
background-color: transparent;
|
||||
text-color: #cdd6f4;
|
||||
font: "JetBrainsMono Nerd Font 12";
|
||||
}
|
||||
|
||||
window {
|
||||
width: 600px;
|
||||
background-color: @base;
|
||||
border: 2px solid;
|
||||
border-color: @sapphire;
|
||||
border-radius: 12px;
|
||||
padding: 20px;
|
||||
|
||||
/* Center on screen */
|
||||
location: center;
|
||||
anchor: center;
|
||||
x-offset: 0;
|
||||
y-offset: 0;
|
||||
|
||||
background-image: url("~/.config/rofi/smoking_girl.png", both);
|
||||
}
|
||||
|
||||
mainbox {
|
||||
spacing: 15px;
|
||||
children: [ "inputbar", "message", "listview" ];
|
||||
}
|
||||
|
||||
inputbar {
|
||||
padding: 12px;
|
||||
border-radius: 8px;
|
||||
background-color: @mantle;
|
||||
children: [ "prompt", "entry" ];
|
||||
spacing: 10px;
|
||||
}
|
||||
|
||||
prompt {
|
||||
text-color: @sky;
|
||||
font: "JetBrainsMono Nerd Font Bold 13";
|
||||
}
|
||||
|
||||
entry {
|
||||
placeholder: "Search networks...";
|
||||
placeholder-color: @surface2;
|
||||
text-color: @text;
|
||||
}
|
||||
|
||||
message {
|
||||
padding: 10px;
|
||||
border-radius: 8px;
|
||||
background-color: @mantle;
|
||||
text-color: @text;
|
||||
}
|
||||
|
||||
listview {
|
||||
lines: 10;
|
||||
scrollbar: true;
|
||||
spacing: 5px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
scrollbar {
|
||||
width: 4px;
|
||||
handle-width: 4px;
|
||||
handle-color: @blue;
|
||||
border-radius: 4px;
|
||||
background-color: @mantle;
|
||||
}
|
||||
|
||||
element {
|
||||
padding: 12px 15px;
|
||||
border-radius: 2px;
|
||||
background-color: @base;
|
||||
text-color: @text;
|
||||
spacing: 12px;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: @blue;
|
||||
border: 2px solid;
|
||||
border-color: @teal;
|
||||
text-color: @mantle;
|
||||
}
|
||||
|
||||
element-text {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
size: 20px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* Active/Connected network highlight */
|
||||
element selected.active {
|
||||
background-color: @sapphire;
|
||||
border-color: @sky;
|
||||
}
|
||||
|
||||
/* Urgent (disconnected/error) state */
|
||||
element.urgent {
|
||||
background-color: @red;
|
||||
}
|
||||
|
||||
element selected.urgent {
|
||||
background-color: @red;
|
||||
border-color: @peach;
|
||||
}
|
||||
BIN
programs/wm/common/rofi/configs/smoking_girl.png
Normal file
BIN
programs/wm/common/rofi/configs/smoking_girl.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.6 MiB |
@@ -7,6 +7,7 @@
|
||||
home.packages = with pkgs; [
|
||||
rofi-power-menu
|
||||
rofi-calc
|
||||
networkmanager_dmenu
|
||||
];
|
||||
|
||||
programs.rofi = {
|
||||
@@ -25,4 +26,8 @@
|
||||
# copy the scripts directory recursively
|
||||
recursive = true;
|
||||
};
|
||||
|
||||
home.file.".config/networkmanager_dmenu/config.ini" = {
|
||||
source = ./configs/config.ini;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -58,19 +58,19 @@
|
||||
rotate = 0;
|
||||
|
||||
# Ethernet
|
||||
format-ethernet = "ᯤ";
|
||||
format-ethernet = "⇵{bandwidthTotalBits}";
|
||||
tooltip-format = "Network: <big><b>{essid}</b></big>\nSignal strength: <b>{signaldBm}dBm ({signalStrength}%)</b>\nFrequency: <b>{frequency}MHz</b>\nInterface: <b>{ifname}</b>\nIP: <b>{ipaddr}/{cidr}</b>\nGateway: <b>{gwaddr}</b>\nNetmask: <b>{netmask}</b>\nCurrent : <b>{bandwidthTotalBits}</b>\nUp : <b>{bandwidthUpBits}</b>\nDown : <b>{bandwidthDownBits}</b>";
|
||||
format-linked = " {ifname} (No IP)";
|
||||
format-disconnected = " ";
|
||||
tooltip-format-disconnected = "Disconnected";
|
||||
on-click = "/usr/local/bin/ags -t ControlPanel";
|
||||
on-click = "networkmanager_dmenu";
|
||||
interval = 2;
|
||||
};
|
||||
|
||||
memory = {
|
||||
interval = 1;
|
||||
rotate = 270;
|
||||
format = "{icon}";
|
||||
#rotate = 270;
|
||||
format = "{icon} {percentage}%";
|
||||
format-icons = [
|
||||
""
|
||||
""
|
||||
@@ -87,8 +87,8 @@
|
||||
|
||||
cpu = {
|
||||
interval = 1;
|
||||
format = "{icon}";
|
||||
rotate = 270;
|
||||
format = "{icon} {usage}%";
|
||||
#rotate = 270;
|
||||
format-icons = [
|
||||
""
|
||||
""
|
||||
@@ -103,14 +103,14 @@
|
||||
};
|
||||
|
||||
temperature = {
|
||||
format = "{temperatureC}°C ";
|
||||
format = " {temperatureC}°C";
|
||||
thermal-zone = 0;
|
||||
hwmon-path = "/sys/class/hwmon/hwmon0/temp1_input";
|
||||
hwmon-path = "/sys/class/thermal/thermal_zone1/temp";
|
||||
critical-threshold = 80;
|
||||
};
|
||||
|
||||
disk = {
|
||||
format = "{percentage_free}% ";
|
||||
format = " {percentage_free}%";
|
||||
tooltip = true;
|
||||
tooltip-format = "{free} / {total} ({percentage_free})";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user