feat: debian specific configuration
This commit is contained in:
parent
36676206b8
commit
bb1e2f21c1
@ -6,7 +6,7 @@ set $up j
|
||||
set $right l
|
||||
|
||||
set $menu dmenu_path | dmenu | xargs swaymsg exec --
|
||||
set $term alacritty
|
||||
set $term kitty
|
||||
set $browser firefox
|
||||
set $files pcmanfm
|
||||
set $wallpapers $HOME/.config/wallpapers
|
||||
|
@ -1,26 +1,17 @@
|
||||
# fix slow startup time
|
||||
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
|
||||
|
||||
# Lock after $screen_timeout
|
||||
# Turn off screen after $screem_timeout - 10
|
||||
# Turn off screen after $screen_timeout
|
||||
# Lock after $screen_timeout + 10s
|
||||
# Lock if screen off
|
||||
exec swayidle -w \
|
||||
timeout $(($screen_timeout + 10)) "$lock" \
|
||||
timeout $screen_timeout 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
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"
|
||||
exec swayidle -w \
|
||||
timeout $(($screen_timeout + 10)) "$lock" \
|
||||
timeout $screen_timeout 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep "$lock"
|
||||
|
||||
bar swaybar_command waybar
|
||||
|
||||
exec /usr/lib/polkit-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 /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
|
||||
exec gammastep
|
||||
exec nm-applet --indicator
|
||||
|
@ -1,7 +1,8 @@
|
||||
{
|
||||
"modules-left": ["sway/workspaces"],
|
||||
"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": {
|
||||
"format": "{percent}% {icon}",
|
||||
"format-icons": ["", ""],
|
||||
@ -20,9 +21,13 @@
|
||||
"format-alt": "{time} {icon}",
|
||||
"format-icons": ["", "", "", "", ""],
|
||||
},
|
||||
"clock": {
|
||||
"format": "{:%a %b %d, %R}",
|
||||
"tooltip-format": "<tt>{calendar}</tt>",
|
||||
//"clock": {
|
||||
// "format": "{:%a %b %d, %R}",
|
||||
// "tooltip-format": "<tt>{calendar}</tt>",
|
||||
//},
|
||||
"custom/clock": {
|
||||
"exec": "date '+%a %b %d, %R'",
|
||||
"interval": 5,
|
||||
},
|
||||
"cpu": {
|
||||
"format": "{usage}% ",
|
||||
@ -54,8 +59,8 @@
|
||||
"default": ["", "", ""],
|
||||
},
|
||||
"on-click": "pavucontrol",
|
||||
"on-scroll-up": "set-vol +2",
|
||||
"on-scroll-down": "set-vol -2",
|
||||
"on-scroll-up": "set-vol +5",
|
||||
"on-scroll-down": "set-vol -5",
|
||||
"smooth-scrolling-threshold": 1,
|
||||
},
|
||||
"temperature": {
|
||||
|
@ -985,7 +985,7 @@
|
||||
typeset -g POWERLEVEL9K_PYENV_SOURCES=(shell local global)
|
||||
# If set to false, hide python version if it's the same as 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".
|
||||
typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=true
|
||||
|
||||
|
8
.xinitrc
8
.xinitrc
@ -1,6 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
xrandr \
|
||||
--output HDMI-2 --auto --primary
|
||||
xrandr \
|
||||
--output HDMI-2 --auto --primary \
|
||||
--output eDP-1 --left-of HDMI-2
|
||||
|
||||
# fix touchscreen
|
||||
xinput --map-to-output 'Raydium Corporation Raydium Touch System' 'eDP-1'
|
||||
|
||||
exec x-window-manager
|
||||
|
@ -5,8 +5,10 @@ shopt -s extglob nullglob
|
||||
set_brightness() {
|
||||
MAX="$(cat "$1"/max_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"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user