From 53d59c88a43f1ee41798709258ad547c41c80096 Mon Sep 17 00:00:00 2001 From: asandikci Date: Tue, 24 Oct 2023 12:18:37 +0300 Subject: [PATCH] add screen auto dimming/off --- README.md | 11 +++++------ src/user-config.sh | 5 +++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4a5f56b..16abdad 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,12 @@ wget -qO- https://raw.githubusercontent.com/asandikci/iflbot-setup/main/install. - Auto MEB Certificate Installation - Install Prerequisites for Building C/C++ Code: gcc, g++, build-essential - Install Apps: VSCodium, Sublime Text, Xournal++ +- Ready to Use C/C++ Sublime Build Files for both file/terminal execution - Dark Theme - Panel Settings: 28px - Auto Login to user account -- Ready to Use C/C++ Sublime Build Files -- Sublime Build Configs for both file/terminal execution +- Screen Auto Dimming: 1H, Screen Auto Off: 2H + ### Compatibility - Pardus 23.0 XFCE @@ -23,8 +24,8 @@ wget -qO- https://raw.githubusercontent.com/asandikci/iflbot-setup/main/install. - GNU GPLv3+ ### TODO -- [ ] Auto Sleep 2H -- [ ] Auto Dimming 2H +- [ ] Add Apps to Panel: VSCodium, SublimeText, Firefox, File Explorer + - [ ] Also Favorite - [ ] Default file assocation for Sublime text with .c, .cpp - [ ] Disable annoying bell sound (in each restart) - Firefox @@ -42,8 +43,6 @@ wget -qO- https://raw.githubusercontent.com/asandikci/iflbot-setup/main/install. - XFCE General Configurations - [ ] Auto Sleep 2H - [ ] Auto Dimming 2H - - [ ] Add Apps to Panel: VSCodium, SublimeText, Firefox, File Explorer - - [ ] Also Favorite - [ ] Disable root login --- diff --git a/src/user-config.sh b/src/user-config.sh index 8895834..969cf9c 100644 --- a/src/user-config.sh +++ b/src/user-config.sh @@ -11,6 +11,10 @@ xfconf-query -c "xsettings" -p "/Net/IconThemeName" -s "pardus-xfce-dark" --type # Panel Size xfconf-query --channel 'xfce4-panel' --property '/panels/panel-1/size' --type int --set 28 --create +# Power Settings +xfconf-query --channel 'xfce4-power-manager' --property '/xfce4-power-manager/blank-on-ac' --type int --set 60 --create +xfconf-query --channel 'xfce4-power-manager' --property '/xfce4-power-manager/inactivity-on-ac' --type int --set 60 --create + ### SUBLIME BUILDS user=$([ -n "$SUDO_USER" ] && echo "$SUDO_USER" || echo "$USER") SUBLIME_CONFIG_FILE="/home/${user}/.config/sublime-text/Packages/User/" @@ -22,3 +26,4 @@ DESKTOP_CODE_FOLDER="/home/${user}/Masaüstü/C_Kodları/" if [ ! -d "$DESKTOP_CODE_FOLDER" ]; then mv "$1/example/" "$DESKTOP_CODE_FOLDER" fi +