Skip to content

Commit

Permalink
This refactor code for the dummy feature scripts (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranav Kulshrestha authored and tabesin committed Apr 18, 2019
1 parent 8078c04 commit a4c0219
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
10 changes: 0 additions & 10 deletions scripts/chroot_reconst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@ rm /usr/share/xsessions/plasma.desktop
# ugliest hack ever
cp /usr/share/xsessions/lxqt.desktop /usr/share/xsessions/plasma.desktop
# Remove screensaver
apt-get -qq -y remove xscreensaver
# This switch offs the sleep mode
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
# Installing
apt-get -qq -y install git
Expand Down Expand Up @@ -108,13 +102,9 @@ dpkg -i systemlock_0.1-1_all.deb
# set the option NoDisplay=true
sed -i '$ a NoDisplay=true' /usr/share/applications/lxqt-about.desktop
# Switching off screen dimming
echo -ne "\033[9;0]" >> /etc/issue
setterm -blank 0 >> /etc/issue
# Meilix default settings
dpkg -i --force-overwrite meilix-default-settings_1.0_all.deb
# Meilix Check Skript
# chmod +x meilix_check.sh
# ./meilix_check.sh
Expand Down
3 changes: 3 additions & 0 deletions scripts/features/disable_screendimming.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Switching off screen dimming
echo -ne "\033[9;0]" >> /etc/issue
setterm -blank 0 >> /etc/issue
2 changes: 2 additions & 0 deletions scripts/features/disable_screensaver.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Remove screensaver
apt-get -qq -y remove xscreensaver
2 changes: 2 additions & 0 deletions scripts/features/disable_sleepmode.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This switch offs the sleep mode
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

0 comments on commit a4c0219

Please sign in to comment.