rc.xml and .bashrc for Istredd

master
Daniel Napora 2022-12-06 15:39:51 +01:00
parent 39eed9a0c7
commit c7553777ed
2 changed files with 17 additions and 4 deletions

View File

@ -161,9 +161,12 @@ export THEME_HISTFILE=~/.theme_history
[ -e "$THEME_HISTFILE" ] && theme.sh "$(theme.sh -l|tail -n1)"
alias th='theme.sh -i2'
ROOT_TERMINAL_THEME="red-alert"
SSH_TERMINAL_THEME="mellow-purple"
su() {
(
INHIBIT_THEME_HIST=1 theme.sh red-alert
INHIBIT_THEME_HIST=1 theme.sh ${ROOT_TERMINAL_THEME}
trap 'theme.sh "$(theme.sh -l|tail -n1)"' INT
env su "$@"
theme.sh "$(theme.sh -l|tail -n1)"
@ -181,7 +184,7 @@ sudo() {
(
sleep .2s
ps -p "$pid" > /dev/null && INHIBIT_THEME_HIST=1 theme.sh red-alert
ps -p "$pid" > /dev/null && INHIBIT_THEME_HIST=1 theme.sh ${ROOT_TERMINAL_THEME}
) &
trap 'theme.sh "$(theme.sh -l|tail -n1)"' INT
@ -192,7 +195,7 @@ sudo() {
ssh() {
(
INHIBIT_THEME_HIST=1 theme.sh selenized-dark
INHIBIT_THEME_HIST=1 theme.sh ${SSH_TERMINAL_THEME}
trap 'theme.sh "$(theme.sh -l|tail -n1)"' INT
env ssh "$@"
theme.sh "$(theme.sh -l|tail -n1)"

View File

@ -1310,12 +1310,22 @@
<command>conkyctl contextmenu</command>
</action>
</mousebind>
<mousebind action="Press" button="C-Left">
<action name="Execute">
<command>conkyctl makemoveableall</command>
</action>
</mousebind>
</context>
<context name="Root">
<!-- Menus -->
<mousebind button="Left" action="Press">
<action name="ToggleShowDesktop"/>
</mousebind>
</mousebind>
<mousebind action="Press" button="C-Left">
<action name="Execute">
<command>skippy-xd-fix</command>
</action>
</mousebind>
<mousebind action="Press" button="Middle">
<action name="Execute">
<command>jgdesktops -s</command>