diff --git a/modules/desktop.nix b/modules/desktop.nix
index 5409b02..09ae681 100644
--- a/modules/desktop.nix
+++ b/modules/desktop.nix
@@ -141,8 +141,8 @@ in with lib; {
"${mod}+Shift+p" = "exec em-play-loop.sh";
# permaclip
- "${mod}+c" = "rofi -show permaclip -modes \"permaclip:${pc-set.outPath}/bin/pc-set.sh\" -theme gruvbox-dark";
- "${mod}+v" = "rofi -show permaclip -modes \"permaclip:${pc-get.outPath}/bin/pc-get.sh\" -theme gruvbox-dark";
+ "${mod}+c" = "exec rofi -show register -modes \"register:${pc-set.outPath}/bin/pc-set.sh\" -theme gruvbox-dark";
+ "${mod}+v" = "exec rofi -show register -modes \"register:${pc-get.outPath}/bin/pc-get.sh\" -theme gruvbox-dark";
};
# }}}
# Visuals {{{
diff --git a/scripts/desktop/permaclip/pc-get.sh b/scripts/desktop/permaclip/pc-get.sh
index bfda40f..7ff0ce1 100644
--- a/scripts/desktop/permaclip/pc-get.sh
+++ b/scripts/desktop/permaclip/pc-get.sh
@@ -1,9 +1,9 @@
# create ~/permaclip if it doesnt exist already
mkdir -p $HOME/permaclip
-tr_name=$(echo ''${@% (*} | xargs)
+tr_name=$(echo ${@% (*} | xargs)
if [ x"$tr_name" != x"" ]; then
- xclip -selection c -i $HOME/permaclip/''${tr_name% (*} &> /dev/null
+ xclip -selection c -i $HOME/permaclip/${tr_name% (*} &> /dev/null
exit 0
fi
@@ -11,5 +11,5 @@ echo -e "\0markup-rows\x1ftrue"
for reg in $(ls ~/permaclip); do
content=$(cat ~/permaclip/$reg)
- echo -e "$reg (''${content:0:50}...)"
+ echo -e "$reg (${content:0:50}...)"
done
diff --git a/scripts/desktop/permaclip/pc-set.sh b/scripts/desktop/permaclip/pc-set.sh
index bcadffc..8cb5526 100644
--- a/scripts/desktop/permaclip/pc-set.sh
+++ b/scripts/desktop/permaclip/pc-set.sh
@@ -3,7 +3,7 @@ mkdir -p $HOME/permaclip
tr_name=$(echo $@ | xargs)
if [ x"$tr_name" != x"" ]; then
- tr_name="''${tr_name% (*}"
+ tr_name="${tr_name% (*}"
clipdata=$(xclip -selection c -o)
echo $clipdata > $HOME/permaclip/$tr_name
fi
@@ -12,5 +12,5 @@ echo -e "\0markup-rows\x1ftrue"
for reg in $(ls ~/permaclip); do
content=$(cat ~/permaclip/$reg)
- echo -e "$reg (''${content:0:30})"
+ echo -e "$reg (${content:0:30})"
done