arnaucube
arnaucube/configsPublic Self-hosted repository
add sway battery warning, update common-configuration.nix
arnaucube git@arnaucube.com
Fri, 16 Oct 2026 09:47:18 +0200
commit

1be7256ae66e8b7b833d6e0ab4e14eb4999073c7

parent

6df283c3b84b62364a1e060aa8e3acc0ff522d9e

2 files changed, 17 insertions(+), 9 deletions(-)

jump to
M nixos/common-configuration.nix → nixos/common-configuration.nix

@@ -96,6 +96,7 @@ rpm

pdfgrep keynav screenfetch + libnotify # Editors and terminals neovim

@@ -124,9 +125,11 @@ feh

gimp calibre tauon + jellyfin-tui kdePackages.kdenlive libreoffice-qt6 ffmpeg + libavif # for converting avif imgs (for link2epub) # Browsers firefox
M sway/config → sway/config

@@ -42,6 +42,17 @@ # output DP-1 {

# transform 270 # } + +# move current workspace to another display +# bindsym $mod+Control+k move workspace to output HDMI-A-1 +# bindsym $mod+Control+j move workspace to output eDP-1 +# bindsym $mod+Control+j move workspace to output DP-1 +# bindsym $mod+Control+k move workspace to output eDP-1 +# bindsym $mod+Control+k move workspace to output DP-1 +bindsym $mod+Control+j move workspace to output DSI-1 +bindsym $mod+Control+k move workspace to output DP-1 + + ### Idle configuration # # Example configuration:

@@ -250,15 +261,6 @@ # shortcut to switch regular/bold font in alacritty configuration

bindsym $mod+Control+b exec sed -i 's/\"Regular\"#tag_for_shortcut/\"Bold\"#tag_for_shortcut/g' ~/.config/alacritty/alacritty.toml bindsym $mod+Control+Shift+b exec sed -i 's/\"Bold\"#tag_for_shortcut/\"Regular\"#tag_for_shortcut/g' ~/.config/alacritty/alacritty.toml -# move current workspace to another display -# bindsym $mod+Control+k move workspace to output HDMI-A-1 -# bindsym $mod+Control+j move workspace to output eDP-1 -# bindsym $mod+Control+j move workspace to output DP-1 -# bindsym $mod+Control+k move workspace to output eDP-1 -# bindsym $mod+Control+k move workspace to output DP-1 -bindsym $mod+Control+j move workspace to output DSI-1 -bindsym $mod+Control+k move workspace to output DP-2 - input type:keyboard { xkb_layout us # xkb_options:

@@ -269,6 +271,9 @@ # RightAlt, equal, c = €

# RightAlt, ~, n = ñ xkb_options "ctrl:nocaps,compose:ralt" } + +# battery warning, check every 60 seconds, warning message every 3 minutes: +exec --no-startup-id ~/.config/sway/battery-warning.sh # for screen sharing #exec systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP