mirror of
https://git.gay/xqtc/nixos-config
synced 2025-05-03 11:07:29 +02:00
idk
This commit is contained in:
parent
f263534fb2
commit
3fe5b07d8d
3 changed files with 26 additions and 4 deletions
home
16
home/config-files/zellij-session-select.bash
Normal file
16
home/config-files/zellij-session-select.bash
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
# Parse and format Zellij session data, then pipe into fzf
|
||||
session=$(zellij ls | sed -r 's/\x1B\[[0-9;]*[mK]//g' | \
|
||||
awk -F'\\[' '{printf "%-20s [%s\n", $1, $2}' | \
|
||||
fzf --prompt="Select a Zellij session: " --with-nth=1.. --preview="echo {}" | \
|
||||
awk '{print $1}')
|
||||
|
||||
# Check if a session was selected
|
||||
if [[ -n "$session" ]]; then
|
||||
# Open the selected Zellij session
|
||||
zellij attach "$session"
|
||||
else
|
||||
echo "No session selected."
|
||||
fi
|
||||
|
|
@ -7,6 +7,7 @@
|
|||
}: let
|
||||
flameshot = pkgs.flameshot.overrideDerivation (old: {NIX_CFLAGS_COMPILE = "-DUSE_WAYLAND_GRIM";});
|
||||
maxfetch = pkgs.writeScriptBin "maxfetch" (builtins.readFile ../config-files/maxfetch.sh);
|
||||
zellij-ls = pkgs.writeScriptBin "zls" (builtins.readFile ../config-files/zellij-session-select.bash);
|
||||
startdwl = pkgs.writeScriptBin "startdwl" (builtins.readFile ../config-files/startdwl.sh);
|
||||
in {
|
||||
home.packages =
|
||||
|
@ -65,6 +66,7 @@ in {
|
|||
neofetch
|
||||
# uwufetch
|
||||
maxfetch
|
||||
zellij-ls
|
||||
startdwl
|
||||
btop
|
||||
iftop
|
||||
|
|
|
@ -24,10 +24,14 @@
|
|||
color_blue "#59c2ff"
|
||||
color_green "#b8cc52"
|
||||
|
||||
format_left "#[bg=$bg] {mode} #[fg=$pink,bold] {command_hostname}"
|
||||
format_center "{tabs}"
|
||||
format_right "{command_git_branch} {datetime}"
|
||||
format_space ""
|
||||
color_trans_blue "#5bcefa"
|
||||
color_trans_pink "#f5a9b8"
|
||||
color_trans_white "#ffffff"
|
||||
|
||||
format_left "#[bg=$bg] {mode} #[fg=$pink,bold] {command_hostname} #[bg=$trans_blue] #[bg=$trans_pink] #[bg=$trans_white] #[bg=$trans_pink] #[bg=$trans_blue]"
|
||||
format_center "{tabs}"
|
||||
format_right "{command_git_branch} {datetime}"
|
||||
format_space ""
|
||||
|
||||
border_enabled "true"
|
||||
border_char "─"
|
||||
|
|
Loading…
Add table
Reference in a new issue