Fix monitor problems
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
92c15e04d0
commit
be92d7f1b3
12 changed files with 149 additions and 128 deletions
|
@ -11,16 +11,16 @@
|
|||
# This file is loaded on boot by crontab.
|
||||
|
||||
# Synchronize Google Drive every 15 minutes
|
||||
*/15 * * * * grive -d -p $HOME/documents/ >> $HOME/.local/log/cron.log
|
||||
*/15 * * * * grive -d -p $HOME/documents/ >> $HOME/.local/log/cron.log 2>&1
|
||||
|
||||
# Sync pacman databases every 15 minutes
|
||||
*/15 * * * * sudo $HOME/.local/bin/sync-packages >> $HOME/.local/log/cron.log
|
||||
*/15 * * * * sudo $HOME/.local/bin/sync-packages >> $HOME/.local/log/cron.log 2>&1
|
||||
|
||||
# Synchronize notes every 15 minutes
|
||||
*/15 * * * * $HOME/.local/bin/sync-notes >> $HOME/.local/log/cron.log
|
||||
*/15 * * * * $HOME/.local/bin/sync-notes >> $HOME/.local/log/cron.log 2>&1
|
||||
|
||||
# Synchronize tasks every 10 minutes
|
||||
*/10 * * * * $HOME/.local/bin/sync-tasks >> $HOME/.local/log/cron.log
|
||||
*/10 * * * * $HOME/.local/bin/sync-tasks >> $HOME/.local/log/cron.log 2>&1
|
||||
|
||||
# Synchronize rss feeds every 15 minutes
|
||||
*/15 * * * * $HOME/.local/bin/rss-sync >> $HOME/.local/log/cron.log
|
||||
*/15 * * * * $HOME/.local/bin/rss-sync >> $HOME/.local/log/cron.log 2>&1
|
||||
|
|
|
@ -16,6 +16,10 @@ if [ -f "${XDG_BIN_HOME}/utils" ]; then
|
|||
. "${XDG_BIN_HOME}/utils"
|
||||
fi
|
||||
|
||||
if [ -z "${HOME}" ]; then
|
||||
export HOME="/home/severin"
|
||||
fi
|
||||
|
||||
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||
export XDG_CACHE_HOME="${HOME}/.cache"
|
||||
export XDG_DATA_HOME="${HOME}/.local/share"
|
||||
|
|
|
@ -22,17 +22,11 @@ exec --no-startup-id "i3-msg 'workspace 1: '"
|
|||
# Start compton
|
||||
exec --no-startup-id compton -b
|
||||
|
||||
# Start polybar
|
||||
exec_always --no-startup-id $XDG_CONFIG_HOME/polybar/launch
|
||||
|
||||
# Start dunst
|
||||
exec --no-startup-id dunst
|
||||
|
||||
# Set resolution
|
||||
exec_always --no-startup-id resolution
|
||||
|
||||
# Set wallpaper
|
||||
exec_always --no-startup-id wallpaper
|
||||
# Setup monitor
|
||||
exec_always --no-startup-id monitor-setup
|
||||
|
||||
# Other applications
|
||||
exec autokey-gtk
|
||||
|
|
|
@ -16,17 +16,11 @@ exec --no-startup-id "i3-msg 'workspace 1: '"
|
|||
# Start compton
|
||||
exec --no-startup-id compton -b
|
||||
|
||||
# Start polybar
|
||||
exec_always --no-startup-id $XDG_CONFIG_HOME/polybar/launch
|
||||
|
||||
# Start dunst
|
||||
exec --no-startup-id dunst
|
||||
|
||||
# Set resolution
|
||||
exec_always --no-startup-id resolution
|
||||
|
||||
# Set wallpaper
|
||||
exec_always --no-startup-id wallpaper
|
||||
# Setup monitor
|
||||
exec_always --no-startup-id monitor-setup
|
||||
|
||||
# Other applications
|
||||
exec autokey-gtk
|
||||
|
|
|
@ -23,7 +23,7 @@ bar-height = 35
|
|||
# Top bar
|
||||
#######################################
|
||||
[bar/top]
|
||||
monitor = HDMI1
|
||||
monitor = ${env:POLYBAR_MONITOR}
|
||||
|
||||
width = 100%
|
||||
height = ${settings.bar-height}
|
||||
|
@ -50,26 +50,6 @@ separator = |
|
|||
scroll-up = i3wm-desknext
|
||||
scroll-down = i3wm-deskprev
|
||||
|
||||
[bar/top2]
|
||||
inherit = bar/top
|
||||
monitor = eDP1
|
||||
|
||||
[bar/top3]
|
||||
inherit = bar/top
|
||||
monitor = DVI-I-1-1
|
||||
|
||||
[bar/top-nvidia]
|
||||
inherit = bar/top
|
||||
monitor = HDMI-1-1
|
||||
|
||||
[bar/top2-nvidia]
|
||||
inherit = bar/top
|
||||
monitor = eDP-1-1
|
||||
|
||||
[bar/top3-nvidia]
|
||||
inherit = bar/top
|
||||
monitor = DVI-I-2-1
|
||||
|
||||
|
||||
#######################################
|
||||
# Bottom bar
|
||||
|
@ -80,31 +60,6 @@ bottom = true
|
|||
modules-left =
|
||||
modules-center =
|
||||
modules-right = music
|
||||
tray-position = none
|
||||
|
||||
[bar/bottom2]
|
||||
inherit = bar/bottom
|
||||
monitor = eDP1
|
||||
tray-position = left
|
||||
|
||||
[bar/bottom3]
|
||||
inherit = bar/bottom
|
||||
monitor = DVI-I-1-1
|
||||
tray-position = left
|
||||
|
||||
[bar/bottom-nvidia]
|
||||
inherit = bar/bottom
|
||||
monitor = HDMI-1-1
|
||||
tray-position = none
|
||||
|
||||
[bar/bottom2-nvidia]
|
||||
inherit = bar/bottom
|
||||
monitor = eDP-1-1
|
||||
tray-position = left
|
||||
|
||||
[bar/bottom3-nvidia]
|
||||
inherit = bar/bottom
|
||||
monitor = DVI-I-2-1
|
||||
tray-position = left
|
||||
|
||||
|
||||
|
|
|
@ -1,44 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# SCRIPT NAME:
|
||||
# .config/polybar/launch
|
||||
#
|
||||
# AUTHOR:
|
||||
# Severin Kaderli <severin@kaderli.dev>
|
||||
#
|
||||
# DESCRIPTION:
|
||||
# This script kills existing polybar processes and then launches the bars.
|
||||
#
|
||||
# USAGE:
|
||||
# ./launch
|
||||
|
||||
# Terminate already running bar instances
|
||||
pkill polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
if [ "${IS_WORK}" = "1" ]; then
|
||||
export POLYBAR_BATTERY="BAT1"
|
||||
export POLYBAR_WLAN="wlp4s0"
|
||||
export POLYBAR_NETWORK="enp0s31f6"
|
||||
else
|
||||
export POLYBAR_BATTERY="BAT0"
|
||||
export POLYBAR_WLAN="wlp3s0"
|
||||
export POLYBAR_NETWORK="enp0s31f6"
|
||||
fi
|
||||
|
||||
# Launch bar1 and bar2
|
||||
polybar top &
|
||||
polybar top2 &
|
||||
polybar top3 &
|
||||
polybar bottom &
|
||||
polybar bottom2 &
|
||||
polybar bottom3 &
|
||||
|
||||
polybar top-nvidia &
|
||||
polybar top2-nvidia &
|
||||
polybar top3-nvidia &
|
||||
polybar bottom-nvidia &
|
||||
polybar bottom2-nvidia &
|
||||
polybar bottom3-nvidia &
|
Loading…
Add table
Add a link
Reference in a new issue