mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-11-09 22:10:48 -05:00
Compare commits
3 commits
c5e5883a9a
...
8bfa54e30d
Author | SHA1 | Date | |
---|---|---|---|
8bfa54e30d | |||
4c50bd571b | |||
d48e13dd41 |
4 changed files with 57 additions and 9 deletions
|
@ -78,6 +78,17 @@
|
||||||
(add-hook 'after-init-hook #'elpaca-process-queues)
|
(add-hook 'after-init-hook #'elpaca-process-queues)
|
||||||
(elpaca `(,@elpaca-order))
|
(elpaca `(,@elpaca-order))
|
||||||
|
|
||||||
|
;; Unload seq before elpaca build - also see `use-package' declaration for seq below
|
||||||
|
;; https://github.com/progfolio/elpaca/issues/216#issuecomment-1868444883
|
||||||
|
(defun +elpaca-unload-seq (e)
|
||||||
|
(and (featurep 'seq) (unload-feature 'seq t))
|
||||||
|
(elpaca--continue-build e))
|
||||||
|
|
||||||
|
(defun +elpaca-seq-build-steps ()
|
||||||
|
(append (butlast (if (file-exists-p (expand-file-name "seq" elpaca-builds-directory))
|
||||||
|
elpaca--pre-built-steps elpaca-build-steps))
|
||||||
|
(list '+elpaca-unload-seq 'elpaca--activate-package)))
|
||||||
|
|
||||||
;; use-package
|
;; use-package
|
||||||
(elpaca elpaca-use-package
|
(elpaca elpaca-use-package
|
||||||
(elpaca-use-package-mode)
|
(elpaca-use-package-mode)
|
||||||
|
@ -231,6 +242,10 @@
|
||||||
(setq save-place-file (concat xdg_cache_home "places"))
|
(setq save-place-file (concat xdg_cache_home "places"))
|
||||||
(save-place-mode))
|
(save-place-mode))
|
||||||
|
|
||||||
|
(use-package seq
|
||||||
|
; Unload seq before elpaca build
|
||||||
|
:elpaca `(seq :build ,(+elpaca-seq-build-steps)))
|
||||||
|
|
||||||
(use-package simple
|
(use-package simple
|
||||||
:elpaca nil
|
:elpaca nil
|
||||||
:config
|
:config
|
||||||
|
@ -708,7 +723,12 @@
|
||||||
;; Zig
|
;; Zig
|
||||||
(use-package zig-mode
|
(use-package zig-mode
|
||||||
:commands (zig-mode)
|
:commands (zig-mode)
|
||||||
:config (setq-local fill-column 100))
|
:config
|
||||||
|
(defun zig-compile ()
|
||||||
|
(interactive)
|
||||||
|
(save-buffer)
|
||||||
|
(zig--run-cmd "build"))
|
||||||
|
(setq-local fill-column 100))
|
||||||
|
|
||||||
;;; File format/markup support
|
;;; File format/markup support
|
||||||
(use-package markdown-mode
|
(use-package markdown-mode
|
||||||
|
|
|
@ -197,6 +197,11 @@ do
|
||||||
riverctl map "$mode" None XF86AudioRaiseVolume spawn 'pactl set-sink-volume @DEFAULT_SINK@ +5%'
|
riverctl map "$mode" None XF86AudioRaiseVolume spawn 'pactl set-sink-volume @DEFAULT_SINK@ +5%'
|
||||||
riverctl map "$mode" None XF86AudioMicMute spawn 'pactl set-source-mute @DEFAULT_SOURCE@ toggle'
|
riverctl map "$mode" None XF86AudioMicMute spawn 'pactl set-source-mute @DEFAULT_SOURCE@ toggle'
|
||||||
|
|
||||||
|
# Media
|
||||||
|
riverctl map "$mode" None XF86AudioPrev spawn ''
|
||||||
|
riverctl map "$mode" None XF86AudioPlay spawn ''
|
||||||
|
riverctl map "$mode" None XF86AudioNext spawn ''
|
||||||
|
|
||||||
# Backlight
|
# Backlight
|
||||||
riverctl map $mode None XF86MonBrightnessDown spawn 'light -U 5'
|
riverctl map $mode None XF86MonBrightnessDown spawn 'light -U 5'
|
||||||
riverctl map $mode None XF86MonBrightnessUp spawn 'light -A 5'
|
riverctl map $mode None XF86MonBrightnessUp spawn 'light -A 5'
|
||||||
|
@ -249,7 +254,7 @@ riverctl map-switch normal lid close 'waylock-launcher'
|
||||||
riverctl focus-output DP-1
|
riverctl focus-output DP-1
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
# -app-id and title -"foo" start floating
|
# Start floating
|
||||||
riverctl rule-add -app-id 'Bitwarden' float
|
riverctl rule-add -app-id 'Bitwarden' float
|
||||||
riverctl rule-add -app-id 'Blueman-manager' float
|
riverctl rule-add -app-id 'Blueman-manager' float
|
||||||
riverctl rule-add -app-id 'connman-gtk' float
|
riverctl rule-add -app-id 'connman-gtk' float
|
||||||
|
@ -259,10 +264,7 @@ riverctl rule-add -app-id 'mousepad' float
|
||||||
riverctl rule-add -app-id 'com.nextcloud.dextopclient.Nextcloud' float
|
riverctl rule-add -app-id 'com.nextcloud.dextopclient.Nextcloud' float
|
||||||
riverctl rule-add -app-id 'vlc' float
|
riverctl rule-add -app-id 'vlc' float
|
||||||
|
|
||||||
# -app-id "bar" and any title use client-side decorations
|
# Layout generator
|
||||||
riverctl rule-add -app-id 'emacs' csd
|
|
||||||
|
|
||||||
# Default layout generator
|
|
||||||
riverctl default-layout rivertile
|
riverctl default-layout rivertile
|
||||||
rivertile -view-padding 4 -outer-padding 4 -main-ratio .55 &
|
rivertile -view-padding 4 -outer-padding 4 -main-ratio .55 &
|
||||||
|
|
||||||
|
|
|
@ -12,13 +12,13 @@
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
"label" : "logout",
|
"label" : "logout",
|
||||||
"action" : "${HOME}/.local/bin/river-logout",
|
"action" : "${HOME}/.local/bin/river-exit logout",
|
||||||
"text" : "Logout",
|
"text" : "Logout",
|
||||||
"keybind" : "e"
|
"keybind" : "e"
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
"label" : "shutdown",
|
"label" : "shutdown",
|
||||||
"action" : "loginctl poweroff",
|
"action" : "${HOME}/.local/bin/river-exit poweroff",
|
||||||
"text" : "Shutdown",
|
"text" : "Shutdown",
|
||||||
"keybind" : "s"
|
"keybind" : "s"
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
"label" : "reboot",
|
"label" : "reboot",
|
||||||
"action" : "loginctl reboot",
|
"action" : "${HOME}/.local/bin/river-exit reboot",
|
||||||
"text" : "Reboot",
|
"text" : "Reboot",
|
||||||
"keybind" : "r"
|
"keybind" : "r"
|
||||||
}
|
}
|
||||||
|
|
26
dot_local/bin/executable_river-exit
Normal file
26
dot_local/bin/executable_river-exit
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
river=$(ps -C river | awk '/river/')
|
||||||
|
|
||||||
|
if [ -z "$river" ]; then
|
||||||
|
echo "error: $0: River is not running"
|
||||||
|
exit 1
|
||||||
|
elif [ $# -ne 1 ]; then
|
||||||
|
echo "Usage: river-exit [command]"
|
||||||
|
echo "Commands: logout, poweroff, or reboot"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$1" = "logout" ]; then
|
||||||
|
riverctl spawn 'reset'
|
||||||
|
riverctl exit
|
||||||
|
elif [ "$1" = "poweroff" ]; then
|
||||||
|
riverctl spawn 'reset'
|
||||||
|
loginctl poweroff
|
||||||
|
elif [ "$1" = "reboot" ]; then
|
||||||
|
riverctl spawn 'reset'
|
||||||
|
loginctl reboot
|
||||||
|
else
|
||||||
|
echo "error: $0: unexpected argument"
|
||||||
|
exit 1
|
||||||
|
fi
|
Loading…
Reference in a new issue