# --- enable/disable this file --- SRC_ENABLED=false case "$SRC_ENABLED" in 1|true|yes|on) unset SRC_ENABLED ;; # enabled — clean up and continue *) unset SRC_ENABLED; return ;; # disabled — clean up and skip this file esac # --------------------------------- if [ "$HOSTNAME" = "$HOMEHOST" ]; then # Nasourcujeme termclock . ~/.config/termclock.rc mman() { PID=$(xdotool getwindowpid "$(xdotool search --classname manualy | head -n1)") SESSION=$(qdbus6 "org.kde.konsole-$PID" | grep '^/Sessions/' | head -n1) qdbus6 "org.kde.konsole-$PID" "$SESSION" org.kde.konsole.Session.sendText $'\003' qdbus6 "org.kde.konsole-$PID" "$SESSION" org.kde.konsole.Session.runCommand "man $1" } cman() { PID=$(xdotool getwindowpid "$(xdotool search --classname manualy | head -n1)") SESSION=$(qdbus6 "org.kde.konsole-$PID" | grep '^/Sessions/' | head -n1) qdbus6 "org.kde.konsole-$PID" "$SESSION" org.kde.konsole.Session.sendText "q" qdbus6 "org.kde.konsole-$PID" "$SESSION" org.kde.konsole.Session.sendText $'\003' qdbus6 "org.kde.konsole-$PID" "$SESSION" org.kde.konsole.Session.sendText $'\014' qdbus6 "org.kde.konsole-$PID" "$SESSION" org.kde.konsole.Session.runCommand "TERM_CLOCK_COLOR='$TERM_CLOCK_COLOR' TERM_CLOCK_SYMBOL='$TERM_CLOCK_SYMBOL' TERM_CLOCK_SELF='$TERM_CLOCK_SELF' TERM_CLOCK_NO_DAY='$TERM_CLOCK_NO_DAY' $TERM_CLOCK_CMD -g3" } fi