Compare commits
7 commits
bc3b8ebd35
...
66bbb3bfe3
Author | SHA1 | Date | |
---|---|---|---|
66bbb3bfe3 | |||
0500c74353 | |||
c365b93e4f | |||
0e932b8d79 | |||
ad263414dc | |||
72e8086ccf | |||
e874e2172d |
7 changed files with 318 additions and 6 deletions
29
.config/river/init
Executable file
29
.config/river/init
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
|
||||
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river
|
||||
riverctl spawn "pgrep -x pipewire >/dev/null || pipewire"
|
||||
riverctl spawn "/usr/libexec/xdg-desktop-portal-wlr"
|
||||
|
||||
~/.config/river/load-colors
|
||||
|
||||
brillo -I
|
||||
riverctl spawn "pgrep -x foot >/dev/null || foot --server"
|
||||
riverctl spawn "pgrep -x wlsunset >/dev/null || wlsunset -l -34.61315 -L -58.37723"
|
||||
riverctl spawn "pgrep -x syncthing >/dev/null || syncthing -no-browser"
|
||||
# yambar spawned by load-colors
|
||||
riverctl spawn "pgrep -x kanshi >/dev/null || kanshi"
|
||||
|
||||
riverctl set-repeat 30 290
|
||||
|
||||
riverctl xcursor-theme Adwaita
|
||||
|
||||
riverctl focus-follows-cursor normal
|
||||
|
||||
riverctl float-filter-add title Picture-in-Picture
|
||||
riverctl float-filter-add title "Firefox — Sharing Indicator"
|
||||
riverctl float-filter-add app-id fzf
|
||||
|
||||
~/.config/river/keys
|
||||
|
||||
riverctl spawn "pgrep -x stacktile >/dev/null || stacktile --per-tag-config --drop-empty-configs --primary-sublayout=stack --inner-padding=0 --outer-padding=0"
|
||||
riverctl default-layout stacktile
|
126
.config/river/keys
Executable file
126
.config/river/keys
Executable file
|
@ -0,0 +1,126 @@
|
|||
#!/bin/sh
|
||||
|
||||
mod="Mod4" # Super
|
||||
|
||||
riverctl map normal $mod Q close
|
||||
|
||||
riverctl map normal $mod+Shift E exit
|
||||
|
||||
riverctl map normal $mod J focus-view next
|
||||
riverctl map normal $mod K focus-view previous
|
||||
riverctl map normal $mod Down focus-view next
|
||||
riverctl map normal $mod Up focus-view previous
|
||||
|
||||
riverctl map normal $mod+Shift J swap next
|
||||
riverctl map normal $mod+Shift K swap previous
|
||||
riverctl map normal $mod+Shift Down swap next
|
||||
riverctl map normal $mod+Shift Up swap previous
|
||||
|
||||
riverctl map normal $mod H send-layout-cmd stacktile "primary_ratio -0.05"
|
||||
riverctl map normal $mod L send-layout-cmd stacktile "primary_ratio +0.05"
|
||||
riverctl map normal $mod Left send-layout-cmd stacktile "primary_ratio -0.05"
|
||||
riverctl map normal $mod Right send-layout-cmd stacktile "primary_ratio +0.05"
|
||||
|
||||
riverctl map normal $mod+Shift H send-layout-cmd stacktile "primary_count +1"
|
||||
riverctl map normal $mod+Shift L send-layout-cmd stacktile "primary_count -1"
|
||||
riverctl map normal $mod+Shift Left send-layout-cmd stacktile "primary_count +1"
|
||||
riverctl map normal $mod+Shift Right send-layout-cmd stacktile "primary_count -1"
|
||||
|
||||
riverctl map normal None Super_L spawn "killall -SIGUSR1 river-tag-overlay"
|
||||
|
||||
# Mod+Period and Mod+Comma to focus the next/previous output
|
||||
#riverctl map normal $mod Period focus-output next
|
||||
#riverctl map normal $mod Comma focus-output previous
|
||||
|
||||
# Mod+Shift+{Period,Comma} to send the focused view to the next/previous output
|
||||
#riverctl map normal $mod+Shift Period send-to-output next
|
||||
#riverctl map normal $mod+Shift Comma send-to-output previous
|
||||
|
||||
riverctl map normal $mod Return zoom
|
||||
|
||||
riverctl declare-mode move-resize
|
||||
riverctl map normal $mod R enter-mode move-resize
|
||||
|
||||
riverctl map move-resize $mod R enter-mode normal
|
||||
riverctl map move-resize None Escape enter-mode normal
|
||||
riverctl map move-resize None Return enter-mode normal
|
||||
|
||||
riverctl map move-resize None H move left 100
|
||||
riverctl map move-resize None J move down 100
|
||||
riverctl map move-resize None K move up 100
|
||||
riverctl map move-resize None L move right 100
|
||||
|
||||
riverctl map move-resize Control H snap left
|
||||
riverctl map move-resize Control J snap down
|
||||
riverctl map move-resize Control K snap up
|
||||
riverctl map move-resize Control L snap right
|
||||
|
||||
riverctl map move-resize Shift H resize horizontal -100
|
||||
riverctl map move-resize Shift J resize vertical 100
|
||||
riverctl map move-resize Shift K resize vertical -100
|
||||
riverctl map move-resize Shift L resize horizontal 100
|
||||
|
||||
riverctl map-pointer normal $mod BTN_LEFT move-view
|
||||
riverctl map-pointer normal $mod BTN_RIGHT resize-view
|
||||
|
||||
define_tag() {
|
||||
riverctl map normal $mod $2 set-focused-tags $1
|
||||
riverctl map normal $mod+Shift $2 set-view-tags $1
|
||||
riverctl map normal $mod+Alt $2 toggle-focused-tags $1
|
||||
riverctl map normal $mod+Shift+Alt $2 toggle-view-tags $1
|
||||
}
|
||||
|
||||
define_tag $((1 << 0)) U
|
||||
define_tag $((1 << 1)) I
|
||||
define_tag $((1 << 2)) O
|
||||
define_tag $((1 << 3)) P
|
||||
define_tag $((1 << 4)) Y
|
||||
define_tag $((1 << 5)) M
|
||||
|
||||
all_tags=$(((1 << 32) - 1))
|
||||
riverctl map normal $mod 0 set-focused-tags $all_tags
|
||||
riverctl map normal $mod+Shift 0 set-view-tags $all_tags
|
||||
|
||||
riverctl map normal $mod Space toggle-float
|
||||
riverctl map normal $mod F toggle-fullscreen
|
||||
|
||||
# riverctl map normal $mod Up send-layout-cmd stacktile "primary_position top"
|
||||
# riverctl map normal $mod Right send-layout-cmd stacktile "primary_position right"
|
||||
# riverctl map normal $mod Down send-layout-cmd stacktile "primary_position bottom"
|
||||
# riverctl map normal $mod Left send-layout-cmd stacktile "primary_position left"
|
||||
riverctl map normal $mod A send-layout-cmd stacktile "all_primary toggle"
|
||||
|
||||
riverctl declare-mode passthrough
|
||||
riverctl map normal $mod F11 enter-mode passthrough
|
||||
|
||||
riverctl map passthrough $mod F11 enter-mode normal
|
||||
|
||||
riverctl map normal $mod grave spawn 'pamixer --default-source --toggle-mute'
|
||||
|
||||
riverctl map normal $mod X spawn 'fnottctl actions'
|
||||
riverctl map normal $mod Z spawn 'fnottctl dismiss'
|
||||
|
||||
for mode in normal locked
|
||||
do
|
||||
# https://github.com/cdemoulins/pamixer
|
||||
riverctl map $mode None XF86AudioRaiseVolume spawn 'pamixer -i 5'
|
||||
riverctl map $mode None XF86AudioLowerVolume spawn 'pamixer -d 5'
|
||||
riverctl map $mode None XF86AudioMute spawn 'pamixer --toggle-mute'
|
||||
riverctl map $mode None XF86AudioMicMute spawn 'pamixer --default-source --toggle-mute'
|
||||
|
||||
# https://github.com/altdesktop/playerctl
|
||||
riverctl map $mode None XF86AudioMedia spawn 'playerctl play-pause'
|
||||
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 None XF86MonBrightnessUp spawn 'brillo -A 5; brillo -O'
|
||||
riverctl map $mode None XF86MonBrightnessDown spawn 'brillo -U 5; brillo -O'
|
||||
done
|
||||
|
||||
riverctl map normal $mod+Shift N spawn lock
|
||||
riverctl map normal $mod+Shift M spawn 'lock && doas pm-suspend'
|
||||
riverctl map normal $mod Return spawn footclient
|
||||
riverctl map normal $mod D spawn fuzzel-run
|
||||
riverctl map normal $mod backslash spawn buscar-archivos
|
||||
riverctl map normal None Print spawn 'grimshot copy area'
|
14
.config/river/load-colors
Executable file
14
.config/river/load-colors
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
. ~/.cache/themer.lua/river
|
||||
|
||||
riverctl background-color 0x$background
|
||||
riverctl border-color-focused 0x$border_focused
|
||||
riverctl border-color-unfocused 0x$border_unfocused
|
||||
riverctl border-width 5
|
||||
riverctl spawn 'killall yambar ; yambar'
|
||||
|
||||
riverctl spawn "killall fnott >/dev/null ; fnott"
|
||||
|
||||
if test -n "$bg"; then
|
||||
riverctl spawn "killall swaybg ; swaybg --image '$bg'"
|
||||
fi
|
|
@ -1 +1 @@
|
|||
Subproject commit 10c3b635d091e78c8ba7967d6955939cb70e5e07
|
||||
Subproject commit be2aae17290fbf459e7fb193de4274b5ea162639
|
142
.config/yambar/real-config.yml
Normal file
142
.config/yambar/real-config.yml
Normal file
|
@ -0,0 +1,142 @@
|
|||
bar:
|
||||
height: 16
|
||||
location: top
|
||||
layer: top
|
||||
spacing: 8
|
||||
right-margin: 8
|
||||
background: *bg
|
||||
foreground: *fg
|
||||
|
||||
font: sans-serif:size=12
|
||||
|
||||
left:
|
||||
- river:
|
||||
anchors:
|
||||
base: &river_base
|
||||
margin: 8
|
||||
tag: id
|
||||
default: &river_default
|
||||
default: {string: {text: "{id}"}}
|
||||
values: &river_values
|
||||
1: {string: {text: "I"}}
|
||||
2: {string: {text: "II"}}
|
||||
3: {string: {text: "III"}}
|
||||
4: {string: {text: "IV"}}
|
||||
5: {string: {text: "V"}}
|
||||
6: {string: {text: "VI"}}
|
||||
7: {string: {text: "VII"}}
|
||||
8: {string: {text: "VIII"}}
|
||||
9: {string: {text: "IX"}}
|
||||
10: {empty: {}}
|
||||
11: {empty: {}}
|
||||
12: {empty: {}}
|
||||
13: {empty: {}}
|
||||
14: {empty: {}}
|
||||
15: {empty: {}}
|
||||
16: {empty: {}}
|
||||
17: {empty: {}}
|
||||
18: {empty: {}}
|
||||
19: {empty: {}}
|
||||
20: {empty: {}}
|
||||
21: {empty: {}}
|
||||
22: {empty: {}}
|
||||
23: {empty: {}}
|
||||
24: {empty: {}}
|
||||
25: {empty: {}}
|
||||
26: {empty: {}}
|
||||
27: {empty: {}}
|
||||
28: {empty: {}}
|
||||
29: {empty: {}}
|
||||
30: {empty: {}}
|
||||
31: {empty: {}}
|
||||
32: {empty: {}}
|
||||
content:
|
||||
map:
|
||||
tag: state
|
||||
values:
|
||||
focused:
|
||||
map:
|
||||
<<: *river_base
|
||||
deco: {background: {color: *accent}}
|
||||
values:
|
||||
<<: *river_values
|
||||
1: {string: {text: "I", foreground: *bg}}
|
||||
2: {string: {text: "II", foreground: *bg}}
|
||||
3: {string: {text: "III", foreground: *bg}}
|
||||
4: {string: {text: "IV", foreground: *bg}}
|
||||
5: {string: {text: "V", foreground: *bg}}
|
||||
6: {string: {text: "VI", foreground: *bg}}
|
||||
7: {string: {text: "VII", foreground: *bg}}
|
||||
8: {string: {text: "VIII", foreground: *bg}}
|
||||
9: {string: {text: "IX", foreground: *bg}}
|
||||
unfocused:
|
||||
map:
|
||||
<<: *river_base
|
||||
values:
|
||||
<<: *river_values
|
||||
invisible:
|
||||
map:
|
||||
tag: occupied
|
||||
values:
|
||||
true:
|
||||
map:
|
||||
deco: {background: {color: *bgish}}
|
||||
<<: *river_base
|
||||
values:
|
||||
<<: *river_values
|
||||
false:
|
||||
map:
|
||||
<<: *river_base
|
||||
values:
|
||||
<<: *river_values
|
||||
right:
|
||||
- network:
|
||||
name: eth0
|
||||
content:
|
||||
map:
|
||||
tag: carrier
|
||||
default: {empty: {}}
|
||||
values:
|
||||
true:
|
||||
map:
|
||||
tag: state
|
||||
values:
|
||||
down: {string: {text: Ethernet down, foreground: *accent}}
|
||||
up:
|
||||
map:
|
||||
tag: ipv4
|
||||
default: {string: {text: Ethernet}}
|
||||
values:
|
||||
"": {string: {text: Ethernet sin IPv4, foreground: *accent}}
|
||||
- network:
|
||||
name: wlan0
|
||||
content:
|
||||
map:
|
||||
tag: state
|
||||
values:
|
||||
down: {string: {text: WiFi down, foreground: *accent}}
|
||||
up:
|
||||
map:
|
||||
tag: ipv4
|
||||
default: {string: {text: WiFi}}
|
||||
values:
|
||||
"": {string: {text: WiFi sin IPv4, foreground: *accent}}
|
||||
|
||||
- battery:
|
||||
name: BAT0
|
||||
poll-interval: 30
|
||||
content:
|
||||
map:
|
||||
tag: state
|
||||
values:
|
||||
discharging: {string: {text: "{capacity}%"}}
|
||||
unknown: {string: {text: "{capacity}% limite"}}
|
||||
not charging: {string: {text: "{capacity}% limite"}}
|
||||
charging: {string: {text: "{capacity}% cargando"}}
|
||||
full: {string: {text: "{capacity}% full"}}
|
||||
|
||||
- clock:
|
||||
date-format: "%A %d of %B"
|
||||
content:
|
||||
- string: {text: " {date}", right-margin: 12}
|
||||
- string: {text: " {time}"}
|
|
@ -1,2 +1,3 @@
|
|||
export REMOTE=false
|
||||
export WLR_NO_HARDWARE_CURSORS=1
|
||||
export MESA_LOADER_DRIVER_OVERRIDE=i965
|
||||
|
|
10
.zprofile
10
.zprofile
|
@ -5,12 +5,12 @@ if ! "$REMOTE" && test "$(tty)" = /dev/tty1; then
|
|||
XDG_RUNTIME_DIR="/run/user/$(id -u)"
|
||||
mkdir -p "$XDG_RUNTIME_DIR"
|
||||
chmod 700 "$XDG_RUNTIME_DIR"
|
||||
mkdir -p "$HOME/.local/share/sway"
|
||||
log="$HOME/.local/share/sway/$(date +%Y-%m-%d@%H:%M:%S).log"
|
||||
mkdir -p "$HOME/.local/share/river"
|
||||
log="$HOME/.local/share/river/$(date +%Y-%m-%d@%H:%M:%S).log"
|
||||
exec env \
|
||||
XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" \
|
||||
XDG_CURRENT_DESKTOP=sway \
|
||||
XDG_SESSION_DESKTOP=sway \
|
||||
dbus-run-session sway >"$log" 2>&1
|
||||
XDG_CURRENT_DESKTOP=river \
|
||||
XDG_SESSION_DESKTOP=river \
|
||||
dbus-run-session river >"$log" 2>&1
|
||||
fi
|
||||
source ~/.zshrc
|
||||
|
|
Loading…
Reference in a new issue