feat(home-manager): service defs and fmt
fmt: reformatted using nixpkgs-fmt prettifier mpd: created configuration hypr: add window rules commons: add usingMusicPlayerDaemon variable
This commit is contained in:
parent
2d4b39c72f
commit
7d88765f5d
67 changed files with 633 additions and 573 deletions
|
@ -1,18 +1,19 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
}: let
|
||||
{ pkgs
|
||||
, config
|
||||
,
|
||||
}:
|
||||
let
|
||||
tmux = config.programs.tmux.package;
|
||||
windowName = "code-mode";
|
||||
in
|
||||
pkgs.writeShellScriptBin "tmux-code" ''
|
||||
#!${pkgs.bash}/bin/bash
|
||||
${tmux}/bin/tmux has-session -t ${windowName} 2>/dev/null
|
||||
if [ $? != 0 ]; then
|
||||
# setting up session
|
||||
${tmux}/bin/tmux new -s ${windowName} -d
|
||||
${tmux}/bin/tmux send-keys -t ${windowName} 'nvim' Enter
|
||||
${tmux}/bin/tmux split-window -h
|
||||
fi
|
||||
${tmux}/bin/tmux attach -t ${windowName}
|
||||
''
|
||||
pkgs.writeShellScriptBin "tmux-code" ''
|
||||
#!${pkgs.bash}/bin/bash
|
||||
${tmux}/bin/tmux has-session -t ${windowName} 2>/dev/null
|
||||
if [ $? != 0 ]; then
|
||||
# setting up session
|
||||
${tmux}/bin/tmux new -s ${windowName} -d
|
||||
${tmux}/bin/tmux send-keys -t ${windowName} 'nvim' Enter
|
||||
${tmux}/bin/tmux split-window -h
|
||||
fi
|
||||
${tmux}/bin/tmux attach -t ${windowName}
|
||||
''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue