Mercurial > hg > config
annotate bin/setup-X.sh @ 922:74dc16f074be default tip
ignore ff merges
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Thu, 03 Oct 2024 05:36:19 -0700 |
parents | 17316de10c6a |
children |
rev | line source |
---|---|
360 | 1 #!/bin/bash |
2 | |
503 | 3 ### daemons |
4 # nm-applet: network manager | |
5 # gkrellm: system monitor | |
6 # diodon: clipboard manager | |
531 | 7 # arbtt-capture: arbitrary time tracker |
8 # x-tile: window tiling | |
9 # To add: qamixer (well, some mixer); gnome-activity journal | |
10 for i in nm-applet gkrellm diodon arbtt-capture x-tile | |
360 | 11 do |
503 | 12 if which ${i} |
360 | 13 then |
562
8d28fce0a6d6
detect scripts; namely x-tile
Jeff Hammel <jhammel@mozilla.com>
parents:
552
diff
changeset
|
14 if ! pidof -x ${i} |
360 | 15 then |
503 | 16 echo "not running: $i" |
360 | 17 ${i} & |
18 fi | |
19 fi | |
378
0e99d3a68066
notes to self....that didnt quite do what we wanted :(
Jeff Hammel <jhammel@mozilla.com>
parents:
360
diff
changeset
|
20 done |
0e99d3a68066
notes to self....that didnt quite do what we wanted :(
Jeff Hammel <jhammel@mozilla.com>
parents:
360
diff
changeset
|
21 |
0e99d3a68066
notes to self....that didnt quite do what we wanted :(
Jeff Hammel <jhammel@mozilla.com>
parents:
360
diff
changeset
|
22 # TODO: add workspace specific programs |
496 | 23 |
497 | 24 # ssh-add |
25 if [[ `ssh-add -l` != *id_?sa* ]] | |
26 then | |
573 | 27 GUI_SSH_ASKPASS=/usr/bin/ksshaskpass |
28 if [[ -e "${GUI_SSH_ASKPASS}" ]] | |
497 | 29 then |
573 | 30 SSH_ASKPASS=${GUI_SSH_ASKPASS} ssh-add |
576 | 31 elif [[ -n "$PS1" ]] |
574 | 32 then |
573 | 33 # http://www.cyberciti.biz/faq/linux-unix-bash-check-interactive-shell/ |
34 | |
35 echo "not running ssh-add: PS1 not found" | |
552 | 36 else |
573 | 37 ssh-add # interactive terminal |
497 | 38 fi |
891 | 39 fi |
40 | |
41 if type xautolock | |
42 then | |
893 | 43 xautolock -time 5 -locker 'i3lock -n -c 000000' |
891 | 44 fi |