Compare commits
3 Commits
ff36975eb7
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 549b420df2 | |||
|
edf76874fc
|
|||
|
95ad6b0c6a
|
@@ -1,3 +1,4 @@
|
|||||||
|
[alias]
|
||||||
a = "add"
|
a = "add"
|
||||||
aa = "add --all" # add all unstaged into index
|
aa = "add --all" # add all unstaged into index
|
||||||
aliases = "config --get-regexp '^alias.*'" # show all aliases
|
aliases = "config --get-regexp '^alias.*'" # show all aliases
|
||||||
@@ -119,6 +120,7 @@ undo = "uncommit"
|
|||||||
unstage = "reset HEAD" # staged file => unstaged
|
unstage = "reset HEAD" # staged file => unstaged
|
||||||
upstream-branch = "!git for-each-ref --format='%(upstream:short)' $(git symbolic-ref -q HEAD)"
|
upstream-branch = "!git for-each-ref --format='%(upstream:short)' $(git symbolic-ref -q HEAD)"
|
||||||
user = "config --local --get-regexp '^user'" # show local user settings (in current repo)
|
user = "config --local --get-regexp '^user'" # show local user settings (in current repo)
|
||||||
|
vacuum="!git reflog expire --expire-unreachable=now --all; git gc --prune=now"
|
||||||
whoami = "user"
|
whoami = "user"
|
||||||
wip = "!git add . && git commit -am 'WIP'"
|
wip = "!git add . && git commit -am 'WIP'"
|
||||||
wipa = "!git add . && git commit --amend -am 'WIP'"
|
wipa = "!git add . && git commit --amend -am 'WIP'"
|
||||||
|
|||||||
@@ -25,10 +25,10 @@ php "$HOME/install/other/composer-setup.php" \
|
|||||||
--filename="composer"
|
--filename="composer"
|
||||||
|
|
||||||
COMPOSER_GLOBAL_HOME="$($HOME/.local/bin/composer config -g home)"
|
COMPOSER_GLOBAL_HOME="$($HOME/.local/bin/composer config -g home)"
|
||||||
NEWPATH="export PATH=\"$COMPOSER_GLOBAL_HOME/vendor/bin:\${PATH}\""
|
NEWPATH="PATH=\"$COMPOSER_GLOBAL_HOME/vendor/bin:\${PATH}\""
|
||||||
cat "$HOME/.profile" | grep -qoh "$NEWPATH" || {
|
cat "$HOME/.profile" | grep -qoh "$NEWPATH" || {
|
||||||
$NEWPATH
|
export "$NEWPATH"
|
||||||
echo "$NEWPATH" >> "$HOME/.profile"
|
echo "export $NEWPATH" >> "$HOME/.profile"
|
||||||
}
|
}
|
||||||
|
|
||||||
source "$HOME/.profile"
|
source "$HOME/.profile"
|
||||||
|
|||||||
@@ -1,14 +1,24 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
##makedesc: Install rustdesk client (flatpak)
|
##makedesc: Install rustdesk client v1.4.2 (deb)
|
||||||
|
|
||||||
|
[ "$1" ] && RDVER="$1" || RDVER="1.4.2"
|
||||||
echo
|
echo
|
||||||
echo "==============================================="
|
echo "==============================================="
|
||||||
echo "Installing rustdesk..."
|
echo "Installing rustdesk v$RDVER..."
|
||||||
echo "==============================================="
|
echo "==============================================="
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# https://github.com/rustdesk/rustdesk
|
# https://github.com/rustdesk/rustdesk
|
||||||
flatpak install -y com.rustdesk.RustDesk
|
|
||||||
|
|
||||||
|
deb_path="$HOME/install"
|
||||||
|
deb_name="rustdesk-$RDVER.deb"
|
||||||
|
mkdir -p "$deb_path"
|
||||||
|
deb="$deb_path/$deb_name"
|
||||||
|
|
||||||
|
sudo apt install -y libxdo3 python3-pip
|
||||||
|
wget "https://github.com/rustdesk/rustdesk/releases/download/$RDVER/$deb_name" -O "$deb"
|
||||||
|
sudo dpkg -i "$deb"
|
||||||
|
|
||||||
|
# flatpak install -y com.rustdesk.RustDesk
|
||||||
# https://develop.kde.org/docs/administration/portal-permissions/
|
# https://develop.kde.org/docs/administration/portal-permissions/
|
||||||
flatpak permission-set kde-authorized remote-desktop com.rustdesk.RustDesk yes
|
# flatpak permission-set kde-authorized remote-desktop com.rustdesk.RustDesk yes
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
##makedesc: Install rustdesk client v1.4.0 (deb)
|
|
||||||
|
|
||||||
[ $1 ] && RDVER="$1" || RDVER="1.4.0"
|
|
||||||
echo
|
|
||||||
echo "==============================================="
|
|
||||||
echo "Installing rustdesk v$RDVER..."
|
|
||||||
echo "==============================================="
|
|
||||||
echo
|
|
||||||
|
|
||||||
# https://github.com/rustdesk/rustdesk
|
|
||||||
|
|
||||||
deb_path="$HOME/install"
|
|
||||||
deb_name="rustdesk-$RDVER.deb"
|
|
||||||
mkdir -p "$deb_path"
|
|
||||||
deb="$deb_path/$deb_name"
|
|
||||||
|
|
||||||
sudo apt install -y libxdo3 python3-pip && \
|
|
||||||
wget "https://github.com/rustdesk/rustdesk/releases/download/$RDVER/$deb_name" -O "$deb" && \
|
|
||||||
sudo dpkg -i "$deb"
|
|
||||||
@@ -6,6 +6,6 @@
|
|||||||
|
|
||||||
# Wayland KDE: https://www.reddit.com/r/kde/comments/11vrbwc/how_do_i_rotate_the_screen_on_kde_with_wayland/
|
# Wayland KDE: https://www.reddit.com/r/kde/comments/11vrbwc/how_do_i_rotate_the_screen_on_kde_with_wayland/
|
||||||
# kscreen-doctor --outputs
|
# kscreen-doctor --outputs
|
||||||
OUTPUT='HDMI-A-3'
|
OUTPUT='HDMI-0'
|
||||||
DIRECTION="$1" # (left|right|normal|inverted)
|
DIRECTION="$1" # (left|right|normal|inverted)
|
||||||
kscreen-doctor "output.$OUTPUT.rotation.$DIRECTION"
|
kscreen-doctor "output.$OUTPUT.rotation.$DIRECTION"
|
||||||
|
|||||||
@@ -7,5 +7,5 @@ echo "Uninstalling omz..."
|
|||||||
echo "==============================================="
|
echo "==============================================="
|
||||||
echo
|
echo
|
||||||
|
|
||||||
bash $ZSH/tools/uninstall.sh
|
bash "$ZSH/tools/uninstall.sh"
|
||||||
exec bash
|
exec bash
|
||||||
|
|||||||
11
uninstall/rustdesk
Executable file
11
uninstall/rustdesk
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
##makedesc: Uninstall rustdesk client
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "==============================================="
|
||||||
|
echo "Uninstalling rustdesk..."
|
||||||
|
echo "==============================================="
|
||||||
|
echo
|
||||||
|
|
||||||
|
sudo dpkg -r rustdesk
|
||||||
|
# flatpak remove -y com.rustdesk.RustDesk
|
||||||
Reference in New Issue
Block a user