aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Common/autorandr/DP-1080/config15
-rw-r--r--Common/autorandr/DP-1080/setup2
-rw-r--r--Common/autorandr/HDMI-1080/config15
-rw-r--r--Common/autorandr/HDMI-1080/setup2
-rw-r--r--Common/autorandr/HDMI/config15
-rw-r--r--Common/autorandr/HDMI/setup2
-rw-r--r--Common/autorandr/laptop-only/config12
-rw-r--r--Common/autorandr/laptop-only/setup1
-rwxr-xr-xCommon/autorandr/postswitch.d/notify.sh2
l---------Common/autorandr/postswitch.d/wallpaper.sh1
-rw-r--r--Common/deadd/deadd.conf0
-rw-r--r--Common/i3/config/i3/config43
-rw-r--r--Common/umon/umon.conf51
-rw-r--r--Common/vimrc1
-rw-r--r--bin/automon.sh0
l---------bin/bin1
-rwxr-xr-xbin/brightness-popup.sh20
-rwxr-xr-xbin/i3-battery-popup244
l---------bin/tt2
-rwxr-xr-xbin/wallpaper.sh4
-rwxr-xr-xinstall/install_linux.sh8
21 files changed, 414 insertions, 27 deletions
diff --git a/Common/autorandr/DP-1080/config b/Common/autorandr/DP-1080/config
new file mode 100644
index 0000000..3d9c473
--- /dev/null
+++ b/Common/autorandr/DP-1080/config
@@ -0,0 +1,15 @@
+output HDMI-1
+off
+output DP-2
+off
+output DP-1
+crtc 1
+mode 1920x1200
+pos 1920x0
+rate 59.95
+output eDP-1
+crtc 0
+mode 1920x1080
+pos 0x120
+primary
+rate 60.00
diff --git a/Common/autorandr/DP-1080/setup b/Common/autorandr/DP-1080/setup
new file mode 100644
index 0000000..7ca4879
--- /dev/null
+++ b/Common/autorandr/DP-1080/setup
@@ -0,0 +1,2 @@
+DP-1 00ffffffffffff0022f02331010101011a190103803420782a2b35a9544b9e250c5054210800b30095008100d1c0a9c081c0a9408180283c80a070b023403020360006442100001a000000fd00323c1f5011000a202020202020000000fc0048502045323431690a20202020000000ff00434e3435323631304c510a202000ca
+eDP-1 00ffffffffffff0009e5db0700000000011c0104a51f1178027d50a657529f27125054000000010101010101010101010101010101013a3880de703828403020360035ae1000001afb2c80de703828403020360035ae1000001a000000fe00424f452043510a202020202020000000fe004e4531343046484d2d4e36310a0043
diff --git a/Common/autorandr/HDMI-1080/config b/Common/autorandr/HDMI-1080/config
new file mode 100644
index 0000000..32900cd
--- /dev/null
+++ b/Common/autorandr/HDMI-1080/config
@@ -0,0 +1,15 @@
+output DP-1
+off
+output DP-2
+off
+output eDP-1
+crtc 0
+mode 1920x1080
+pos 0x0
+primary
+rate 60.00
+output HDMI-1
+crtc 1
+mode 1920x1080
+pos 1920x0
+rate 60.00
diff --git a/Common/autorandr/HDMI-1080/setup b/Common/autorandr/HDMI-1080/setup
new file mode 100644
index 0000000..b185dc6
--- /dev/null
+++ b/Common/autorandr/HDMI-1080/setup
@@ -0,0 +1,2 @@
+HDMI-1 00ffffffffffff0005e370240a3400000d1b010380341d782a2ac5a4564f9e280f5054bfef00d1c0b30095008180814081c001010101023a801871382d40582c450009252100001e000000fd00324c1e5311000a202020202020000000fc0032343730570a20202020202020000000ff0047475748334841303133333232016902031ef14b101f051404130312021101230907078301000065030c0010008c0ad08a20e02d10103e9600092521000018011d007251d01e206e28550009252100001e8c0ad08a20e02d10103e96000925210000188c0ad090204031200c405500092521000018023a801871382d40582c450009252100001e00000000000000d1
+eDP-1 00ffffffffffff0009e5db0700000000011c0104a51f1178027d50a657529f27125054000000010101010101010101010101010101013a3880de703828403020360035ae1000001afb2c80de703828403020360035ae1000001a000000fe00424f452043510a202020202020000000fe004e4531343046484d2d4e36310a0043
diff --git a/Common/autorandr/HDMI/config b/Common/autorandr/HDMI/config
new file mode 100644
index 0000000..890b2e5
--- /dev/null
+++ b/Common/autorandr/HDMI/config
@@ -0,0 +1,15 @@
+output DP-1
+off
+output DP-2
+off
+output HDMI-1
+crtc 1
+mode 2560x1440
+pos 1920x0
+rate 59.95
+output eDP-1
+crtc 0
+mode 1920x1080
+pos 0x360
+primary
+rate 60.00
diff --git a/Common/autorandr/HDMI/setup b/Common/autorandr/HDMI/setup
new file mode 100644
index 0000000..5402ceb
--- /dev/null
+++ b/Common/autorandr/HDMI/setup
@@ -0,0 +1,2 @@
+HDMI-1 00ffffffffffff0030aecf65010101010a1b0103a0351e782affd5a95345a0250d5054bfcf00d1c0d100b300a9c09500818081c0714f565e00a0a0a02950302035000f282100001a000000ff0055345030355035350a20202020000000fd00174c0f5a19000a202020202020000000fc004c3234712d31300a2020202020017b02031ef04b10050403021f1413121101230907078301000065030c001000023a801871382d40582c45000f282100001f011d8018711c1620582c25000f282100009f011d007251d01e206e2855000f282100001e8c0ad08a20e02d10103e96000f2821000018023a80d072382d40102c45800f282100001e00000000000000aa
+eDP-1 00ffffffffffff0009e5db0700000000011c0104a51f1178027d50a657529f27125054000000010101010101010101010101010101013a3880de703828403020360035ae1000001afb2c80de703828403020360035ae1000001a000000fe00424f452043510a202020202020000000fe004e4531343046484d2d4e36310a0043
diff --git a/Common/autorandr/laptop-only/config b/Common/autorandr/laptop-only/config
new file mode 100644
index 0000000..0226f90
--- /dev/null
+++ b/Common/autorandr/laptop-only/config
@@ -0,0 +1,12 @@
+output DP-1
+off
+output HDMI-1
+off
+output DP-2
+off
+output eDP-1
+crtc 0
+mode 1920x1080
+pos 0x0
+primary
+rate 60.00
diff --git a/Common/autorandr/laptop-only/setup b/Common/autorandr/laptop-only/setup
new file mode 100644
index 0000000..769460f
--- /dev/null
+++ b/Common/autorandr/laptop-only/setup
@@ -0,0 +1 @@
+eDP-1 00ffffffffffff0009e5db0700000000011c0104a51f1178027d50a657529f27125054000000010101010101010101010101010101013a3880de703828403020360035ae1000001afb2c80de703828403020360035ae1000001a000000fe00424f452043510a202020202020000000fe004e4531343046484d2d4e36310a0043
diff --git a/Common/autorandr/postswitch.d/notify.sh b/Common/autorandr/postswitch.d/notify.sh
new file mode 100755
index 0000000..394c241
--- /dev/null
+++ b/Common/autorandr/postswitch.d/notify.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+notify-send -i display "Display profile" "$AUTORANDR_CURRENT_PROFILE"
diff --git a/Common/autorandr/postswitch.d/wallpaper.sh b/Common/autorandr/postswitch.d/wallpaper.sh
new file mode 120000
index 0000000..9ea8654
--- /dev/null
+++ b/Common/autorandr/postswitch.d/wallpaper.sh
@@ -0,0 +1 @@
+../../../bin/wallpaper.sh \ No newline at end of file
diff --git a/Common/deadd/deadd.conf b/Common/deadd/deadd.conf
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Common/deadd/deadd.conf
diff --git a/Common/i3/config/i3/config b/Common/i3/config/i3/config
index 0aa62a0..9b7cca6 100644
--- a/Common/i3/config/i3/config
+++ b/Common/i3/config/i3/config
@@ -11,12 +11,21 @@ floating_modifier $super
#autostart
#exec --no-startup-id hsetroot -center ~/.wallpaper.png
#exec --no-startup-id feh --bg-scale ~/.wallpaper.png
-exec --no-startup-id nitrogen --restore
-#exec --no-startup-id xsettingsd &
-exec --no-startup-id compton -b
+exec --no-startup-id wallpaper.sh
+exec --no-startup-id compton --xrender-sync-fence --xrender-sync -b
+
+exec --no-startup-id "~/.config/umon/wallpaper.sh"
# Tru to run autosetup of displays
-exec --not-startup-id xrandr --auto
+exec --no-startup-id xrandr --auto
+# Start umonitor daemon
+#exec --no-startup-id umonitor --listen
+
+
+# Start nm-applet for network things :)
+exec --no-startup-id nm-applet
+exec --no-startup-id i3-battery-popup -n
+exec --no-startup-id deadd-notification-center
# start a terminal
bindsym $super+Return exec i3-sensible-terminal
@@ -25,15 +34,7 @@ bindsym $super+Return exec i3-sensible-terminal
bindsym $super+Shift+d exec i3-dmenu-desktop --dmenu="dmenu -i -fn 'Noto Sans:size=8'"
bindsym $super+d exec rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-mode -columns 3 -font 'Noto Sans 8'
-# common apps keybinds
-#bindsym Print exec scrot 'Cheese_%a-%d%b%y_%H.%M.png' -e 'viewnior ~/$f'
-bindsym $super+l exec i3lock -i ~/.wallpaper.jpg
-#bindsym $super+Shift+w exec firefox
-#bindsym $super+Shift+f exec thunar;workspace 3;focus
-#bindsym $super+Shift+g exec geany
-#bindsym $mod+Control+s exec --no-startup-id systemctl suspend
-
-#change volume
+# change volume
bindsym XF86AudioRaiseVolume exec amixer -q set Master 5%+
bindsym XF86AudioLowerVolume exec amixer -q set Master 5%-
bindsym XF86AudioMute exec amixer set Master toggle
@@ -102,6 +103,7 @@ bindsym $super+Shift+6 move container to workspace 6
bindsym $super+Shift+r restart
# exit i3
+bindsym $super+l exec i3lock -i /home/jakob/.lockscreen.png
bindsym $super+Shift+e exec "i3-nagbar -t warning -m 'Really, exit?' -b 'Yes' 'i3-msg exit'"
bindsym $super+p exec --no-startup-id ~/.config/rofi/bin/applet_powermenu
@@ -147,12 +149,6 @@ bar {
# window rules, you can find the window class using xprop
for_window [class="^.*"] border pixel 2
-#assign [class=URxvt] 1
-#assign [class=Firefox|Transmission-gtk] 2
-#assign [class=Thunar|File-roller] 3
-#assign [class=Geany|Evince|Gucharmap|Soffice|libreoffice*] 4
-#assign [class=Audacity|Vlc|mpv|Ghb|Xfburn|Gimp*|Inkscape] 5
-#assign [class=Lxappearance|System-config-printer.py|Lxtask|GParted|Pavucontrol|Exo-helper*|Lxrandr] 6
for_window [class=Viewnior|feh|Audacious|File-roller|Lxappearance|Lxtask|Pavucontrol|Arandr|Nitrogen|Files] floating enable
for_window [class=URxvt|Firefox|Geany|Evince|Soffice|libreoffice*|mpv|Ghb|Xfburn|Gimp*|Inkscape|Vlc|Lxappearance|Audacity] focus
for_window [class=Xfburn|GParted|System-config-printer.py|Lxtask|Pavucontrol|Exo-helper*|Lxrandr|Arandr|Nitrogen] focus
@@ -175,12 +171,9 @@ client.background $blue
gaps inner 7
# Keybinds for lenovo x1 carbon
-#bindsym XF86MonBrightnessUp exec --no-startup-id "pkill rofi; xbacklight -inc 10; ~/.config/rofi/bin/applet_backlight > /dev/null 2>&1 &"
-#bindsym XF86MonBrightnessDown exec --no-startup-id "pkill rofi; xbacklight -dec 10; ~/.config/rofi/bin/applet_backlight > /dev/null 2>&1 &"
-
-bindsym XF86MonBrightnessUp exec --no-startup-id "xbacklight -inc 10"
-bindsym XF86MonBrightnessDown exec --no-startup-id "xbacklight -dec 10"
+bindsym XF86MonBrightnessUp exec --no-startup-id "brightness-popup.sh inc"
+bindsym XF86MonBrightnessDown exec --no-startup-id "brightness-popup.sh dec"
bindsym XF86Display exec --no-startup-id "arandr"
-#bindsym XF86WLAN exec --no-startup-id "~/.config/rofi/bin/menu_network"
bindsym Print exec --no-startup-id "gnome-screenshot --interactive"
+bindsym XF86Favorites exec --no-startup-id "kill -s USR1 $(pidof deadd-notification-center)"
diff --git a/Common/umon/umon.conf b/Common/umon/umon.conf
new file mode 100644
index 0000000..8321667
--- /dev/null
+++ b/Common/umon/umon.conf
@@ -0,0 +1,51 @@
+{
+ "HDMI": {
+ "Screen": {
+ "width": 4480,
+ "height": 1440,
+ "widthMM": 1185,
+ "heightMM": 381
+ },
+ "Monitors": {
+ "eDP10\u007f": {
+ "edid": "BOE0unknown unkn",
+ "primary": true,
+ "x": 0,
+ "y": 360,
+ "rotate_setting": 1,
+ "width": 1920,
+ "height": 1080,
+ "refresh_rate": 60.0
+ },
+ "HDMI10": {
+ "edid": "LEN0L24q-10 L24q",
+ "x": 1920,
+ "y": 0,
+ "rotate_setting": 1,
+ "width": 2560,
+ "height": 1440,
+ "refresh_rate": 59.95
+ }
+ }
+ },
+ "laptop-only": {
+ "Screen": {
+ "width": 1920,
+ "height": 1080,
+ "widthMM": 508,
+ "heightMM": 285
+ },
+ "Monitors": {
+ "eDP10\u007f": {
+ "edid": "BOE0unknown unkn",
+ "primary": true,
+ "x": 0,
+ "y": 0,
+ "rotate_setting": 1,
+ "width": 1920,
+ "height": 1080,
+ "refresh_rate": 60.0
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/Common/vimrc b/Common/vimrc
index 75a81a5..2a84124 100644
--- a/Common/vimrc
+++ b/Common/vimrc
@@ -422,6 +422,7 @@ Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'dense-analysis/ale'
Plug 'evanleck/vim-svelte', {'branch': 'main'}
Plug 'preservim/tagbar'
+Plug 'evanleck/vim-svelte', {'branch': 'main'}
"Plug 'neoclide/coc-tsserver', {'do': 'yarn install --frozen-lockfile'}
"Plug 'clangd/coc-clangd', {'do': 'yarn install --frozen-lockfile'}
diff --git a/bin/automon.sh b/bin/automon.sh
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bin/automon.sh
diff --git a/bin/bin b/bin/bin
deleted file mode 120000
index 8402b35..0000000
--- a/bin/bin
+++ /dev/null
@@ -1 +0,0 @@
-/home/jakob/_code/dotfiles/bin \ No newline at end of file
diff --git a/bin/brightness-popup.sh b/bin/brightness-popup.sh
new file mode 100755
index 0000000..3c3ad98
--- /dev/null
+++ b/bin/brightness-popup.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+if [ "$1" == "inc" ]; then
+ brightnessctl s +5%
+fi
+
+if [ "$1" == "dec" ]; then
+ brightnessctl s 5%-
+fi
+
+BRIGHTNESS=$(brightnessctl g)
+BRIGHTNESSMAX=$(brightnessctl m)
+let fullb=BRIGHTNESS*100
+let brightnessperc=fullb/BRIGHTNESSMAX
+BRIGHTNESS=${brightnessperc%.*}
+#NOTI_ID=$(notify-send.py "Brightness" "$BRIGHTNESS/100" \
+# --hint string:image-path:video-display boolean:transient:true \
+# int:has-percentage:$BRIGHTNESS \
+# --replaces-process "brightness-popup")
+notify-send.py "Brightness" "$BRIGHTNESS%" --hint boolean:transient:true int:value:$BRIGHTNESS --replaces-process "brightness-popup"
diff --git a/bin/i3-battery-popup b/bin/i3-battery-popup
new file mode 100755
index 0000000..f056c11
--- /dev/null
+++ b/bin/i3-battery-popup
@@ -0,0 +1,244 @@
+#! /bin/bash
+
+################################################################################
+# A script that shows a battery warning on i3wm #
+# #
+# It supports multiple batteries #
+# (like my thinkpad T450s has) #
+# #
+# When tcl/tk (wish) is installed, it shows a nice popup #
+# Which you can configure to show on all workspaces #
+# by adding the following to your i3 config: #
+# "for_window [title="Battery Warning"] sticky enable" #
+# #
+# By default, the script will show two messages: #
+# One at 10% and one at 5% battery #
+# #
+# The script takes the following options: #
+# -L : The percentage at which the first popup shows (default: 10) #
+# #
+# -l : The percentage at which the second popup shows #
+# Default: half of the percentage given by -L #
+# #
+# -m : The message to show to the User #
+# #
+# -t : The time interval the script waits before checking the battery again. #
+# Give this a value in seconds: 5s, 10s, or in minutes: 5m #
+# Default: 5m #
+# #
+# -s : Play a sound file. This uses the command 'aplay' and depends on #
+# a working pulseaudio installation #
+# #
+# -v : The volume to play audio at. Expects a number 0-100. #
+# #
+# -n : Use notify-send for message. #
+# #
+# -N : Don't use Tcl/Tk dialog. Use i3-nagbar. #
+# #
+# By R-J Ekker, 2016 #
+# Thanks to: #
+# - Louis-Jacob Lebel (https://github.com/lebel-louisjacob) #
+# - Martin Jablečník (https://github.com/Applemann) #
+################################################################################
+
+error () {
+ echo "$1" >&2
+ echo "Exiting" >&2
+ exit "$2"
+}
+
+while getopts 's:v:L:l:m:t:s:F:i:nND' opt; do
+ case $opt in
+ L)
+ [[ $OPTARG =~ ^[0-9]+$ ]] || error "${opt}: ${OPTARG} is not a number" 2
+ UPPER_LIMIT="${OPTARG}"
+ ;;
+ l)
+ [[ $OPTARG =~ ^[0-9]+$ ]] || error "${opt}: ${OPTARG} is not a number" 2
+ LOWER_LIMIT="${OPTARG}"
+ ;;
+ m)
+ MESSAGE="${OPTARG}"
+ ;;
+ n)
+ USE_NOTIFY_SEND="y"
+ ;;
+ i)
+ NOTIFY_ICON="${OPTARG}"
+ ;;
+ N)
+ DONT_USE_WISH="-n"
+ ;;
+ t)
+ [[ $OPTARG =~ ^[0-9]+[ms]?$ ]] || error "${opt}: ${OPTARG} is not a valid period" 2
+ SLEEP_TIME="${OPTARG}"
+ ;;
+ s)
+ [ -f "$OPTARG" ] || error "${opt}: ${OPTARG}: no such file" 2
+ SOUND_TO_PLAY="${OPTARG}"
+ ;;
+ v)
+ SOUND_VOLUME_PERC="${OPTARG}"
+ [[ $OPTARG -ge 0 && $OPTARG -le 100 ]] || error "${opt}: ${OPTARG}: not an integer between 0 and 100" 2
+ SOUND_VOLUME=$(( "$OPTARG" * 65536 / 100 ))
+ ;;
+ D)
+ # Print some extra info
+ DEBUG="y"
+ ;;
+ F)
+ # Redirect debugging info to logfile
+ # if -D not specified this will log nothing
+ LOGFILE="${OPTARG}"
+ ;;
+ :)
+ error "Option -$OPTARG requires an argument." 2
+ ;;
+ \?)
+ exit 2
+ ;;
+ esac
+done
+
+# This function returns an awk script
+# Which prints the battery percentage
+# It's an ugly way to include a nicely indented awk script here
+get_awk_source() {
+ cat <<EOF
+BEGIN {
+ FS="=";
+}
+\$1 ~ /ENERGY_FULL$/ {
+ f += \$2;
+}
+\$1 ~ /ENERGY_NOW\$/ {
+ n += \$2;
+}
+\$1 ~ /CHARGE_FULL$/ {
+ f += \$2;
+}
+\$1 ~ /CHARGE_NOW\$/ {
+ n += \$2;
+}
+END {
+ print int(100*n/f);
+}
+EOF
+}
+
+is_battery_discharging() {
+ grep STATUS=Discharging "${BATTERIES[@]}" && return 0
+ return 1
+} >/dev/null
+
+get_battery_perc() {
+ awk -f <(get_awk_source) "${BATTERIES[@]}"
+}
+
+show_popup() {
+ WISH_SCRIPT="wm state . withdrawn; tk_messageBox -icon warning -title \"Battery Warning\" -message \"${1}\"; exit"
+ echo "$WISH_SCRIPT" | wish
+}
+
+show_nagbar(){
+ i3-msg "exec i3-nagbar -m \"${1}\""
+}
+
+show_notify(){
+ GNOME_ICON="/usr/share/icons/gnome/scalable/status/battery-low-symbolic.svg"
+ XFCE_ICON="/usr/share/icons/elementary-xfce/status/48/battery-low.png"
+ # try to find nice notify icon
+ if [[ -z $NOTIFY_ICON ]]; then
+ if [[ -f $GNOME_ICON ]]; then
+ NOTIFY_ICON="${GNOME_ICON}"
+ elif [[ -f $XFCE_ICON ]]; then
+ NOTIFY_ICON="${XFCE_ICON}"
+ fi
+ fi
+ [[ -n $NOTIFY_ICON ]] && NOTIFY_OPT="-i ${NOTIFY_ICON}"
+ notify-send -u critical "${1}" ${NOTIFY_OPT}
+}
+
+play_sound(){
+ if [[ -n $SOUND_TO_PLAY ]]; then
+ paplay "$SOUND_TO_PLAY" --volume $SOUND_VOLUME
+ fi
+}
+
+show_message(){
+ play_sound &
+ if [[ -n $USE_NOTIFY_SEND ]] && which notify-send; then
+ show_notify "$1"
+ elif [[ -z $DONT_USE_WISH ]] && which wish; then
+ show_popup "$1"
+ else
+ show_nagbar "$1"
+ fi
+} >&2
+
+debug(){
+ [[ -n $DEBUG ]] && echo "$1"
+}
+
+main (){
+ # Setting defaults
+ UPPER_LIMIT="${UPPER_LIMIT:-10}"
+ UPPER_HALF=$(( UPPER_LIMIT / 2 ))
+ LOWER_LIMIT=${LOWER_LIMIT:-$UPPER_HALF}
+ MESSAGE="${MESSAGE:-Warning: Battery is getting low}"
+ SLEEP_TIME="${SLEEP_TIME:-5m}"
+ # Note: BATTERIES is an array
+ BATTERIES=( /sys/class/power_supply/BAT*/uevent )
+ SOUND_VOLUME="${SOUND_VOLUME:-65536}"
+
+ debug "Upper ${UPPER_LIMIT}; Lower ${LOWER_LIMIT}; sleep ${SLEEP_TIME}"
+ debug "Current: $(get_battery_perc)%"
+ [[ -n $SOUND_TO_PLAY ]] && debug "Playing: \"${SOUND_TO_PLAY}\", Volume: ${SOUND_VOLUME_PERC}%"
+
+ LIMIT="${UPPER_LIMIT}"
+ # This will be set to "y" after first click
+ # So we know when to stop nagging
+ POPUP_CLICKED=""
+
+ while true; do
+ debug "Checking.. "
+
+ PERC=$(get_battery_perc)
+ debug "got ${PERC}%"
+
+ if is_battery_discharging; then
+ debug "Battery is discharging"
+
+ if [[ $PERC -lt $LIMIT ]]; then
+ debug "showing warning"
+ show_message "${MESSAGE}"
+
+ if [[ -z $POPUP_CLICKED ]]; then
+ # first click; set limit lower
+ POPUP_CLICKED="y"
+ LIMIT=${LOWER_LIMIT}
+ else
+ # We clicked twice; No more popups
+ LIMIT=0
+ fi
+ fi
+ else
+ # restart messages, reset limits
+ POPUP_CLICKED=""
+ if [[ $PERC -gt $UPPER_LIMIT ]]; then
+ LIMIT=${UPPER_LIMIT}
+ else
+ LIMIT=${LOWER_LIMIT}
+ fi
+ fi
+ debug "sleeping ${SLEEP_TIME}; current limit ${LIMIT}%; ${POPUP_CLICKED:+Popup was clicked}"
+ sleep "${SLEEP_TIME}"
+ done
+}
+
+
+if [[ -n $LOGFILE ]]; then
+ exec >>"$LOGFILE" 2>&1
+fi
+
+main
diff --git a/bin/tt b/bin/tt
index ca38d91..bba9035 120000
--- a/bin/tt
+++ b/bin/tt
@@ -1 +1 @@
-/home/jakob/_code/timetracker/timetracker.py \ No newline at end of file
+/home/jakob/_code/timetracker/tt \ No newline at end of file
diff --git a/bin/wallpaper.sh b/bin/wallpaper.sh
new file mode 100755
index 0000000..d0106ac
--- /dev/null
+++ b/bin/wallpaper.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+for i in 0 1 2 3 4 5 6 7 8 9; do
+ nitrogen --head=$i --set-zoom-fill ~/.wallpaper.jpg
+done
diff --git a/install/install_linux.sh b/install/install_linux.sh
index fffb066..0804828 100755
--- a/install/install_linux.sh
+++ b/install/install_linux.sh
@@ -51,6 +51,13 @@ if [ $res -eq 1 ]; then
tput rc; tput ed
fi
+dlgYN "> autorandr" res
+if [ $res -eq 1 ]; then
+ tput sc
+ pip install autorandr
+ tput rc; tput ed
+fi
+
dlgYN "> Create symlinks" res
if [ $res -eq 1 ]; then
CWD=$(pwd)
@@ -66,6 +73,7 @@ if [ $res -eq 1 ]; then
ln -isf "$CWD/Common/i3/Xresources" ~/.Xresources
ln -isf "$CWD/Common/i3/xsettingsd" ~/.xsettingsd
ln -isf "$CWD/Common/rofi" ~/.config/rofi
+ ln -isf "$CWD/Common/deadd" ~/.config/deadd
tput rc; tput ed
fi