aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2021-04-11 14:06:02 +0530
committerAkshay Nair <phenax5@gmail.com>2021-04-11 14:06:02 +0530
commit460484c51abd35388be154b65450227153474ba8 (patch)
treee9ce4e6346f1c08c03d743b2dfa6228543db1240 /scripts
parent5d40bd31a395507fccafcc6ef9526b4649993c68 (diff)
downloadnixos-config-460484c51abd35388be154b65450227153474ba8.tar.gz
nixos-config-460484c51abd35388be154b65450227153474ba8.zip
changes commands menu items
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/commands/:break14
-rwxr-xr-xscripts/commands/:cal3
-rwxr-xr-xscripts/commands/:calc3
-rwxr-xr-xscripts/commands/:cheat5
-rwxr-xr-xscripts/commands/:codi9
-rwxr-xr-xscripts/commands/:color-pick4
-rwxr-xr-xscripts/commands/:emacs2
-rwxr-xr-xscripts/commands/:files3
-rwxr-xr-xscripts/commands/:install2
-rwxr-xr-xscripts/commands/:notes3
l---------scripts/commands/:standup1
-rwxr-xr-xscripts/commands/:tasks2
-rwxr-xr-xscripts/commands/:time3
-rwxr-xr-xscripts/commands/:today4
-rwxr-xr-xscripts/commands/:wiki3
-rwxr-xr-xscripts/commands/:work-start7
-rwxr-xr-xscripts/commands/:work-stop7
17 files changed, 2 insertions, 73 deletions
diff --git a/scripts/commands/:break b/scripts/commands/:break
deleted file mode 100755
index e6bde66..0000000
--- a/scripts/commands/:break
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/env bash
-
-reason=`echo -n "" | dmenu -p "Reason for break ::"`;
-
-operation=`[[ "$reason" =~ ^- ]] && echo "stop" || echo "start"`;
-
-reason=`echo $reason | sed 's/^-//g'`;
-([[ -z "$reason" ]]) && exit 1;
-
-if (ponos "$operation" "$reason"); then
- notify-send "Break ${operation}ed";
-else
- notify-send -u critical "Something went wrong";
-fi;
diff --git a/scripts/commands/:cal b/scripts/commands/:cal
deleted file mode 100755
index 3fbd0ef..0000000
--- a/scripts/commands/:cal
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/env sh
-
-sensible-terminal -e nvim +Calendar
diff --git a/scripts/commands/:calc b/scripts/commands/:calc
deleted file mode 100755
index 8f804ba..0000000
--- a/scripts/commands/:calc
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/env sh
-
-sensible-terminal -e node;
diff --git a/scripts/commands/:cheat b/scripts/commands/:cheat
deleted file mode 100755
index 850557f..0000000
--- a/scripts/commands/:cheat
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/usr/bin/env sh
-
-[[ ! -z "$1" ]] && file=$1 || file=Cheatsheets;
-
-sensible-terminal -e sensible-editor ~/.config/vimwiki/$file.md;
diff --git a/scripts/commands/:codi b/scripts/commands/:codi
deleted file mode 100755
index cb4ec8d..0000000
--- a/scripts/commands/:codi
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/usr/bin/env bash
-
-filetype=${1:-javascript}
-tmpfile=$(mktemp /tmp/interpreter.XXXXXXX)
-
-sensible-terminal -e sh -c "~/scripts/bin/with_zsh 'codi $filetype $tmpfile'";
-
-rm $tmpfile;
-
diff --git a/scripts/commands/:color-pick b/scripts/commands/:color-pick
deleted file mode 100755
index 7d7850a..0000000
--- a/scripts/commands/:color-pick
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env bash
-
-~/.bin/color-pick;
-
diff --git a/scripts/commands/:emacs b/scripts/commands/:emacs
index 07bdb9f..72ea1fb 100755
--- a/scripts/commands/:emacs
+++ b/scripts/commands/:emacs
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
-emacsclient -c -n;
+emacsclient -c -n "$@";
diff --git a/scripts/commands/:files b/scripts/commands/:files
deleted file mode 100755
index 7ee64ce..0000000
--- a/scripts/commands/:files
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/env sh
-
-file-manager;
diff --git a/scripts/commands/:install b/scripts/commands/:install
deleted file mode 100755
index 20d602b..0000000
--- a/scripts/commands/:install
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/usr/bin/env bash
-
diff --git a/scripts/commands/:notes b/scripts/commands/:notes
deleted file mode 100755
index 2406947..0000000
--- a/scripts/commands/:notes
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/env sh
-
-sensible-terminal -e sensible-editor ~/nixos/extras/notes/index.md;
diff --git a/scripts/commands/:standup b/scripts/commands/:standup
deleted file mode 120000
index 970efd7..0000000
--- a/scripts/commands/:standup
+++ /dev/null
@@ -1 +0,0 @@
-/home/imsohexy/.work-config/commands/:standup \ No newline at end of file
diff --git a/scripts/commands/:tasks b/scripts/commands/:tasks
index 93b59ec..0f0484a 100755
--- a/scripts/commands/:tasks
+++ b/scripts/commands/:tasks
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
-sensible-terminal -e sensible-editor ~/nixos/extras/notes/Work.md;
+emacsclient -c -n --eval '(phenax/open-tasks)';
diff --git a/scripts/commands/:time b/scripts/commands/:time
deleted file mode 100755
index 0970ef9..0000000
--- a/scripts/commands/:time
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/env sh
-
-sensible-terminal -e tty-clock -t -b -c
diff --git a/scripts/commands/:today b/scripts/commands/:today
deleted file mode 100755
index 4f695e5..0000000
--- a/scripts/commands/:today
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env bash
-
-sensible-terminal -e sensible-editor ~/nixos/extras/notes/Today.md;
-
diff --git a/scripts/commands/:wiki b/scripts/commands/:wiki
deleted file mode 100755
index 3a26283..0000000
--- a/scripts/commands/:wiki
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/env sh
-
-~/scripts/wiki.sh;
diff --git a/scripts/commands/:work-start b/scripts/commands/:work-start
deleted file mode 100755
index 5603a8b..0000000
--- a/scripts/commands/:work-start
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/env bash
-
-if (ponos start work); then
- notify-send "Started 'work' block";
-else
- notify-send -u critical "Something went wrong";
-fi;
diff --git a/scripts/commands/:work-stop b/scripts/commands/:work-stop
deleted file mode 100755
index e02ccd0..0000000
--- a/scripts/commands/:work-stop
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/env bash
-
-if (ponos stop work); then
- notify-send "Stopped 'work' block";
-else
- notify-send -u critical "Something went wrong";
-fi;