Add more dotfiles
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
menuify = pkgs.substituteAll {
|
||||
src = ./menuify.sh;
|
||||
isExecutable = true;
|
||||
dir = "bin";
|
||||
name = "menuify";
|
||||
|
||||
bash = pkgs.bash;
|
||||
dmenu = pkgs.dmenu;
|
||||
gawk = pkgs.gawk;
|
||||
coreutils = pkgs.coreutils;
|
||||
};
|
||||
in
|
||||
{
|
||||
services.dunst = {
|
||||
enable = true;
|
||||
settings = {
|
||||
global = {
|
||||
monitor = 0;
|
||||
follow = "none";
|
||||
enable_posix_regex = true;
|
||||
width = "(0, 300)";
|
||||
height = "(0, 200)";
|
||||
notification_limit = 5;
|
||||
origin = "bottom-right";
|
||||
offset = "20x20";
|
||||
icon_corner_radius = 18;
|
||||
frame_width = 3;
|
||||
gap_size = 5;
|
||||
padding = 12;
|
||||
horizontal_padding = 12;
|
||||
idle_threshold = 60;
|
||||
font = "Agave Nerd Font 12";
|
||||
format = "<span font='10.5' font_weight='bold' size='x-large'>%s</span>\\n%b";
|
||||
show_age_threshold = 0;
|
||||
dmenu = "${menuify}/bin/menuify";
|
||||
browser = "xdg-open";
|
||||
corner_radius = 18;
|
||||
mouse_left_click = "do_action, close_current";
|
||||
mouse_middle_click = "close_current";
|
||||
mouse_right_click = "context";
|
||||
};
|
||||
|
||||
urgency_low = {
|
||||
frame_color = "#877d91";
|
||||
highlight = "#877d91";
|
||||
foreground = "#fff";
|
||||
background = "#2f2f4a";
|
||||
fullscreen = "pushback";
|
||||
history_ignore = true;
|
||||
};
|
||||
|
||||
urgency_normal = {
|
||||
frame_color = "#CF9FFF";
|
||||
highlight = "#CF9FFF";
|
||||
foreground = "#fff";
|
||||
background = "#2f2f4a";
|
||||
fullscreen = "delay";
|
||||
};
|
||||
|
||||
urgency_critical = {
|
||||
frame_color = "#fa8290";
|
||||
highlight = "#fa8290";
|
||||
foreground = "#fff";
|
||||
background = "#2f2f4a";
|
||||
fullscreen = "show";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
#!@bash@/bin/bash
|
||||
|
||||
list=""
|
||||
|
||||
declare -A commands_map
|
||||
|
||||
mapfile -t lines
|
||||
|
||||
for line in "${lines[@]}"; do
|
||||
id=$(@coreutils@/bin/echo "$line" | @gawk@/bin/awk -F '[ #()]' '{print $2}')
|
||||
list+="$id"$'\n'
|
||||
commands_map["$id"]="$line"
|
||||
done
|
||||
|
||||
selected=$(@coreutils@/bin/printf "$list" | @dmenu@/bin/dmenu -i -p "Select what to do:" -nf '#e0af68' -nb '#1f2335' -sb '#414868' -sf '#ffffff' -fn 'HurmitNerdFont-16')
|
||||
|
||||
if [ -n "$selected" ]; then
|
||||
command_to_run=${commands_map["$selected"]}
|
||||
@coreutils@/bin/printf "$command_to_run"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user