From c001068b946213a0be4ccd02da9cd03866b2479d Mon Sep 17 00:00:00 2001 From: Doncho Gunchev Date: Sun, 23 Oct 2016 21:44:55 +0300 Subject: [PATCH] Added ~/.config/autostart-scripts/ Run ~/.config/autostart-scripts/run_all.sh to start them all. --- .config/autostart-scripts/00-backlight.sh | 3 +++ .config/autostart-scripts/10-xbindkeys.sh | 5 +++++ .config/autostart-scripts/99-ssh-add.sh | 5 +++++ .config/autostart-scripts/run_all.sh | 6 ++++++ 4 files changed, 19 insertions(+) create mode 100755 .config/autostart-scripts/00-backlight.sh create mode 100755 .config/autostart-scripts/10-xbindkeys.sh create mode 100755 .config/autostart-scripts/99-ssh-add.sh create mode 100755 .config/autostart-scripts/run_all.sh diff --git a/.config/autostart-scripts/00-backlight.sh b/.config/autostart-scripts/00-backlight.sh new file mode 100755 index 0000000..52cfa35 --- /dev/null +++ b/.config/autostart-scripts/00-backlight.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +xbacklight -set 1 diff --git a/.config/autostart-scripts/10-xbindkeys.sh b/.config/autostart-scripts/10-xbindkeys.sh new file mode 100755 index 0000000..535f11e --- /dev/null +++ b/.config/autostart-scripts/10-xbindkeys.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +if [ "$DESKTOP_SESSION" == "lxqt" ]; then + /usr/bin/xbindkeys +fi diff --git a/.config/autostart-scripts/99-ssh-add.sh b/.config/autostart-scripts/99-ssh-add.sh new file mode 100755 index 0000000..6b1bb5f --- /dev/null +++ b/.config/autostart-scripts/99-ssh-add.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +if [ "$DESKTOP_SESSION" == "lxqt" ]; then + /usr/bin/ssh-add & +fi diff --git a/.config/autostart-scripts/run_all.sh b/.config/autostart-scripts/run_all.sh new file mode 100755 index 0000000..01369e4 --- /dev/null +++ b/.config/autostart-scripts/run_all.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +for i in ~/.config/autostart-scripts/*.sh; do + if [ "${0/*\//}" == "${i/*\//}" ]; then continue; fi + "$i" +done