-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
66 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ Maintainer: ailtonbsj <[email protected]> | |
Section: utils | ||
Architecture: all | ||
Priority: optional | ||
Depends: lubuntu-win10-theme | ||
Homepage: https://ailtonbsj.github.io | ||
Description: A taskbar with style of windows ten. | ||
This is a taskbar with theme of win10 and function to | ||
|
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# Get Names of users | ||
cat /etc/passwd | grep '/home/' | \ | ||
grep -v 'cups\|syslog' | cut -d ':' -f 1 > /tmp/homes.list | ||
|
||
function runByUsers { | ||
# $1 is default folder of user | ||
# $2 is name of user | ||
cd $1 | ||
panels="$1/.config/lxpanel/Lubuntu/panels/" | ||
runuser -l $2 -c "mkdir -p $panels" | ||
runuser -l $2 -c "cp -rf /tmp/lubuntu-w10-taskbar/left $panels" | ||
runuser -l $2 -c "cp -rf /tmp/lubuntu-w10-taskbar/panel $panels" | ||
|
||
lxsession="$1/.config/lxsession/Lubuntu/" | ||
runuser -l $2 -c "mkdir -p $lxsession" | ||
runuser -l $2 -c "touch $lxsession/autostart" | ||
runuser -l $2 -c "sed -i \"s/taskbar-hotkey-enable//g\" $lxsession/autostart" | ||
runuser -l $2 -c "echo \"taskbar-hotkey-enable\" >> $lxsession/autostart" | ||
} | ||
|
||
while read USUARIO; do | ||
runByUsers "/home/$USUARIO" "$USUARIO" | ||
runuser -l $USUARIO -c "rm -rf /home/$USUARIO/.cache/" | ||
if [ -f /usr/bin/lxpanelctl ]; then | ||
su - $USUARIO -c "lxpanelctl restart" | ||
fi | ||
done < /tmp/homes.list | ||
runByUsers "/etc/skel" "root" |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
# Get Names of users | ||
cat /etc/passwd | grep '/home/' | \ | ||
grep -v 'cups\|syslog' | cut -d ':' -f 1 > /tmp/homes.list | ||
|
||
function runByUsers { | ||
# $1 is default folder of user | ||
# $2 is name of user | ||
lxsession="$1/.config/lxsession/Lubuntu/" | ||
runuser -l $2 -c "sed -i \"s/taskbar-hotkey-enable//g\" $lxsession/autostart" | ||
} | ||
|
||
while read USUARIO; do | ||
runByUsers "/home/$USUARIO" "$USUARIO" | ||
runuser -l $USUARIO -c "rm -rf /home/$USUARIO/.cache/" | ||
if [ -f /usr/bin/lxpanelctl ]; then | ||
su - $USUARIO -c "lxpanelctl restart" | ||
fi | ||
done < /tmp/homes.list | ||
runByUsers "/etc/skel" "root" |
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
lxhotkey app "taskbar-reset" -- | ||
lxhotkey app "taskbar-reset" "<Super><Alt>R" | ||
sed -i "s/taskbar-hotkey-enable//g" ~/.config/lxsession/Lubuntu/autostart |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
cp -rf /etc/skel/.config/lxpanel/Lubuntu/panels/panel ~/.config/lxpanel/Lubuntu/panels/ | ||
cp -rf /etc/skel/.config/lxpanel/Lubuntu/panels/left ~/.config/lxpanel/Lubuntu/panels/ | ||
lxpanelctl restart |