modified startup sripts user stuff

This commit is contained in:
2020-11-09 12:55:53 +01:00
parent d18355fac2
commit f6aee42785
3 changed files with 29 additions and 1 deletions

View File

@@ -10,4 +10,10 @@
#gnome-terminal -x sh -c "export XDG_RUNTIME_DIR=/run/user/$UID; su - $1 -c chrome"
gnome-terminal -x sh -c "su - $1 -c /usr/bin/firefox"
if [ -z "$1" ]
then
USER=$(zenity --entry --text="Enter user name for opening firefox")
else
USER=$1
fi
ssh -l $USER localhost /usr/bin/firefox

19
gnome-terminal_as Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
#function set-title() {
# if [[ -z "$ORIG" ]]; then
# ORIG=$PS1
# fi
# TITLE="\[\e]2;$*\a\]"
# PS1=${ORIG}${TITLE}
#}
#set-title "chrome terminal"
#gnome-terminal -x sh -c "export XDG_RUNTIME_DIR=/run/user/$UID; su - $1 -c chrome"
if [ -z "$1" ]
then
USER=$(zenity --entry --text="Enter user name for opening gnome-terminal")
else
USER=$1
fi
ssh -Y -l $USER localhost gnome-terminal

View File

@@ -4,6 +4,9 @@ set_gnome_keyboard_shortcut 'stop_fel' 'feloff' 'F12'
set_gnome_keyboard_shortcut 'open_fel' 'felon' '<Super>F12'
set_gnome_keyboard_shortcut 'eco' 'gnome-terminal -- eco' '<Alt><Control>c'
set_gnome_keyboard_shortcut 'browser' 'firefox' '<Alt><Control>b'
set_gnome_keyboard_shortcut 'browser-as' 'firefox_as' '<Alt><Control><Shift>b'
set_gnome_keyboard_shortcut 'terminal-as' 'gnome-terminal_as' '<Alt><Control><Shift>t'
set_gnome_keyboard_shortcut 'winterm' 'winterm' '<Alt><Control><Shift>w'
set_gnome_keyboard_shortcut 'stop_laser' 'laseroff' 'F4'
set_gnome_keyboard_shortcut 'open_laser' 'laseron' '<Super>F4'