move to backup
This commit is contained in:
parent
294dc66380
commit
a0e3d792a9
182 changed files with 156 additions and 103 deletions
66
bak/modules/wm/fuzzel/default.nix
Normal file
66
bak/modules/wm/fuzzel/default.nix
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
xdg.configFile."fuzzel/bin" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dev/nix-config/modules/wm/fuzzel/scripts";
|
||||
};
|
||||
|
||||
xdg.desktopEntries = {
|
||||
fuzzel-ssh = {
|
||||
type = "Application";
|
||||
name = "SSH";
|
||||
exec = "${config.home.homeDirectory}/.config/fuzzel/bin/fuzzel-ssh.sh";
|
||||
icon = "ksmserver";
|
||||
};
|
||||
fuzzel-cliphist = {
|
||||
type = "Application";
|
||||
name = "Clipboard History";
|
||||
exec = "${config.home.homeDirectory}/.config/fuzzel/bin/fuzzel-cliphist.sh";
|
||||
icon = "xclipboard";
|
||||
};
|
||||
open-project = {
|
||||
type = "Application";
|
||||
name = "Open Project";
|
||||
exec = "${config.home.homeDirectory}/.config/fuzzel/bin/fuzzel-projects.sh";
|
||||
icon = "multitasking-view";
|
||||
};
|
||||
};
|
||||
|
||||
programs.fuzzel = {
|
||||
enable = true;
|
||||
settings = {
|
||||
main = {
|
||||
terminal = "${pkgs.wezterm}/bin/wezterm start -- ";
|
||||
layer = "overlay";
|
||||
font = "VictorMono Nerd Font:weight=300:size=15";
|
||||
use-bold = true;
|
||||
icon-theme = "Reversal-dark";
|
||||
width = 85;
|
||||
tabs = 2;
|
||||
minimal-lines = true;
|
||||
lines = 10;
|
||||
vertical-pad = 20;
|
||||
inner-pad = 25;
|
||||
image-size-ratio = 1;
|
||||
prompt = "Open: ";
|
||||
};
|
||||
colors = {
|
||||
background = "0f0b15f5";
|
||||
text = "ffffffff";
|
||||
prompt = "807c9fff";
|
||||
input = "ffffffff";
|
||||
match = "c57fafff";
|
||||
selection = "331531ff";
|
||||
selection-match = "ffffffff";
|
||||
selection-text = "c57fafff";
|
||||
counter = "807c9fff";
|
||||
border = "331531ff";
|
||||
};
|
||||
border = {
|
||||
width = 2;
|
||||
radius = 10;
|
||||
selection-radius = 5;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
3
bak/modules/wm/fuzzel/scripts/fuzzel-cliphist.sh
Executable file
3
bak/modules/wm/fuzzel/scripts/fuzzel-cliphist.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
cliphist list | fuzzel --dmenu --prompt "Copy: " | cliphist decode | awk '{$1=$1};1' | head -c -1 | wl-copy
|
||||
17
bak/modules/wm/fuzzel/scripts/fuzzel-projects.sh
Executable file
17
bak/modules/wm/fuzzel/scripts/fuzzel-projects.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
projects=$(fd -d=1 -t=d . ~/dev)
|
||||
projects_with_names=()
|
||||
|
||||
for project in ${projects[*]}; do
|
||||
projects_with_names+=("$(basename $project)\t$project")
|
||||
done
|
||||
|
||||
selected=$(printf "$projects_with_names" | fuzzel --dmenu --with-nth=1 --accept-nth=2 --prompt "Work on: ")
|
||||
session_name=$(basename "$selected")
|
||||
|
||||
if [ "$selected" != "" ]; then
|
||||
# niri msg action focus-workspace "code"
|
||||
# zen-beta &
|
||||
ghostty -e zellij attach "$session_name" --create
|
||||
fi
|
||||
8
bak/modules/wm/fuzzel/scripts/fuzzel-ssh.sh
Executable file
8
bak/modules/wm/fuzzel/scripts/fuzzel-ssh.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
fish_executable="/run/current-system/sw/bin/fish"
|
||||
selected=$(cat ~/.ssh/config | grep "Host " | cut -d " " -f 2 | sort | tail -n +2 | fuzzel --dmenu --prompt "Connect to: ")
|
||||
|
||||
if [ "$selected" != "" ]; then
|
||||
ghostty -e "$fish_executable" -c "ssh $selected"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue