changes
This commit is contained in:
parent
60074da995
commit
56f12ea04a
|
@ -119,8 +119,10 @@ return require('packer').startup({ function(use)
|
||||||
require('dressing').setup({
|
require('dressing').setup({
|
||||||
input = {
|
input = {
|
||||||
default_prompt = '❯',
|
default_prompt = '❯',
|
||||||
|
win_options = {
|
||||||
winhighlight = 'NormalFloat:Normal',
|
winhighlight = 'NormalFloat:Normal',
|
||||||
},
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
vim.cmd [[highlight link FloatTitle NonText]]
|
vim.cmd [[highlight link FloatTitle NonText]]
|
||||||
vim.cmd [[highlight link DressingInputText Normal]]
|
vim.cmd [[highlight link DressingInputText Normal]]
|
||||||
|
|
|
@ -264,7 +264,7 @@ label = %percentage_used%%
|
||||||
|
|
||||||
[module/wlan]
|
[module/wlan]
|
||||||
type = internal/network
|
type = internal/network
|
||||||
interface = wlp45s0
|
interface = wlo1
|
||||||
interval = 3.0
|
interval = 3.0
|
||||||
|
|
||||||
format-connected = <ramp-signal> <label-connected>
|
format-connected = <ramp-signal> <label-connected>
|
||||||
|
|
3
scripts/ctl-brightness
Executable file
3
scripts/ctl-brightness
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
oled-brightness "$@"
|
32
scripts/oled-brightness
Executable file
32
scripts/oled-brightness
Executable file
|
@ -0,0 +1,32 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
BR_DIR="/sys/class/backlight/intel_backlight/"
|
||||||
|
|
||||||
|
|
||||||
|
test -d "$BR_DIR" || exit 0
|
||||||
|
|
||||||
|
MIN=0
|
||||||
|
MAX=$(cat "$BR_DIR/max_brightness")
|
||||||
|
VAL=$(cat "$BR_DIR/brightness")
|
||||||
|
|
||||||
|
if [ "$1" = down ]; then
|
||||||
|
VAL=$((VAL-4096))
|
||||||
|
else
|
||||||
|
VAL=$((VAL+4096))
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$VAL" -lt $MIN ]; then
|
||||||
|
VAL=$MIN
|
||||||
|
elif [ "$VAL" -gt $MAX ]; then
|
||||||
|
VAL=$MAX
|
||||||
|
fi
|
||||||
|
|
||||||
|
PERCENT=`echo "$VAL / $MAX" | bc -l`
|
||||||
|
|
||||||
|
export XAUTHORITY=$HOME/.Xauthority # CHANGE "ivo" TO YOUR USER
|
||||||
|
export DISPLAY=:0
|
||||||
|
|
||||||
|
echo "xrandr --output eDP-1 --brightness $PERCENT" > /tmp/oled-brightness.log
|
||||||
|
xrandr --output eDP-1 --brightness $PERCENT
|
||||||
|
|
||||||
|
echo $VAL | sudo tee "$BR_DIR/brightness"
|
|
@ -70,10 +70,10 @@ XF86AudioPrev
|
||||||
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
|
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
|
||||||
|
|
||||||
XF86MonBrightnessUp
|
XF86MonBrightnessUp
|
||||||
brightnessctl s 16+
|
ctl-brightness up
|
||||||
|
|
||||||
XF86MonBrightnessDown
|
XF86MonBrightnessDown
|
||||||
brightnessctl s 16-
|
ctl-brightness down
|
||||||
|
|
||||||
# spotify
|
# spotify
|
||||||
super + ctrl + alt + Up
|
super + ctrl + alt + Up
|
||||||
|
|
|
@ -26,9 +26,9 @@
|
||||||
\RequirePackage{graphicx}
|
\RequirePackage{graphicx}
|
||||||
\RequirePackage[usenames,dvipsnames]{xcolor}
|
\RequirePackage[usenames,dvipsnames]{xcolor}
|
||||||
\RequirePackage{bm}
|
\RequirePackage{bm}
|
||||||
\RequirePackage{siunitx}
|
\RequirePackage{siunitx}[=v2]
|
||||||
\RequirePackage{physics}
|
\RequirePackage{physics}
|
||||||
\let\qty\SI%
|
\RenewCommandCopy\qty\SI%
|
||||||
\RequirePackage{etoolbox}
|
\RequirePackage{etoolbox}
|
||||||
\RequirePackage{xifthen}
|
\RequirePackage{xifthen}
|
||||||
\RequirePackage{import}
|
\RequirePackage{import}
|
||||||
|
|
|
@ -25,9 +25,9 @@
|
||||||
\RequirePackage{graphicx}
|
\RequirePackage{graphicx}
|
||||||
\RequirePackage[usenames,dvipsnames]{xcolor}
|
\RequirePackage[usenames,dvipsnames]{xcolor}
|
||||||
\RequirePackage{bm}
|
\RequirePackage{bm}
|
||||||
\RequirePackage{siunitx}
|
\RequirePackage{siunitx}[=v2]
|
||||||
\RequirePackage{physics}
|
\RequirePackage{physics}
|
||||||
\let\qty\SI%
|
\RenewCommandCopy\qty\SI%
|
||||||
\RequirePackage{etoolbox}
|
\RequirePackage{etoolbox}
|
||||||
\RequirePackage{xifthen}
|
\RequirePackage{xifthen}
|
||||||
\RequirePackage{import}
|
\RequirePackage{import}
|
||||||
|
|
|
@ -22,7 +22,9 @@
|
||||||
\RequirePackage{geometry}
|
\RequirePackage{geometry}
|
||||||
\RequirePackage{graphicx}
|
\RequirePackage{graphicx}
|
||||||
\RequirePackage[usenames,dvipsnames]{xcolor}
|
\RequirePackage[usenames,dvipsnames]{xcolor}
|
||||||
|
\RequirePackage{siunitx}[=v2]
|
||||||
\RequirePackage{physics}
|
\RequirePackage{physics}
|
||||||
|
\RenewCommandCopy\qty\SI%
|
||||||
\RequirePackage{bm}
|
\RequirePackage{bm}
|
||||||
\RequirePackage{pgfplots}
|
\RequirePackage{pgfplots}
|
||||||
\pgfplotsset{
|
\pgfplotsset{
|
||||||
|
|
|
@ -25,9 +25,9 @@
|
||||||
\RequirePackage{graphicx}
|
\RequirePackage{graphicx}
|
||||||
\RequirePackage[usenames,dvipsnames]{xcolor}
|
\RequirePackage[usenames,dvipsnames]{xcolor}
|
||||||
\RequirePackage{bm}
|
\RequirePackage{bm}
|
||||||
\RequirePackage{siunitx}
|
\RequirePackage{siunitx}[=v2]
|
||||||
\RequirePackage{physics}
|
\RequirePackage{physics}
|
||||||
\let\qty\SI%
|
\RenewCommandCopy\qty\SI%
|
||||||
\RequirePackage{etoolbox}
|
\RequirePackage{etoolbox}
|
||||||
\RequirePackage{xifthen}
|
\RequirePackage{xifthen}
|
||||||
\RequirePackage{import}
|
\RequirePackage{import}
|
||||||
|
|
|
@ -25,9 +25,9 @@
|
||||||
\RequirePackage{graphicx}
|
\RequirePackage{graphicx}
|
||||||
\RequirePackage[usenames,dvipsnames]{xcolor}
|
\RequirePackage[usenames,dvipsnames]{xcolor}
|
||||||
\RequirePackage{bm}
|
\RequirePackage{bm}
|
||||||
\RequirePackage{siunitx}
|
\RequirePackage{siunitx}[=v2]
|
||||||
\RequirePackage{physics}
|
\RequirePackage{physics}
|
||||||
\let\qty\SI%
|
\RenewCommandCopy\qty\SI%
|
||||||
\RequirePackage{etoolbox}
|
\RequirePackage{etoolbox}
|
||||||
\RequirePackage{xifthen}
|
\RequirePackage{xifthen}
|
||||||
\RequirePackage{import}
|
\RequirePackage{import}
|
||||||
|
|
|
@ -25,9 +25,9 @@
|
||||||
\RequirePackage{graphicx}
|
\RequirePackage{graphicx}
|
||||||
\RequirePackage[usenames,dvipsnames]{xcolor}
|
\RequirePackage[usenames,dvipsnames]{xcolor}
|
||||||
\RequirePackage{bm}
|
\RequirePackage{bm}
|
||||||
\RequirePackage{siunitx}
|
\RequirePackage{siunitx}[=v2]
|
||||||
\RequirePackage{physics}
|
\RequirePackage{physics}
|
||||||
\let\qty\SI%
|
\RenewCommandCopy\qty\SI%
|
||||||
\RequirePackage{etoolbox}
|
\RequirePackage{etoolbox}
|
||||||
\RequirePackage{xifthen}
|
\RequirePackage{xifthen}
|
||||||
\RequirePackage{import}
|
\RequirePackage{import}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user