feat: debian specific configuration

This commit is contained in:
AngeD 2022-08-17 09:51:27 +02:00
parent 36676206b8
commit bb1e2f21c1
6 changed files with 30 additions and 28 deletions

View File

@ -6,7 +6,7 @@ set $up j
set $right l set $right l
set $menu dmenu_path | dmenu | xargs swaymsg exec -- set $menu dmenu_path | dmenu | xargs swaymsg exec --
set $term alacritty set $term kitty
set $browser firefox set $browser firefox
set $files pcmanfm set $files pcmanfm
set $wallpapers $HOME/.config/wallpapers set $wallpapers $HOME/.config/wallpapers

View File

@ -1,26 +1,17 @@
# fix slow startup time # fix slow startup time
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
# Lock after $screen_timeout # Turn off screen after $screen_timeout
# Turn off screen after $screem_timeout - 10 # Lock after $screen_timeout + 10s
# Lock if screen off # Lock if screen off
exec swayidle -w \ exec swayidle -w \
timeout $(($screen_timeout + 10)) "$lock" \ timeout $(($screen_timeout + 10)) "$lock" \
timeout $screen_timeout 'swaymsg "output * dpms off"' \ timeout $screen_timeout 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \ resume 'swaymsg "output * dpms on"' \
before-sleep "$lock" before-sleep "$lock"
# GTK theme
exec gsettings set org.gnome.desktop.interface gtk-theme "Materia-dark"
exec gsettings set org.gnome.desktop.interface icon-theme "Papirus-Dark"
bar swaybar_command waybar bar swaybar_command waybar
exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
#exec swayidle -w \
# timeout $(($screen_timeout + 10)) $lock \
# timeout $screen_timeout 'swaymsg "output * dpms off"' \
# resume 'swaymsg "output * dpms on"' \
# before-sleep $lock
exec gammastep exec gammastep
exec nm-applet --indicator exec nm-applet --indicator

View File

@ -1,7 +1,8 @@
{ {
"modules-left": ["sway/workspaces"], "modules-left": ["sway/workspaces"],
"modules-center": ["sway/window"], "modules-center": ["sway/window"],
"modules-right": ["pulseaudio", "cpu", "memory", "temperature", "backlight", "battery", "tray", "clock"], //"modules-right": ["pulseaudio", "cpu", "memory", "temperature", "backlight", "battery", "tray", "clock"],
"modules-right": ["pulseaudio", "cpu", "memory", "temperature", "backlight", "battery", "tray", "custom/clock"],
"backlight": { "backlight": {
"format": "{percent}% {icon}", "format": "{percent}% {icon}",
"format-icons": ["", ""], "format-icons": ["", ""],
@ -20,9 +21,13 @@
"format-alt": "{time} {icon}", "format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""], "format-icons": ["", "", "", "", ""],
}, },
"clock": { //"clock": {
"format": "{:%a %b %d, %R}", // "format": "{:%a %b %d, %R}",
"tooltip-format": "<tt>{calendar}</tt>", // "tooltip-format": "<tt>{calendar}</tt>",
//},
"custom/clock": {
"exec": "date '+%a %b %d, %R'",
"interval": 5,
}, },
"cpu": { "cpu": {
"format": "{usage}% ", "format": "{usage}% ",
@ -54,8 +59,8 @@
"default": ["", "", ""], "default": ["", "", ""],
}, },
"on-click": "pavucontrol", "on-click": "pavucontrol",
"on-scroll-up": "set-vol +2", "on-scroll-up": "set-vol +5",
"on-scroll-down": "set-vol -2", "on-scroll-down": "set-vol -5",
"smooth-scrolling-threshold": 1, "smooth-scrolling-threshold": 1,
}, },
"temperature": { "temperature": {

View File

@ -985,7 +985,7 @@
typeset -g POWERLEVEL9K_PYENV_SOURCES=(shell local global) typeset -g POWERLEVEL9K_PYENV_SOURCES=(shell local global)
# If set to false, hide python version if it's the same as global: # If set to false, hide python version if it's the same as global:
# $(pyenv version-name) == $(pyenv global). # $(pyenv version-name) == $(pyenv global).
typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=true
# If set to false, hide python version if it's equal to "system". # If set to false, hide python version if it's equal to "system".
typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=true typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=true

View File

@ -1,6 +1,10 @@
#!/bin/sh #!/bin/sh
xrandr \ xrandr \
--output HDMI-2 --auto --primary --output HDMI-2 --auto --primary \
--output eDP-1 --left-of HDMI-2 --output eDP-1 --left-of HDMI-2
# fix touchscreen
xinput --map-to-output 'Raydium Corporation Raydium Touch System' 'eDP-1'
exec x-window-manager exec x-window-manager

View File

@ -5,8 +5,10 @@ shopt -s extglob nullglob
set_brightness() { set_brightness() {
MAX="$(cat "$1"/max_brightness)" MAX="$(cat "$1"/max_brightness)"
FILE="$1"/brightness FILE="$1"/brightness
VAL="$(($2 * MAX / 100))" VAL="$(($2 * MAX / 100 + 1))"
[ "$VAL" -lt 0 ] && VAL=0
[ "$VAL" -gt "$MAX" ] && VAL="$MAX"
echo "$VAL" > "$FILE" echo "$VAL" > "$FILE"
} }