river: update config (river-options is gone)

This commit is contained in:
FollieHiyuki 2021-04-27 18:18:18 +03:00
parent c56cd923d3
commit d2e4a05027
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
2 changed files with 17 additions and 26 deletions

View File

@ -104,15 +104,13 @@ riverctl map normal $mod+Shift Comma send-to-output previous
# Mod+E to bump the focused view to the top of the layout stack # Mod+E to bump the focused view to the top of the layout stack
riverctl map normal $mod E zoom riverctl map normal $mod E zoom
# Mod+H and Mod+L to decrease/increase the main factor by 2% # Mod+H and Mod+L to decrease/increase the main_factor value of rivertile by 0.02
# If using rivertile(1) this determines the width of the main stack. riverctl map normal $mod H mod-layout-value rivertile fixed main_factor -0.02
riverctl map normal $mod H spawn riverctl mod-option -focused-output main_factor -0.02 riverctl map normal $mod L mod-layout-value rivertile fixed main_factor +0.02
riverctl map normal $mod L spawn riverctl mod-option -focused-output main_factor +0.02
# Mod+Shift+H and Mod+Shift+L to increment/decrement the number of # Mod+Shift+H and Mod+Shift+L to increment/decrement the main_count value of rivertile
# main views in the layout riverctl map normal $mod+Shift H mod-layout-value rivertile int main_count +1
riverctl map normal $mod+Shift H spawn riverctl mod-option -focused-output main_count +1 riverctl map normal $mod+Shift L mod-layout-value rivertile int main_count -1
riverctl map normal $mod+Shift L spawn riverctl mod-option -focused-output main_count -1
# Mod+Alt+{H,J,K,L} to move views # Mod+Alt+{H,J,K,L} to move views
riverctl map normal $mod+Mod1 H move left 100 riverctl map normal $mod+Mod1 H move left 100
@ -194,10 +192,10 @@ riverctl map normal $mod Space toggle-float
riverctl map normal $mod F toggle-fullscreen riverctl map normal $mod F toggle-fullscreen
# Control+Alt+{H,J,K,L} to change layout orientation # Control+Alt+{H,J,K,L} to change layout orientation
riverctl map normal Mod1+Control H spawn riverctl set-option -focused-output main_location left riverctl map normal Mod1+Control H set-layout-value rivertile string main_location left
riverctl map normal Mod1+Control J spawn riverctl set-option -focused-output main_location bottom riverctl map normal Mod1+Control J set-layout-value rivertile string main_location bottom
riverctl map normal Mod1+Control K spawn riverctl set-option -focused-output main_location top riverctl map normal Mod1+Control K set-layout-value rivertile string main_location top
riverctl map normal Mod1+Control L spawn riverctl set-option -focused-output main_location right riverctl map normal Mod1+Control L set-layout-value rivertile string main_location right
# Declare a passthrough mode. This mode has only a single mapping to return to # 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 # normal mode. This makes it useful for testing a nested wayland compositor
@ -249,16 +247,6 @@ riverctl float-filter-add "info.febvre.Komikku"
# Set app-ids of views which should use client side decorations # Set app-ids of views which should use client side decorations
riverctl csd-filter-add "swappy" riverctl csd-filter-add "swappy"
## Layout ───────────────────────────────────────────────────────────────────────
# Default layout # Default layout
riverctl set-option layout rivertile riverctl default-layout rivertile
exec rivertile -view-padding 4 -outer-padding 4 -main-location left -main-count 1 -main-factor 0.54
# Settings (need to be declared since we do this before starting `rivertile`)
riverctl declare-option main_factor fixed 0.54
riverctl declare-option main_count uint 1
riverctl declare-option main_location string "left"
riverctl declare-option view_padding uint 4
riverctl declare-option outer_padding uint 4
exec rivertile

View File

@ -1,12 +1,15 @@
#!/bin/sh #!/bin/sh
echo "Number of make jobs: " | tr -d '\n' # 4
read -r mj
# ------------------ Anime4KCPP -------------------------- # # ------------------ Anime4KCPP -------------------------- #
# Need cmake, libopencv4-devel, ocl-icd-devel, libgomp-devel # Need cmake, libopencv4-devel, ocl-icd-devel, libgomp-devel
git clone https://github.com/TianZerl/Anime4KCPP.git git clone https://github.com/TianZerl/Anime4KCPP.git
cd Anime4KCPP || exit 1 cd Anime4KCPP || exit 1
mkdir build && cd build mkdir build && cd build
cmake .. cmake ..
make -j4 make -j${mj}
cp -f bin/Anime4KCPP_CLI ~/.local/bin/ cp -f bin/Anime4KCPP_CLI ~/.local/bin/
cd ../.. cd ../..
@ -30,7 +33,7 @@ git clone https://github.com/DeadSix27/waifu2x-converter-cpp
cd waifu2x-converter-cpp || exit 1 cd waifu2x-converter-cpp || exit 1
mkdir build && cd build mkdir build && cd build
cmake .. cmake ..
make -j4 make -j${mj}
cp -f waifu2x-converter-cpp ~/.local/bin/ cp -f waifu2x-converter-cpp ~/.local/bin/
cd ../.. cd ../..