changes
This commit is contained in:
parent
60074da995
commit
56f12ea04a
|
@ -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]]
|
||||
|
|
|
@ -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
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
|
||||
|
||||
XF86MonBrightnessUp
|
||||
brightnessctl s 16+
|
||||
ctl-brightness up
|
||||
|
||||
XF86MonBrightnessDown
|
||||
brightnessctl s 16-
|
||||
ctl-brightness down
|
||||
|
||||
# spotify
|
||||
super + ctrl + alt + Up
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -22,7 +22,9 @@
|
|||
\RequirePackage{geometry}
|
||||
\RequirePackage{graphicx}
|
||||
\RequirePackage[usenames,dvipsnames]{xcolor}
|
||||
\RequirePackage{siunitx}[=v2]
|
||||
\RequirePackage{physics}
|
||||
\RenewCommandCopy\qty\SI%
|
||||
\RequirePackage{bm}
|
||||
\RequirePackage{pgfplots}
|
||||
\pgfplotsset{
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue
Block a user