aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar pinoinha <pinoinha@disroot.org> 2024-02-01 11:55:35 +0000
committerGravatar pinoinha <pinoinha@disroot.org> 2024-02-01 11:55:35 +0000
commit4b7db6c7f20e76bc65a2e2b0814c28b413f29b51 (patch)
treed631842a54821f5a27eae1987edac9c75ede7e82
parent12898e7191586e7bea696313547083d38f8acbb8 (diff)
tmux agora com suporte a mouse e configuração do river
-rwxr-xr-xriver/init175
-rw-r--r--tmux/tmux.conf1
2 files changed, 176 insertions, 0 deletions
diff --git a/river/init b/river/init
new file mode 100755
index 0000000..c6fac57
--- /dev/null
+++ b/river/init
@@ -0,0 +1,175 @@
+#!/bin/sh
+
+# daemons & etc
+riverctl spawn "kanshi"
+riverctl spawn "waybar"
+riverctl spawn "mako"
+#riverctl spawn "$HOME/bin/akko_config"
+#riverctl spawn "$HOME/bin/idea_config"
+riverctl spawn "$HOME/bin/,wallpaper"
+riverctl spawn "wl-paste --type text --watch cliphist store"
+riverctl spawn "wl-paste --type image --watch cliphist store"
+riverctl spawn "swayidle -w \
+ timeout 300 'swaylock -f -i ~/imagens/wallpapers/wall.png' \
+ timeout 600 'wlopm --off \*;swaylock -F -i ~/imagens/wallpapers/wall.png' \
+ resume 'wlopm --on \*' \
+ before-sleep 'swaylock -f -i ~/imagens/wallpapers/wall.png'"
+riverctl spawn "gsettings set org.gnome.desktop.interface cursor-theme capitaine-cursors-light"
+
+# básico
+riverctl map normal Super+Alt Q exit
+
+riverctl background-color 0x101112
+riverctl border-color-focused 0x799df6
+riverctl border-color-unfocused 0xdfdfdf
+
+riverctl default-layout rivertile
+rivertile -view-padding 5 -outer-padding 20 -main-ratio 0.5 &
+
+riverctl float-filter-add app-id float_term
+
+riverctl set-repeat 40 250
+
+riverctl set-cursor-warp on-output-change
+
+riverctl input pointer-1267-228-Elan_Touchpad natural-scroll enabled
+riverctl input pointer-1267-228-Elan_Touchpad tap enabled
+riverctl input pointer-1267-228-Elan_Touchpad tap-button-map left-right-middle
+riverctl input pointer-1267-228-Elan_Touchpad scroll-method two-finger
+riverctl input pointer-1267-228-Elan_Touchpad drag enabled
+riverctl input pointer-1267-228-Elan_Touchpad pointer-accel 0.5
+
+# janelas
+riverctl map normal Super BackSpace close
+
+riverctl map normal Super J focus-view previous
+riverctl map normal Super K focus-view next
+
+riverctl map normal Super+Shift J swap next
+riverctl map normal Super+Shift K swap previous
+
+riverctl map normal Super m zoom
+
+riverctl map normal Super F toggle-fullscreen
+
+# monitores
+riverctl map normal Super Period focus-output next
+riverctl map normal Super Comma focus-output previous
+
+riverctl map normal Super+Shift Period send-to-output next
+riverctl map normal Super+Shift Comma send-to-output previous
+
+# pilha
+riverctl map normal Super H send-layout-cmd rivertile "main-ratio -0.05"
+riverctl map normal Super L send-layout-cmd rivertile "main-ratio +0.05"
+
+riverctl map normal Super+Shift H send-layout-cmd rivertile "main-count +1"
+riverctl map normal Super+Shift L send-layout-cmd rivertile "main-count -1"
+
+# janelas flutuantes
+riverctl map normal Super+Shift Space toggle-float
+
+riverctl map normal Super+Alt H move left 100
+riverctl map normal Super+Alt J move down 100
+riverctl map normal Super+Alt K move up 100
+riverctl map normal Super+Alt L move right 100
+
+riverctl map normal Super+Alt+Control H snap left
+riverctl map normal Super+Alt+Control J snap down
+riverctl map normal Super+Alt+Control K snap up
+riverctl map normal Super+Alt+Control L snap right
+
+riverctl map normal Super+Alt+Shift H resize horizontal -100
+riverctl map normal Super+Alt+Shift J resize vertical 100
+riverctl map normal Super+Alt+Shift K resize vertical -100
+riverctl map normal Super+Alt+Shift L resize horizontal 100
+
+riverctl map-pointer normal Super BTN_LEFT move-view
+riverctl map-pointer normal Super BTN_RIGHT resize-view
+
+riverctl map-pointer normal Super BTN_MIDDLE toggle-float
+
+# tags
+for i in $(seq 1 5)
+do
+ tags=$((1 << ($i - 1)))
+
+ # Super+[1-9] to focus tag [0-8]
+ riverctl map normal Super $i set-focused-tags $tags
+
+ # Super+Shift+[1-9] to tag focused view with tag [0-8]
+ riverctl map normal Super+Shift $i set-view-tags $tags
+
+ # Super+Ctrl+[1-9] to toggle focus of tag [0-8]
+ riverctl map normal Super+Control $i toggle-focused-tags $tags
+
+ # Super+Shift+Ctrl+[1-9] to toggle tag [0-8] of focused view
+ riverctl map normal Super+Shift+Control $i toggle-view-tags $tags
+done
+
+riverctl map normal Super Tab focus-previous-tags
+
+all_tags=$(((1 << 32) - 1))
+riverctl map normal Super 0 set-focused-tags $all_tags
+riverctl map normal Super+Shift 0 set-view-tags $all_tags
+
+# Declare a passthrough mode. This mode has only a single mapping to return to
+# normal mode. This makes it useful for testing a nested wayland compositor
+riverctl declare-mode passthrough
+
+# Super+F11 to enter passthrough mode
+riverctl map normal Super F11 enter-mode passthrough
+
+# Super+F11 to return to normal mode
+riverctl map passthrough Super F11 enter-mode normal
+
+# Various media key mapping examples for both normal and locked mode which do
+# not have a modifier
+for mode in normal locked
+do
+ # Control pulse audio volume with pamixer (https://github.com/cdemoulins/pamixer)
+ riverctl map $mode None XF86AudioMute spawn 'pamixer --toggle-mute'
+ riverctl map $mode None XF86AudioRaiseVolume spawn 'pamixer -i 5'
+ riverctl map $mode None XF86AudioLowerVolume spawn 'pamixer -d 5'
+ riverctl map $mode None XF86AudioMicMute spawn 'pamixer --default-source --toggle-mute'
+
+ riverctl map $mode Shift F1 spawn 'pamixer --toggle-mute'
+ riverctl map $mode Shift F2 spawn 'pamixer -d 5'
+ riverctl map $mode Shift F3 spawn 'pamixer -i 5'
+ riverctl map $mode Shift F4 spawn 'pamixer --default-source --toggle-mute'
+
+ # Control MPRIS aware media players with playerctl (https://github.com/altdesktop/playerctl)
+ riverctl map $mode None XF86AudioStop spawn 'playerctl stop'
+ riverctl map $mode None XF86AudioPlay spawn 'playerctl play-pause'
+ riverctl map $mode None XF86AudioPrev spawn 'playerctl previous'
+ riverctl map $mode None XF86AudioNext spawn 'playerctl next'
+
+ riverctl map $mode Shift F5 spawn 'playerctl stop'
+ riverctl map $mode Shift F6 spawn 'playerctl previous'
+ riverctl map $mode Shift F7 spawn 'playerctl play-pause'
+ riverctl map $mode Shift F8 spawn 'playerctl next'
+
+ riverctl map $mode None XF86MonBrightnessUp spawn 'xbacklight -inc 10'
+ riverctl map $mode None XF86MonBrightnessDown spawn 'xbacklight -dec 10'
+
+ riverctl map $mode Shift F11 spawn 'xbacklight -dec 10'
+ riverctl map $mode Shift F12 spawn 'xbacklight -inc 10'
+done
+
+# aplicativos
+riverctl map normal Super Return spawn 'foot tmux new -A -s shell'
+riverctl map normal Super+Control Return spawn 'foot tmux new -A -s padrao'
+riverctl map normal Super+Shift Return spawn 'foot -a float_term'
+
+riverctl map normal Super D spawn 'fuzzel'
+riverctl map normal Super P spawn ',passmenu -t'
+
+riverctl map normal Super V spawn 'cliphist list | fuzzel -d | cliphist decode | wl-copy'
+riverctl map normal Super C spawn 'cliphist wipe'
+
+riverctl map normal Super E spawn 'emacsclient -nc'
+riverctl map normal Super+Shift E spawn 'emacs'
+
+riverctl map normal Super Y spawn 'ytfzf -sD'
+
+riverctl map normal Super+Alt G spawn 'swaylock -f -i ~/imagens/wallpapers/wall.png'
diff --git a/tmux/tmux.conf b/tmux/tmux.conf
index 3b61546..dbeb96f 100644
--- a/tmux/tmux.conf
+++ b/tmux/tmux.conf
@@ -61,6 +61,7 @@ set -s copy-command "wl-copy"
set -s escape-time 0
set -g mode-keys emacs
+set -g mouse on
# status line
set -g status-fg 'yellow'