Update a bunch of configs

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-03-26 20:22:01 +01:00
parent 738f83183f
commit 052fb6bada
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
24 changed files with 474 additions and 68 deletions

View file

@ -32,7 +32,7 @@ case "${SELECTION}" in
gw2
;;
"3")
java minecraft-launcher
minecraft-launcher
;;
"4")
pegasus-fe

View file

@ -19,9 +19,10 @@ PROMPT="Power Options"
ACTIONS=(
"1: Reboot"
"2: Shutdown"
"3: Lock Screen"
"4: Performance Mode"
"5: Powersave Mode"
"3: Suspend"
"4: Lock Screen"
"5: Performance Mode"
"6: Powersave Mode"
)
SELECTION=$(printf '%s\n' "${ACTIONS[@]}" | rofi -dmenu -p "${PROMPT}" | cut -d ":" -f1)
@ -33,13 +34,16 @@ case "${SELECTION}" in
systemctl poweroff
;;
"3")
screenlock
systemctl suspend
;;
"4")
screenlock
;;
"5")
gksudo "cpupower frequency-set -g performance"
optirun -b primus nvidia-settings -a '[gpu:0]/GPUPowerMizerMode=2' -c :8 > /dev/null
;;
"5")
"6")
gksudo "cpupower frequency-set -g powersave"
optirun -b primus nvidia-settings -a '[gpu:0]/GPUPowerMizerMode=0' -c :8 > /dev/null
;;

View file

@ -14,7 +14,7 @@
# ./resolution
xrandr \
--dpi 96 \
--output HDMI-1 --mode 1280x1024 --pos 80x56 --rotate normal \
--output HDMI1 --mode 1280x1024 --pos 80x56 --rotate normal \
--output HDMI-1-1 --mode 1280x1024 --pos 80x56 --rotate normal \
--output eDP-1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal \
--output eDP1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal \
--output eDP-1-1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal

View file

@ -7,9 +7,9 @@
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# This script locks the screen using i3lock-fancy. This script is called
# This script locks the screen using betterlockscreen. This script is called
# using a custom i3 keybinding.
#
# USAGE:
# ./screenlock
i3lock-fancy -f "Noto Sans"
betterlockscreen -l blur -t "Welcome back, Severin!"

22
system/.local/bin/sync-tasks Executable file
View file

@ -0,0 +1,22 @@
#!/usr/bin/env bash
#
# SCRIPT NAME:
# sync-tasks
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# Sync tasks in ~/Tasks using git
#
# USAGE:
# ./sync-tasks
. /home/severin/.local/bin/utils
print_time_log "sync-tasks" "Synchronizing tasks"
cd "/home/severin/Tasks" || exit
git pull > /dev/null 2>&1
git add --all > /dev/null 2>&1
git commit -s -m "Update tasks" > /dev/null 2>&1
git push origin master > /dev/null 2>&1