Applications launchers and scripts

main
ITmodulo 7 months ago
parent 09984748f1
commit 548912f3f4

@ -0,0 +1,3 @@
#!/bin/sh
intel_backlight 100

@ -0,0 +1,2 @@
#!/bin/sh
pulseaudio --daemonize --log-target=syslog

@ -0,0 +1,3 @@
#!/bin/sh
intel_backlight decr 10

@ -0,0 +1,3 @@
#!/bin/sh
intel_backlight incr 10

@ -0,0 +1,11 @@
#!/bin/sh
#
#
#
JAIL_NAME="dev"
JAIL_COMMAND="lapce -w"
JAIL_RUN_ID=$(jls | grep $JAIL_NAME | tr -s ' ' | cut -d ' ' -f 2)
jailme $JAIL_RUN_ID $JAIL_COMMAND

@ -0,0 +1,11 @@
#!/bin/sh
#
#
#
JAIL_NAME="dev"
JAIL_COMMAND="liteide"
JAIL_RUN_ID=$(jls | grep $JAIL_NAME | tr -s ' ' | cut -d ' ' -f 2)
jailme $JAIL_RUN_ID $JAIL_COMMAND

@ -0,0 +1,11 @@
#!/bin/sh
#
#
#
JAIL_NAME="studia"
JAIL_COMMAND="MOZ_USE_XINPUT2=1 firefox"
JAIL_RUN_ID=$(jls | grep $JAIL_NAME | tr -s ' ' | cut -d ' ' -f 2)
jailme $JAIL_RUN_ID sh -c "$JAIL_COMMAND"

@ -0,0 +1,11 @@
#!/bin/sh
#
#
#
JAIL_NAME="studia"
JAIL_COMMAND="xournalpp"
JAIL_RUN_ID=$(jls | grep $JAIL_NAME | tr -s ' ' | cut -d ' ' -f 2)
jailme $JAIL_RUN_ID $JAIL_COMMAND

@ -0,0 +1,11 @@
#!/bin/sh
#
#
#
JAIL_NAME="sync"
JAIL_COMMAND="seafile-applet"
JAIL_RUN_ID=$(jls | grep $JAIL_NAME | tr -s ' ' | cut -d ' ' -f 2)
jailme $JAIL_RUN_ID $JAIL_COMMAND

@ -0,0 +1,11 @@
#!/bin/sh
#
#
#
JAIL_NAME="web"
JAIL_COMMAND="MOZ_USE_XINPUT2=1 firefox"
JAIL_RUN_ID=$(jls | grep $JAIL_NAME | tr -s ' ' | cut -d ' ' -f 2)
jailme $JAIL_RUN_ID sh -c "$JAIL_COMMAND"

@ -0,0 +1,11 @@
#!/bin/sh
#
#
#
JAIL_NAME=""
JAIL_COMMAND=""
JAIL_RUN_ID=$(jls | grep $JAIL_NAME | tr -s ' ' | cut -d ' ' -f 2)
jailme $JAIL_RUN_ID $JAIL_COMMAND

@ -0,0 +1,6 @@
#!/bin/sh
# This oneliner turns powersave on usb hubs, excluding 0.1
# do usbconfig list and add another grep -v x.x to devices you wish not to do so
for i in $(usbconfig list | cut -f 1 -d ':' | cut -f 2 -d 'n' | grep -v 0.1); do usbconfig -d $i power_save; done

@ -0,0 +1,2 @@
#!/bin/sh
xhost si:localuser:damoon
Loading…
Cancel
Save