Merge branch 'master' of github.com:Jab2870/dotfiles
This commit is contained in:
commit
c7b994175e
7 changed files with 74 additions and 15 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -7,3 +7,6 @@
|
||||||
[submodule "shells/zsh/zsh-syntax-highlighting"]
|
[submodule "shells/zsh/zsh-syntax-highlighting"]
|
||||||
path = shells/zsh/zsh-syntax-highlighting
|
path = shells/zsh/zsh-syntax-highlighting
|
||||||
url = https://github.com/zsh-users/zsh-syntax-highlighting.git
|
url = https://github.com/zsh-users/zsh-syntax-highlighting.git
|
||||||
|
[submodule "shells/zsh/oh-my-zsh/plugins/zsh-autosuggestions"]
|
||||||
|
path = shells/zsh/oh-my-zsh/plugins/zsh-autosuggestions
|
||||||
|
url = https://github.com/zsh-users/zsh-autosuggestions
|
||||||
|
|
6
bin/setbackground
Executable file
6
bin/setbackground
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
rngback -fg "#404552" -bg "#5294e2" 3840 2160 30 15 -o ~/background.jpg
|
||||||
|
|
||||||
|
feh --bg-fill ~/background.jpg
|
||||||
|
|
57
i3/blocks/brightness
Executable file
57
i3/blocks/brightness
Executable file
|
@ -0,0 +1,57 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# One of the following: xrandr, xbacklight, kernel
|
||||||
|
METHOD="xbacklight"
|
||||||
|
|
||||||
|
# Left click
|
||||||
|
if [[ "${BLOCK_BUTTON}" -eq 1 ]]; then
|
||||||
|
xbacklight -inc 10
|
||||||
|
# Right click
|
||||||
|
elif [[ "${BLOCK_BUTTON}" -eq 3 ]]; then
|
||||||
|
xbacklight -dec 10
|
||||||
|
fi
|
||||||
|
|
||||||
|
URGENT_VALUE=10
|
||||||
|
|
||||||
|
if [[ "${METHOD}" = "xrandr" ]]; then
|
||||||
|
device="${BLOCK_INSTANCE:-primary}"
|
||||||
|
xrandrOutput=$(xrandr --verbose)
|
||||||
|
|
||||||
|
if [[ "${device}" = "primary" ]]; then
|
||||||
|
device=$(echo "${xrandrOutput}" | grep 'primary' | head -n 1 | awk -F ' ' '{print $1}')
|
||||||
|
fi
|
||||||
|
|
||||||
|
curBrightness=$(echo "${xrandrOutput}" | grep "${device}" -A 5 | grep -i "Brightness" | awk -F ':' '{print $2}')
|
||||||
|
elif [[ "${METHOD}" = "kernel" ]]; then
|
||||||
|
device="${BLOCK_INSTANCE:-intel_backlight}"
|
||||||
|
maxBrightness=$(cat /sys/class/backlight/${device}/max_brightness)
|
||||||
|
curBrightness=$(cat /sys/class/backlight/${device}/brightness)
|
||||||
|
elif [[ "${METHOD}" = "xbacklight" ]]; then
|
||||||
|
curBrightness=$(xbacklight -get)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "${curBrightness}" -le 0 ]]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "${METHOD}" = "xrandr" ]]; then
|
||||||
|
percent=$(echo "scale=0;${curBrightness} * 100" | bc -l)
|
||||||
|
elif [[ "${METHOD}" = "kernel" ]]; then
|
||||||
|
percent=$(echo "scale=0;${curBrightness} / ${maxBrightness} * 100" | bc -l)
|
||||||
|
elif [[ "${METHOD}" = "xbacklight" ]]; then
|
||||||
|
percent=$(echo "scale=0;${curBrightness}" | bc -l)
|
||||||
|
fi
|
||||||
|
|
||||||
|
percent=${percent%.*}
|
||||||
|
|
||||||
|
if [[ "${percent}" -le 0 ]]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "🔆${percent}%"
|
||||||
|
echo "${percent}%"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
if [[ "${percent}" -le "${URGENT_VALUE}" ]]; then
|
||||||
|
exit 33
|
||||||
|
fi
|
16
i3/config
16
i3/config
|
@ -235,6 +235,7 @@ bindsym $mod+r mode "resize"
|
||||||
# finds out, if available)
|
# finds out, if available)
|
||||||
bar {
|
bar {
|
||||||
#status_command i3status
|
#status_command i3status
|
||||||
|
#status_command i3blocks -c ./i3blocks-secondary.conf
|
||||||
status_command i3blocks
|
status_command i3blocks
|
||||||
#tray_output primary
|
#tray_output primary
|
||||||
colors {
|
colors {
|
||||||
|
@ -359,21 +360,8 @@ mode "$mode_gaps_outer" {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#exec --no-startup-id redshift-gtk
|
exec_always --no-startup-id setbackground
|
||||||
#exec_always feh --bg-fill /home/jonathan/Pictures/Wallpapers/blueConky/dfCXBel.jpg
|
|
||||||
exec --no-startup-id compton -f -i 0.95
|
exec --no-startup-id compton -f -i 0.95
|
||||||
exec_always --no-startup-id albert
|
exec_always --no-startup-id albert
|
||||||
#exec --no-startup-id nm-applet
|
|
||||||
#exec --no-startup-id blueman-applet
|
|
||||||
exec --no-startup-id xfce4-clipman
|
exec --no-startup-id xfce4-clipman
|
||||||
#exec --no-startup-id xfce4-power-manager
|
|
||||||
#exec_always --no-startup-id /usr/lib/kdeconnectd
|
|
||||||
#exec_always --no-startup-id indicator-kdeconnect
|
|
||||||
#exec_always --no-startup-id killall conky
|
|
||||||
#exec_always --no-startup-id sleep 1s; killall -9 conky
|
|
||||||
#exec --no-startup-id sh /home/jonathan/.conky/conky-startup.sh
|
|
||||||
#exec_always --no-startup-id sleep 2s; conky -c "/home/jonathan/.conky/BibleVerse/bibleGateway"
|
|
||||||
#exec_always --no-startup-id sleep 2s; conky -c "/home/jonathan/.conky/MyBlue/MyBlue"
|
|
||||||
#exec_always --no-startup-id cd /home/jonathan/.conky/Octupi_Arch
|
|
||||||
#exec_always --no-startup-id sleep 2s; conky -c "co_main"
|
|
||||||
exec setxkbmap gb
|
exec setxkbmap gb
|
||||||
|
|
|
@ -97,6 +97,10 @@ instance=Master
|
||||||
interval=once
|
interval=once
|
||||||
signal=10
|
signal=10
|
||||||
|
|
||||||
|
[brightness]
|
||||||
|
command=~/.dotfiles/i3/blocks/brightness
|
||||||
|
interval=once
|
||||||
|
|
||||||
# Memory usage
|
# Memory usage
|
||||||
#
|
#
|
||||||
# The type defaults to "mem" if the instance is not specified.
|
# The type defaults to "mem" if the instance is not specified.
|
||||||
|
|
1
shells/zsh/oh-my-zsh/plugins/zsh-autosuggestions
Submodule
1
shells/zsh/oh-my-zsh/plugins/zsh-autosuggestions
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 67a364bc1766fb775010cd00dda1967210013410
|
|
@ -52,7 +52,7 @@ ZSH_CUSTOM=$HOME/.dotfiles/shells/zsh/oh-my-zsh
|
||||||
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
plugins=(git)
|
plugins=(git zsh-autosuggestions)
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue