Compare commits

..

2 Commits

Author SHA1 Message Date
beb82491cb fixes 2022-12-12 12:31:40 -05:00
56f12ea04a changes 2022-12-12 12:30:43 -05:00
11 changed files with 53 additions and 16 deletions

View File

@ -119,7 +119,9 @@ return require('packer').startup({ function(use)
require('dressing').setup({
input = {
default_prompt = '',
winhighlight = 'NormalFloat:Normal',
win_options = {
winhighlight = 'NormalFloat:Normal',
},
},
})
vim.cmd [[highlight link FloatTitle NonText]]

View File

@ -264,7 +264,7 @@ label = %percentage_used%%
[module/wlan]
type = internal/network
interface = wlp45s0
interface = wlo1
interval = 3.0
format-connected = <ramp-signal> <label-connected>

3
scripts/ctl-brightness Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
oled-brightness "$@"

32
scripts/oled-brightness Executable file
View 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"

View File

@ -70,10 +70,10 @@ XF86AudioPrev
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
XF86MonBrightnessUp
brightnessctl s 16+
ctl-brightness up
XF86MonBrightnessDown
brightnessctl s 16-
ctl-brightness down
# spotify
super + ctrl + alt + Up

View File

@ -26,9 +26,9 @@
\RequirePackage{graphicx}
\RequirePackage[usenames,dvipsnames]{xcolor}
\RequirePackage{bm}
\RequirePackage{siunitx}
\RequirePackage{siunitx}[=v2]
\RequirePackage{physics}
\let\qty\SI%
\RenewCommandCopy\qty\SI%
\RequirePackage{etoolbox}
\RequirePackage{xifthen}
\RequirePackage{import}

View File

@ -25,9 +25,9 @@
\RequirePackage{graphicx}
\RequirePackage[usenames,dvipsnames]{xcolor}
\RequirePackage{bm}
\RequirePackage{siunitx}
\RequirePackage{siunitx}[=v2]
\RequirePackage{physics}
\let\qty\SI%
\RenewCommandCopy\qty\SI%
\RequirePackage{etoolbox}
\RequirePackage{xifthen}
\RequirePackage{import}

View File

@ -22,9 +22,9 @@
\RequirePackage{geometry}
\RequirePackage{graphicx}
\RequirePackage[usenames,dvipsnames]{xcolor}
\RequirePackage{siunitx}
\RequirePackage{siunitx}[=v2]
\RequirePackage{physics}
\let\qty\SI%
\RenewCommandCopy\qty\SI%
\RequirePackage{bm}
\RequirePackage{pgfplots}
\pgfplotsset{

View File

@ -25,9 +25,9 @@
\RequirePackage{graphicx}
\RequirePackage[usenames,dvipsnames]{xcolor}
\RequirePackage{bm}
\RequirePackage{siunitx}
\RequirePackage{siunitx}[=v2]
\RequirePackage{physics}
\let\qty\SI%
\RenewCommandCopy\qty\SI%
\RequirePackage{etoolbox}
\RequirePackage{xifthen}
\RequirePackage{import}

View File

@ -25,9 +25,9 @@
\RequirePackage{graphicx}
\RequirePackage[usenames,dvipsnames]{xcolor}
\RequirePackage{bm}
\RequirePackage{siunitx}
\RequirePackage{siunitx}[=v2]
\RequirePackage{physics}
\let\qty\SI%
\RenewCommandCopy\qty\SI%
\RequirePackage{etoolbox}
\RequirePackage{xifthen}
\RequirePackage{import}

View File

@ -25,9 +25,9 @@
\RequirePackage{graphicx}
\RequirePackage[usenames,dvipsnames]{xcolor}
\RequirePackage{bm}
\RequirePackage{siunitx}
\RequirePackage{siunitx}[=v2]
\RequirePackage{physics}
\let\qty\SI%
\RenewCommandCopy\qty\SI%
\RequirePackage{etoolbox}
\RequirePackage{xifthen}
\RequirePackage{import}