Compare commits

...
Sign in to create a new pull request.

21 commits

Author SHA1 Message Date
afe1ccd1fc Delete ad-hoc "audio patch" 2025-04-10 20:55:37 -04:00
342b1169f9 Add kwalletd autostart dbus service 2025-03-30 20:37:31 -04:00
a70ea4fb0d Merge remote-tracking branch 'origin/master' into uconsole 2025-03-26 20:27:58 -04:00
2407649579 Remove screenshot window shortcut and use Ctrl + Print for screen 2025-03-25 22:16:29 -04:00
73a8387ae7 Show wallpaper on swaylock 2025-03-25 20:45:56 -04:00
64db1a3ceb Remove thunderbird write floating rule 2025-03-25 20:04:24 -04:00
8fd1867492 Disable dsi power when low power 2025-03-24 22:08:20 -04:00
ee6a22948c Add lowpower mode and enable when locked 2025-03-24 21:43:53 -04:00
a23e937c3f Reduce swayidle screen off timeout 2025-03-24 21:18:27 -04:00
f5a683dfb8 Configure the power key for locking / unlocking 2025-03-24 21:14:30 -04:00
64d018a03b Use pause instead of ralt as compose key 2025-03-24 20:07:05 -04:00
5b05b76b95 Enable scrolling with button 2 2025-03-24 17:56:43 -04:00
615d47fc9d Move scale to main config 2025-03-24 17:50:31 -04:00
d6594a06e8 Sleep 1s before triggering swayidle
Otherwise we "resume" almost immediately
2025-03-24 17:47:11 -04:00
a9ce6d4750 Fixup brightness control on uconsole and add swayidle 2025-03-24 17:45:35 -04:00
3efe1293c1 Delete unused from sway 2025-03-24 16:26:13 -04:00
f95e38d9d2 Tune waybar layout 2025-03-24 16:25:06 -04:00
9b267a003b Fix uid used in ssh agent 2025-03-24 14:39:27 -04:00
741de30660 Add uconsole-rootfs and scripts for audio patch 2025-03-24 14:32:59 -04:00
93ec3b6823 Remove reboot and lock 2025-03-24 14:32:49 -04:00
1e122dd8a6 Init config updates for ClockworkPi uConsole 2025-03-24 14:04:36 -04:00
10 changed files with 47 additions and 36 deletions

View file

@ -39,7 +39,7 @@ family = "Fira Code"
[window]
dynamic_padding = true
opacity = 1
opacity = 0.95
decorations_theme_variant = "Dark"
[window.dimensions]

View file

@ -162,7 +162,7 @@ export PATH="$PATH:~/.local/bin"
export PASSWORD_STORE_ENABLE_EXTENSIONS=true
# Use gpg-agent-ssh
export SSH_AUTH_SOCK=/run/user/1000/gnupg/S.gpg-agent.ssh
export SSH_AUTH_SOCK=/run/user/$(id -u)/gnupg/S.gpg-agent.ssh
# Miscellaneous utilities
function clamp_filename() {

View file

@ -97,7 +97,7 @@ Name=Gruvbox
shadeSortColumn=true
[Icons]
Theme=gruvbox-dark-icons-gtk
Theme=Gruvbox-Dark
[KDE]
contrast=4

View file

@ -1,22 +1,12 @@
[
{
"label": "Lock",
"exec": "swaylock -f -c 000000",
"icon": "/usr/share/nwg-bar/images/system-lock-screen.svg"
},
{
"label": "Logout",
"exec": "swaymsg exit",
"icon": "/usr/share/nwg-bar/images/system-log-out.svg"
},
{
"label": "Reboot",
"exec": "systemctl reboot",
"icon": "/usr/share/nwg-bar/images/system-reboot.svg"
},
{
"label": "Shutdown",
"exec": "systemctl -i poweroff",
"icon": "/usr/share/nwg-bar/images/system-shutdown.svg"
}
]
]

View file

@ -3,7 +3,7 @@
"position": "bottom",
"modules-left": ["custom/power", "niri/workspaces", "sway/workspaces", "sway/mode"],
"modules-center": [],
"margin": "0px 10px 10px 10px",
"margin": "5px 10px 5px 10px",
"include": [
"$HOME/.config/waybar/local"
],

View file

@ -0,0 +1,3 @@
[D-BUS Service]
Name=org.freedesktop.secrets
Exec=/usr/bin/kwalletd6

View file

@ -0,0 +1 @@
QT_QPA_PLATFORMTHEME=qt6ct

View file

