aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-04-28 14:52:18 +0200
committerKarel Kočí <karel.koci@nic.cz>2017-04-28 14:52:18 +0200
commit010a14c4d12af624c00d257d27d53a14abd2b7e1 (patch)
tree81f48535448bfc8159c78b6c609b8a643a47597b
parent5d967667ad91bfff9cc663d84316699963bf4905 (diff)
downloadmyconfigs-010a14c4d12af624c00d257d27d53a14abd2b7e1.tar.gz
myconfigs-010a14c4d12af624c00d257d27d53a14abd2b7e1.tar.bz2
myconfigs-010a14c4d12af624c00d257d27d53a14abd2b7e1.zip
Add xshot and clip X utility scripts
-rwxr-xr-xinstall8
-rwxr-xr-xlocal/bin/clip2
-rwxr-xr-xlocal/bin/xshot2
3 files changed, 8 insertions, 4 deletions
diff --git a/install b/install
index 15b8994..66d4251 100755
--- a/install
+++ b/install
@@ -101,10 +101,10 @@ if [[ $REPLY =~ ^[Yy]?$ ]]; then
inst local/bin/sys-reboot ~/.local/bin/
inst local/bin/sys-shutdown ~/.local/bin/
inst local/bin/sys-suspend ~/.local/bin/
-fi
-
-read -p "Install Gtk+ and Qt theme setup? (Y/n) "
-if [[ $REPLY =~ ^[Yy]?$ ]]; then
+ # Some small Xserver tools
+ inst local/bin/clip ~/.local/bin/
+ inst local/bin/xshot ~/.local/bin/
+ # Theme
inst gtk-2.0/gtkrc ~/.gtkrc-2.0
inst gtk-3.0/ ~/.config/gtk-3.0/
inst config/Trolltech.conf ~/.config/Trolltech.conf
diff --git a/local/bin/clip b/local/bin/clip
new file mode 100755
index 0000000..1281090
--- /dev/null
+++ b/local/bin/clip
@@ -0,0 +1,2 @@
+#!/bin/sh
+xclip -selection clipboard
diff --git a/local/bin/xshot b/local/bin/xshot
new file mode 100755
index 0000000..90f91af
--- /dev/null
+++ b/local/bin/xshot
@@ -0,0 +1,2 @@
+#!/bin/sh
+import -window "$(xdotool selectwindow)" ~/xshot_$(date +%F_%H%M%S_%N).png