add scripts
This commit is contained in:
parent
e8be34d9c2
commit
e871ce10c7
3 changed files with 58 additions and 9 deletions
55
home.nix
55
home.nix
|
|
@ -9,13 +9,37 @@
|
||||||
home.homeDirectory = "/home/tristan";
|
home.homeDirectory = "/home/tristan";
|
||||||
|
|
||||||
xdg.userDirs.enable = true;
|
xdg.userDirs.enable = true;
|
||||||
|
xdg.mimeApps = {
|
||||||
|
enable = true;
|
||||||
|
associations.added = {
|
||||||
|
"inode/directory" = "lf.desktop;vscodium.desktop;pcmanfm.desktop";
|
||||||
|
};
|
||||||
|
defaultApplications = {
|
||||||
|
"inode/directory" = "lf.desktop";
|
||||||
|
"text/html" = "brave-browser.desktop";
|
||||||
|
"x-scheme-handler/http" = "brave-browser.desktop";
|
||||||
|
"x-scheme-handler/https" = "brave-browser.desktop";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
exa
|
# script requirements
|
||||||
libnotify
|
libnotify
|
||||||
du-dust
|
|
||||||
playerctl
|
playerctl
|
||||||
|
grim
|
||||||
|
wl-clipboard
|
||||||
|
slurp
|
||||||
|
chafa
|
||||||
|
wofi
|
||||||
|
|
||||||
|
# utils
|
||||||
|
exa
|
||||||
|
du-dust
|
||||||
|
htop
|
||||||
|
imv
|
||||||
|
libsixel
|
||||||
|
|
||||||
|
# apps
|
||||||
gimp
|
gimp
|
||||||
logseq
|
logseq
|
||||||
quickemu
|
quickemu
|
||||||
|
|
@ -96,10 +120,26 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.mako.enable = true;
|
services.fnott = {
|
||||||
|
enable = true;
|
||||||
|
# https://codeberg.org/dnkl/fnott/src/branch/master/fnott.ini
|
||||||
|
settings = {
|
||||||
|
main = {
|
||||||
|
selection-helper = "wofi --show dmenu";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs.ncmpcpp.enable = true;
|
programs.ncmpcpp = {
|
||||||
programs.ncmpcpp.settings.mpd_host = "music.local";
|
enable = true;
|
||||||
|
settings.mpd_host = "music.local";
|
||||||
|
bindings = [
|
||||||
|
{ key = "j"; command = "scroll_down"; }
|
||||||
|
{ key = "k"; command = "scroll_up"; }
|
||||||
|
{ key = "J"; command = [ "select_item" "scroll_down" ]; }
|
||||||
|
{ key = "K"; command = [ "select_item" "scroll_up" ]; }
|
||||||
|
];
|
||||||
|
};
|
||||||
services.mpd-mpris.enable = true;
|
services.mpd-mpris.enable = true;
|
||||||
services.mpd-mpris.mpd = {
|
services.mpd-mpris.mpd = {
|
||||||
host = "music.local";
|
host = "music.local";
|
||||||
|
|
@ -225,15 +265,16 @@
|
||||||
"$HOME/.local/scripts"
|
"$HOME/.local/scripts"
|
||||||
];
|
];
|
||||||
home.file.".local/scripts" = {
|
home.file.".local/scripts" = {
|
||||||
enable = true;
|
|
||||||
source = ./scripts;
|
source = ./scripts;
|
||||||
executable = true;
|
executable = true;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
home.file.".config/hypr" = {
|
home.file.".config/hypr" = {
|
||||||
enable = true;
|
|
||||||
source = ./hyprland;
|
source = ./hyprland;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
|
home.file.".config/wofi/config".text = ''
|
||||||
|
term=foot
|
||||||
|
'';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -81,8 +81,7 @@ bind=SUPER,O,exec,pcmanfm
|
||||||
bind=SUPER,y,exec,foot -e ytui
|
bind=SUPER,y,exec,foot -e ytui
|
||||||
bind=SUPER,Z,exec,swaylock -f
|
bind=SUPER,Z,exec,swaylock -f
|
||||||
bind=SUPER,T,exec,notify-send "$(date)"
|
bind=SUPER,T,exec,notify-send "$(date)"
|
||||||
bind=SUPER,s,exec,screenshotSectionClipboard
|
bind=SUPER_SHIFT,S,exec,~/.local/scripts/screenshot
|
||||||
bind=SUPER_SHIFT,S,exec,screenshotSection
|
|
||||||
bind=SUPERCTRL_SHIFT,S,exec,qrcode.sh
|
bind=SUPERCTRL_SHIFT,S,exec,qrcode.sh
|
||||||
bind=SUPER,p,exec,hyprpicker | wl-copy; wl-paste | xargs notify-send Copied
|
bind=SUPER,p,exec,hyprpicker | wl-copy; wl-paste | xargs notify-send Copied
|
||||||
bind=SUPER,slash,exec,brave
|
bind=SUPER,slash,exec,brave
|
||||||
|
|
|
||||||
9
scripts/screenshot
Executable file
9
scripts/screenshot
Executable file
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
OUT_DIR=${GRIM_DEFAULT_DIR:-~/Pictures/Screenshots/}
|
||||||
|
mkdir -p "$OUT_DIR"
|
||||||
|
|
||||||
|
grim -g "$(slurp -o)" - | wl-copy
|
||||||
|
notify-send "Screenshot Taken" "to the clipboard"
|
||||||
|
wl-paste > $OUT_DIR/$(date +"%Y-%m-%dT%H:%M:%SZ").png
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue