fix(tuigreet): launch zsh login shell on login
This commit is contained in:
parent
e8cda9b27f
commit
784108a45f
2 changed files with 3 additions and 6 deletions
|
|
@ -108,7 +108,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
vt = 1;
|
vt = 1;
|
||||||
settings.default_session = {
|
settings.default_session = {
|
||||||
command = "${tuigreet} --time --asterisks --theme 'border=dark-gray;text=white;prompt=blue;time=dark-gray;action=dark-gray;button=blue;container=black;input=white'";
|
command = "${tuigreet} --time --asterisks --cmd '${pkgs.zsh}/bin/zsh --login' --theme 'border=dark-gray;text=white;prompt=blue;time=dark-gray;action=dark-gray;button=blue;container=black;input=white'";
|
||||||
user = "greeter";
|
user = "greeter";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -192,10 +192,7 @@ media)
|
||||||
notify-send -a ctl -t 2500 "Recording saved to ~${file#"$HOME"}"
|
notify-send -a ctl -t 2500 "Recording saved to ~${file#"$HOME"}"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
if pgrep -x fuzzel >/dev/null 2>&1; then
|
pkill -x fuzzel 2>/dev/null && exit 0
|
||||||
pkill -x fuzzel
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
require fuzzel grim slurp wl-copy wf-recorder hyprctl jq
|
require fuzzel grim slurp wl-copy wf-recorder hyprctl jq
|
||||||
ss_dir="${XDG_PICTURES_DIR:-$HOME/Pictures}/Screenshots"
|
ss_dir="${XDG_PICTURES_DIR:-$HOME/Pictures}/Screenshots"
|
||||||
rec_dir="${XDG_VIDEOS_DIR:-$HOME/Videos}"
|
rec_dir="${XDG_VIDEOS_DIR:-$HOME/Videos}"
|
||||||
|
|
@ -206,7 +203,7 @@ media)
|
||||||
rec_desktop=" Record Desktop"
|
rec_desktop=" Record Desktop"
|
||||||
rec_area=" Record Area"
|
rec_area=" Record Area"
|
||||||
rec_window=" Record Window"
|
rec_window=" Record Window"
|
||||||
chosen="$(printf '%s\n' "$cap_desktop" "$cap_area" "$cap_window" "$rec_desktop" "$rec_area" "$rec_window" | fuzzel --dmenu --hide-prompt --lines=6 --width=25 --no-icons)"
|
chosen="$(printf '%s\n' "$cap_desktop" "$cap_area" "$cap_window" "$rec_desktop" "$rec_area" "$rec_window" | fuzzel --dmenu --hide-prompt --lines=6 --width=25 --no-icons 2>/dev/null)"
|
||||||
case "$chosen" in
|
case "$chosen" in
|
||||||
"$cap_desktop")
|
"$cap_desktop")
|
||||||
file="$ss_dir/$(date +'%Y-%m-%d_%H-%M-%S').png"
|
file="$ss_dir/$(date +'%Y-%m-%d_%H-%M-%S').png"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue