diff --git a/home-environments/radio/files/.config/river/init b/home-environments/radio/files/.config/river/init index 81c1016..ee5f493 100755 --- a/home-environments/radio/files/.config/river/init +++ b/home-environments/radio/files/.config/river/init @@ -1,5 +1,8 @@ #!/bin/sh +# Please, no cursor ___________________________________________________________ +riverctl hide-cursor when-typing enabled + # Decorations _________________________________________________________________ # wallpaper @@ -124,9 +127,6 @@ riverctl map normal XF86WebCam spawn cam # rss reader (TODO: fix) riverctl map normal XF86Launch1 spawn newsraft -# telegram -riverctl map normal Super a spawn telegram-desktop - # keepassxc riverctl map normal Super c spawn keepassxc @@ -141,25 +141,32 @@ riverctl map normal Super g spawn "$TERMINAL -e guix repl" # go to last tag riverctl map normal Super Escape focus-previous-tags -for i in $(seq 1 9); do +for i in $(seq 1 7); do tags=$((1 << ($i - 1))) - # Super+[1-9] to focus tag [0-8] + # Super+[1-8] to focus tag [0-7] riverctl map normal Super $i set-focused-tags $tags - # Super+Shift+[1-9] to tag focused view with tag [0-8] + # Super+Shift+[1-8] to tag focused view with tag [0-7] riverctl map normal Super+Shift $i set-view-tags $tags - # Super+Control+[1-9] to toggle focus of tag [0-8] + # Super+Control+[1-8] to toggle focus of tag [0-7] riverctl map normal Super+Control $i toggle-focused-tags $tags - # Super+Shift+Control+[1-9] to toggle tag [0-8] of focused view + # Super+Shift+Control+[1-8] to toggle tag [0-7] of focused view riverctl map normal Super+Shift+Control $i toggle-view-tags $tags done +scratch_tag=$((1 << 7)) + +# toggle the scratchpad +riverctl map normal Super period toggle-focused-tags ${scratch_tag} + +# send windows to the scratchpad +riverctl map normal Super+Shift period set-view-tags ${scratch_tag} # Super+0 to focus all tags # Super+Shift+0 to tag focused view with all tags -all_tags=$(((1 << 32) - 1)) +all_tags=$(((1 << 7) - 1)) riverctl map normal Super 0 set-focused-tags $all_tags riverctl map normal Super+Shift 0 set-view-tags $all_tags @@ -223,6 +230,21 @@ riverctl map normal Super F11 enter-mode passthrough # Super+F11 to return to normal mode riverctl map passthrough Super F11 enter-mode normal +# Application rules ___________________________________________________________ + +# float views +#riverctl rule-add -app-id 'KeePassXC' float +#riverctl rule-add -app-id 'Pavucontrol' float +#riverctl rule-add -app-id 'TelegramDesktop' float + +# server side decorations +#riverctl rule-add -app-id 'KeePassXC' ssd +#riverctl rule-add -app-id 'Pavucontrol' ssd +#riverctl rule-add -app-id 'TelegramDesktop' ssd + +# initial view tags +# riverctl rule-add -app-id 'TelegramDesktop' ${scratch_tag} + # Autostart applications ______________________________________________________ # status bar @@ -234,12 +256,9 @@ riverctl spawn keepassxc # notifications riverctl spawn fnott +# messengers +riverctl spawn telegram-desktop + # wayneko riverctl spawn "wayneko --background-colour 0x606060" -# Application rules ___________________________________________________________ - -# float windows -riverctl rule-add -app-id 'KeePassXC' float -riverctl rule-add -app-id 'Pavucontrol' float -riverctl rule-add -app-id 'TelegramDesktop' float diff --git a/home-environments/radio/files/.config/waybar/config b/home-environments/radio/files/.config/waybar/config index 3d350d8..6f2d69b 100644 --- a/home-environments/radio/files/.config/waybar/config +++ b/home-environments/radio/files/.config/waybar/config @@ -16,7 +16,7 @@ // Modules configuration "river/tags": { - "tag-labels": ["α", "β", "γ", "δ", "ε", "ζ", "η"] + "tag-labels": ["α", "β", "γ", "δ", "ε", "ζ", "η", "•"] }, "river/window": {