mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Add turnstile Emacs service and stable ssh-agent
This commit is contained in:
@@ -7,6 +7,7 @@ $locker = ~/.local/bin/lock-session
|
||||
$screenshot = ~/.local/bin/screenshot-wayland
|
||||
|
||||
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
exec-once = ~/.local/bin/update-turnstile-env
|
||||
exec-once = dex --autostart --environment Hyprland
|
||||
exec-once = gnome-keyring-daemon --start --components=secrets
|
||||
exec-once = ~/.local/bin/setup-gtk-theme
|
||||
@@ -79,6 +80,7 @@ windowrulev2 = float,class:^(blueman-manager)$
|
||||
|
||||
bind = $mod, Return, exec, $terminal
|
||||
bind = $mod SHIFT, Return, exec, $fallback_terminal
|
||||
bind = $mod SHIFT, E, exec, emacsclient -c -n
|
||||
bind = $mod, D, exec, $menu
|
||||
bind = $mod SHIFT, V, exec, pavucontrol
|
||||
bind = $mod SHIFT, F, exec, thunar
|
||||
|
||||
@@ -58,6 +58,9 @@ bindsym $mod+Return exec --no-startup-id /usr/bin/alacritty
|
||||
# Emergency terminal fallback
|
||||
bindsym $mod+Shift+Return exec --no-startup-id st
|
||||
|
||||
# Emacs client
|
||||
bindsym $mod+Shift+e exec --no-startup-id emacsclient -c -n
|
||||
|
||||
# Launcher
|
||||
#bindsym $mod+d exec --no-startup-id "rofi -modi drun,run -show drun"
|
||||
bindsym $mod+d exec --no-startup-id "rofi -show drun -theme ~/.config/rofi/config.rasi"
|
||||
|
||||
11
dotfiles/desktop/.config/service/emacs/run
Executable file
11
dotfiles/desktop/.config/service/emacs/run
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
export SSH_AUTH_SOCK="$HOME/.local/state/ssh-agent/socket"
|
||||
|
||||
if [ -n "${TURNSTILE_ENV_DIR:-}" ]; then
|
||||
exec chpst -e "$TURNSTILE_ENV_DIR" emacs --fg-daemon
|
||||
fi
|
||||
|
||||
exec emacs --fg-daemon
|
||||
@@ -14,6 +14,7 @@ font pango:Liberation Mono 10
|
||||
# Session bootstrap
|
||||
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE XCURSOR_THEME XCURSOR_SIZE
|
||||
exec systemctl --user import-environment WAYLAND_DISPLAY DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE XCURSOR_THEME XCURSOR_SIZE
|
||||
exec ~/.local/bin/update-turnstile-env
|
||||
exec dex --autostart --environment sway
|
||||
exec gnome-keyring-daemon --start --components=secrets
|
||||
exec ~/.local/bin/setup-gtk-theme
|
||||
@@ -71,6 +72,7 @@ set $right l
|
||||
# App launchers and window actions
|
||||
bindsym $mod+Return exec $terminal
|
||||
bindsym $mod+Shift+Return exec $fallback_terminal
|
||||
bindsym $mod+Shift+e exec emacsclient -c -n
|
||||
bindsym $mod+d exec $menu
|
||||
bindsym $mod+Shift+v exec pavucontrol
|
||||
bindsym $mod+Shift+f exec thunar
|
||||
|
||||
Reference in New Issue
Block a user