-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using pyperclip and removing superuser
-replaced the xclip with pyperclip -moved the installation folder from system to the user home directory -added icon to the notification
- Loading branch information
Showing
4 changed files
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
#!/bin/bash | ||
# Install pyperclip | ||
pip install --user pyperclip | ||
|
||
# Set the installation paths | ||
icon_path="$HOME/.local/share/icons/hicolor/256x256/apps" | ||
|
||
# Create the directories if they don't exist | ||
mkdir -p "$icon_path" | ||
|
||
install -m 644 imgur.png "$icon_path" | ||
|
||
install -m 644 imgur.desktop `kf5-config --path services | cut -f1 -d':'` | ||
sudo install -m 644 imgur.png /usr/share/pixmaps/ | ||
sudo install -m 755 imgur /usr/bin/ | ||
install -m 755 imgur $HOME/.local/bin/ | ||
if ! echo "$PATH" | grep -q "$HOME/.local/bin"; then | ||
echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.bashrc | ||
source ~/.bashrc | ||
fi | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
rm "`kf5-config --path services | cut -f1 -d':'`imgur.desktop" | ||
sudo rm /usr/share/pixmaps/imgur.png | ||
sudo rm /usr/bin/imgur | ||
rm $HOME/.local/share/icons/hicolor/256x256/apps/imgur.png | ||
rm $HOME/.local/bin/imgur |