@ -7,14 +7,14 @@
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
set $mod Mod1
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
set $term systemd-run --user alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
@ -67,7 +67,7 @@ set $wallpaper /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png
bindsym $mod+Return exec $term
# Kill focused window
bindsym $mod+Shift+q kill
bindsym $mod+q kill
# Start your launcher
bindsym $mod+d exec $menu
@ -221,6 +221,7 @@ bindsym $mod+r mode "resize"
include /etc/sway/config.d/*
include /home/peter/.config/sway/local.d/*
include /home/peter/.config/sway/shared.d/brightness_ctl
# Wrap swaybg in systemd-run to allow swaybg to be automatically restarted
# if it ever crashes. The wrapper script will also automatically purge old
@ -229,20 +230,23 @@ swaybg_command /home/peter/.local/bin/swaybg-systemd-wrapper
output "*" bg $wallpaper fill
# Lockscreen - requires jirutka/swaylock-effects
bindsym Ctrl+Mod1+l exec "PASSWORD_STORE_ENABLE_EXTENSIONS=true pass gocrypt close; systemctl --user stop gpg-agent; swaylock -S --effect-pixelate 30 --effect-vignette 0.4:1 --clock --indicator --indicator-thickness 6 --ring-color ebdbb2 --inside-color 00000055 --ring-ver-color 458588 --inside-ver-color 45858855 --text-ver-color 83a598 --ring-wrong-color cc241d --inside-wrong-color cc241d55 --text-wrong-color fb4934 --key-hl-color 4d4d4d --line-uses-ring --separator-color 00000000 --text-color ebdbb2 --timestr '%H:%M'"
bindsym $mod+x exec bemenu-run | xargs swaymsg exec --
bindsym Print exec grimshot --notify save area
bindsym Ctrl+Print exec grimshot --notify save window
bindsym Shift+Print exec grimshot --notify save screen
# Use F10 too since on GPD WM2, Fn and Shift / Ctrl conflict
bindsym Ctrl+F10 exec grimshot --notify save window
bindsym Shift+F10 exec grimshot --notify save screen
bindsym Ctrl+Print exec grimshot --notify save screen
bindsym Ctrl+Tab workspace next
bindsym Ctrl+grave workspace prev
bindsym Ctrl+l exec swaylock -f -i "$wallpaper" && sleep 1 && pkill -SIGUSR1 swayidle
exec_always swayidle -w timeout 120 "swaylock -f -i $wallpaper" timeout 130 'swaymsg "output * dpms off" && swaymsg input "7855:36:ClockworkPI_uConsole_Keyboard" events disabled && swaymsg input "7855:36:ClockworkPI_uConsole_Mouse" events disabled && sudo clockworkpi-lowpower on' resume 'swaymsg "output * dpms on" && swaymsg "input * events enabled" && sudo clockworkpi-lowpower off'
# When unlocked, lock & trigger swayidle
bindsym XF86PowerOff exec swaylock -f -i "$wallpaper" && sleep 1 && pkill -SIGUSR1 swayidle
# When locked, do nothing. Note that the power key is not disabled in the swayidle command,
# so it'll wake the device up and trigger swayidle to re-enable all inputs
bindsym --locked XF86PowerOff exec sleep 0.1
# Audio volume (WirePlumber)
bindsym --locked XF86AudioRaiseVolume exec "wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+"
bindsym --locked XF86AudioLowerVolume exec "wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-"
@ -256,13 +260,20 @@ input "*" {
repeat_rate 30
repeat_delay 300
# Input letters with diacritics
xkb_options compose:ralt
xkb_options compose:paus
}
input type:touchpad {
tap enabled
}
input type:pointer {
scroll_button button3
scroll_method on_button_down
}
output "DSI-2" scale 1.2
font "Noto Sans Mono" 13px
default_border pixel 2
@ -286,11 +297,10 @@ exec_always "systemctl --user import-environment; systemctl --user start sway-se
# Import environment to D-Bus as well for xdg-desktop-portals etc
exec_always dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
# Restart kanshi if it is running
# This restores monitor configuration on reload
exec_always "systemctl --user is-active kanshi && systemctl --user restart kanshi"
# Floating window rules
for_window [app_id="pavucontrol"] floating enable
for_window [app_id="qalculate-qt"] floating enable, resize set width 800 px height 800 px, opacity 1
for_window [app_id="thunderbird" title="Write.*"] floating enable, resize set width 800 px height 800 px
# When firefox is full screen, don't idle
for_window [app_id="firefox"] inhibit_idle fullscreen
# Same for mpv
for_window [app_id="mpv"] inhibit_idle fullscreen

View file

@ -1,4 +1,2 @@
# set brightness logarithmically by factor 1.4
# .72 is just slightly bigger than 1 / 1.4
bindsym --locked XF86MonBrightnessUp exec light -S "$(light -G | awk '{ print int(($1 + .72) * 1.4) }')"
bindsym --locked XF86MonBrightnessDown exec light -S "$(light -G | awk '{ print int($1 / 1.4) }')"
bindsym --locked XF86MonBrightnessUp exec light -S "$(light -G | awk '{ print (int($1 / 10) + 2) * 10 }')"
bindsym --locked XF86MonBrightnessDown exec light -S "$(light -G | awk '{ if (int($1 - 10) > 20) { print (int($1 / 10) - 1) * 10 } else { print 20 } }')"

View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
if [ "$1" == "on" ]; then
cpupower frequency-set -u 400MHz
pinctrl 9 op dl # dsi power
else
cpupower frequency-set -u 2400MHz
pinctrl 9 op dh
fi