Initial commit with fish, i3, nvim and polybar configuration
This commit is contained in:
9
.config/i3/scripts/brightness.sh
Executable file
9
.config/i3/scripts/brightness.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
CURRBRIGHT=$(xrandr --current --verbose | grep -m 1 'Brightness:' | cut -f2- -d:)
|
||||
if [ "$1" = "+" ] && [ $(echo "$CURRBRIGHT < 1" | bc) -eq 1 ]
|
||||
then
|
||||
xrandr --output $2 --brightness $(echo "$CURRBRIGHT + 0.1" | bc)
|
||||
elif [ "$1" = "-" ] && [ $(echo "$CURRBRIGHT > 0" | bc) -eq 1 ]
|
||||
then
|
||||
xrandr --output $2 --brightness $(echo "$CURRBRIGHT - 0.1" | bc)
|
||||
fi
|
||||
49
.config/i3/scripts/swap_monitors.sh
Executable file
49
.config/i3/scripts/swap_monitors.sh
Executable file
@@ -0,0 +1,49 @@
|
||||
#!/bin/bash
|
||||
INTERNAL_OUTPUT="eDP-1"
|
||||
|
||||
EXTERNAL_OUTPUT_1="DP-1"
|
||||
EXTERNAL_OUTPUT_2="DP-2"
|
||||
|
||||
## MONITOR CONFIGURATION
|
||||
|
||||
# .----------. .------------. .------------.
|
||||
# | | | | | |
|
||||
# | eDP-1 | | DP-2 | | DP-1 |
|
||||
# | | | | | |
|
||||
# '----------' '------------' '------------'
|
||||
# /_/_/__\_\_\ I I
|
||||
# /_/_/____\_\_\ _I_ _I_
|
||||
|
||||
|
||||
# if we don't have a file, start at zero
|
||||
if [ ! -f "/tmp/monitor_mode.dat" ] ; then
|
||||
monitor_mode="all"
|
||||
# otherwise read the value from the file
|
||||
else
|
||||
monitor_mode=`cat /tmp/monitor_mode.dat`
|
||||
fi
|
||||
|
||||
if [ $monitor_mode = "all" ]; then
|
||||
monitor_mode="INTERNAL"
|
||||
xrandr --output $INTERNAL_OUTPUT --auto
|
||||
xrandr --output $EXTERNAL_OUTPUT_1 --off
|
||||
xrandr --output $EXTERNAL_OUTPUT_2 --off
|
||||
notify-send 'External display OFF'
|
||||
# elif [ $monitor_mode = "EXTERNAL" ]; then
|
||||
# monitor_mode="INTERNAL"
|
||||
# xrandr --output $INTERNAL_OUTPUT --auto
|
||||
# xrandr --output $EXTERNAL_OUTPUT_1 --off
|
||||
# xrandr --output $EXTERNAL_OUTPUT_2 --off
|
||||
# elif [ $monitor_mode = "INTERNAL" ]; then
|
||||
# monitor_mode="CLONES"
|
||||
# xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --auto --same-as $INTERNAL_OUTPUT
|
||||
else
|
||||
monitor_mode="all"
|
||||
xrandr --output $INTERNAL_OUTPUT --auto
|
||||
xrandr --output $EXTERNAL_OUTPUT_1 --auto --right-of $INTERNAL_OUTPUT
|
||||
xrandr --output $EXTERNAL_OUTPUT_2 --auto --right-of $EXTERNAL_OUTPUT_1
|
||||
~/.config/polybar/launch.sh
|
||||
notify-send 'External display ON'
|
||||
fi
|
||||
|
||||
echo "${monitor_mode}" > /tmp/monitor_mode.dat
|
||||
18
.config/i3/scripts/wallpapers.sh
Executable file
18
.config/i3/scripts/wallpapers.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
script_name=${BASH_SOURCE[0]}
|
||||
for pid in $(pidof -x $script_name); do
|
||||
if [ $pid != $$ ]; then
|
||||
kill -9 $pid
|
||||
fi
|
||||
done
|
||||
|
||||
# source /home/marc/venv/marc/bin/activate
|
||||
|
||||
while true
|
||||
do
|
||||
# python /home/marc/Pictures/Pixel/render.py
|
||||
# feh --bg-center /home/marc/Pictures/Pixel/rendered.bmp
|
||||
feh --randomize --bg-fill ~/Pictures/Island/extra/*.jpg
|
||||
sleep 5m
|
||||
done
|
||||
Reference in New Issue
Block a user