Added comments.

This commit is contained in:
sheldonmlee 2021-05-23 14:32:27 +08:00
parent 2ee44a5f15
commit 4e83485d79
2 changed files with 11 additions and 3 deletions

View File

@ -1,12 +1,16 @@
#!/bin/bash #!/bin/bash
#
# Script to autostart programs.
#
function run() function run()
{ {
if ! pgrep -f $1; then if ! pgrep -f $1; then
$1& $1 $2&
fi fi
} }
run firefox run firefox
run discord run discord
run "alacritty --working-directory $HOME/" run alacritty "--working-directory $HOME/"

View File

@ -1,8 +1,12 @@
#!/bin/bash #!/bin/bash
# dmenu script to change Xorg layout
#
# Script to change Xorg layout.
#
# dmenu # dmenu
#option=$(echo -e $options | dmenu -i) #option=$(echo -e $options | dmenu -i)
# rofi emulation of dmenu # rofi emulation of dmenu
option=$(echo "1) US|2) Colemak" | rofi -dmenu -sep '|' -i) option=$(echo "1) US|2) Colemak" | rofi -dmenu -sep '|' -i)