feat: added monitor output configuration.

This commit is contained in:
Andrey Parhomenko 2024-07-11 23:02:16 +05:00
parent 6fbec2a663
commit fdae478156
7 changed files with 79 additions and 55 deletions

View file

@ -6,6 +6,14 @@ reload-profile(){
. $PROFILE . $PROFILE
} }
sctl(){
systemctl $@
}
jctl(){
journalctl $@
}
export_loop(){ export_loop(){
# Chore, because I'm lazy to type "export" so many times. # Chore, because I'm lazy to type "export" so many times.
# Standard "export" command takes arguments # Standard "export" command takes arguments

View file

@ -6,6 +6,7 @@ for i in * ; do
from="$rpath/$i" from="$rpath/$i"
to="$HOME/.config/`basename $i`" to="$HOME/.config/`basename $i`"
echo "'$from'" "'$to'" echo "'$from'" "'$to'"
rm -f "$to"
ln -s -f "$from" "$to" ln -s -f "$from" "$to"
done done

5
kanshi/config Normal file
View file

@ -0,0 +1,5 @@
profile {
output eDP-1 enable mode 1920x1080 position 1920,0
output HDMI-A-1 enable mode 1920x1080 position 0,0
}

View file

@ -1,6 +1,8 @@
vim.cmd("syntax off") vim.cmd("syntax off")
vim.cmd("set nowrap") vim.cmd("set nowrap")
vim.g.autoformat = false
-- The standard. -- The standard.
vim.cmd.language("en_US") vim.cmd.language("en_US")

View file

@ -20,13 +20,13 @@ riverctl map normal Super Q close
riverctl map normal Super+Shift E exit riverctl map normal Super+Shift E exit
# Super+J and Super+K to focus the next/previous view in the layout stack # Super+J and Super+K to focus the next/previous view in the layout stack
riverctl map normal Super J focus-view next riverctl map -repeat normal Super J focus-view next
riverctl map normal Super K focus-view previous riverctl map -repeat normal Super K focus-view previous
# Super+Shift+J and Super+Shift+K to swap the focused view with the next/previous # Super+Shift+J and Super+Shift+K to swap the focused view with the next/previous
# view in the layout stack # view in the layout stack
riverctl map normal Super+Shift J swap next riverctl map -repeat normal Super+Shift J swap next
riverctl map normal Super+Shift K swap previous riverctl map -repeat normal Super+Shift K swap previous
# Super+Period and Super+Comma to focus the next/previous output # Super+Period and Super+Comma to focus the next/previous output
riverctl map normal Super Period focus-output next riverctl map normal Super Period focus-output next
@ -40,18 +40,18 @@ riverctl map normal Super+Shift Comma send-to-output previous
riverctl map normal Super S zoom riverctl map normal Super S zoom
# Super+H and Super+L to decrease/increase the main ratio of rivertile(1) # Super+H and Super+L to decrease/increase the main ratio of rivertile(1)
riverctl map normal Super H send-layout-cmd rivertile "main-ratio -0.05" riverctl map -repeat 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 -repeat normal Super L send-layout-cmd rivertile "main-ratio +0.05"
# Super+Shift+H and Super+Shift+L to increment/decrement the main count of rivertile(1) # Super+Shift+H and Super+Shift+L to increment/decrement the main count of rivertile(1)
riverctl map normal Super+Shift H send-layout-cmd rivertile "main-count +1" 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" riverctl map normal Super+Shift L send-layout-cmd rivertile "main-count -1"
# Super+Alt+{H,J,K,L} to move views # Super+Alt+{H,J,K,L} to move views
riverctl map normal Super+Alt H move left 100 riverctl map -repeat normal Super+Alt H move left 100
riverctl map normal Super+Alt J move down 100 riverctl map -repeat normal Super+Alt J move down 100
riverctl map normal Super+Alt K move up 100 riverctl map -repeat normal Super+Alt K move up 100
riverctl map normal Super+Alt L move right 100 riverctl map -repeat normal Super+Alt L move right 100
# Super+Alt+Control+{H,J,K,L} to snap views to screen edges # Super+Alt+Control+{H,J,K,L} to snap views to screen edges
riverctl map normal Super+Alt+Control H snap left riverctl map normal Super+Alt+Control H snap left
@ -60,10 +60,10 @@ riverctl map normal Super+Alt+Control K snap up
riverctl map normal Super+Alt+Control L snap right riverctl map normal Super+Alt+Control L snap right
# Super+Alt+Shift+{H,J,K,L} to resize views # Super+Alt+Shift+{H,J,K,L} to resize views
riverctl map normal Super+Alt+Shift H resize horizontal -100 riverctl map -repeat normal Super+Alt+Shift H resize horizontal -100
riverctl map normal Super+Alt+Shift J resize vertical 100 riverctl map -repeat normal Super+Alt+Shift J resize vertical 100
riverctl map normal Super+Alt+Shift K resize vertical -100 riverctl map -repeat normal Super+Alt+Shift K resize vertical -100
riverctl map normal Super+Alt+Shift L resize horizontal 100 riverctl map -repeat normal Super+Alt+Shift L resize horizontal 100
# Super + Left Mouse Button to move views # Super + Left Mouse Button to move views
riverctl map-pointer normal Super BTN_LEFT move-view riverctl map-pointer normal Super BTN_LEFT move-view
@ -97,11 +97,11 @@ all_tags=$(((1 << 32) - 1))
riverctl map normal Super 0 set-focused-tags $all_tags riverctl map normal Super 0 set-focused-tags $all_tags
riverctl map normal Super+Shift 0 set-view-tags $all_tags riverctl map normal Super+Shift 0 set-view-tags $all_tags
# Super+Space to toggle float # Toggle float.
riverctl map normal Super Space toggle-float riverctl map normal Super F toggle-float
# Super+F to toggle fullscreen # Toggle fullscreen.
riverctl map normal Super F toggle-fullscreen riverctl map normal Super+Shift F toggle-fullscreen
# Super+{Up,Right,Down,Left} to change layout orientation # Super+{Up,Right,Down,Left} to change layout orientation
riverctl map normal Super Up send-layout-cmd rivertile "main-location top" riverctl map normal Super Up send-layout-cmd rivertile "main-location top"
@ -157,6 +157,9 @@ riverctl set-repeat 50 300
riverctl map normal Super Tab spawn "riverctl keyboard-layout 'us(dvorak)'" riverctl map normal Super Tab spawn "riverctl keyboard-layout 'us(dvorak)'"
riverctl map normal Super A spawn "riverctl keyboard-layout 'us'" riverctl map normal Super A spawn "riverctl keyboard-layout 'us'"
riverctl map normal Super Return spawn "riverctl keyboard-layout 'us(dvp)'" riverctl map normal Super Return spawn "riverctl keyboard-layout 'us(dvp)'"
riverctl map normal Super Backspace spawn "riverctl keyboard-layout 'ru'"
riverctl map normal Super+Alt R spawn "RIVER_RELOAD=1 $XDG_CONFIG_HOME/river/init"
# Run appications. # Run appications.
riverctl map normal Super+Shift R spawn "$XRUNNER" riverctl map normal Super+Shift R spawn "$XRUNNER"
@ -170,11 +173,17 @@ riverctl rule-add -app-id "bar" csd
# Set the default layout generator to be rivertile and start it. # Set the default layout generator to be rivertile and start it.
# River will send the process group of the init executable SIGTERM on exit. # River will send the process group of the init executable SIGTERM on exit.
riverctl default-layout rivertile riverctl default-layout rivertile
rivertile -view-padding 0 -outer-padding 0 &
eval $XBAR & riverctl focus-follows-cursor normal
eval $XTERMINAL & # Only first time, no reloading.
eval $XTERMINAL & if test -z "$RIVER_RELOAD" ; then
eval $XTERMINAL & rivertile -view-padding 0 -outer-padding 0 &
eval $XBAR &
eval $XTERMINAL &
eval $XTERMINAL &
eval $XTERMINAL &
fi

View file

@ -2,41 +2,29 @@
"layer": "top", "layer": "top",
"position": "top", "position": "top",
"river/window" : {
"max-length": 80,
"min-length": 80
},
"river/mode" : {
"format": "Mode: {}"
},
"modules-left": [ "modules-left": [
"river/tags", "river/tags",
"custom/right-arrow-dark", "river/window",
"custom/right-arrow-light",
"river/mode", "river/mode",
"custom/right-arrow-dark"
], ],
"modules-center": [ "modules-center": [
"custom/left-arrow-dark",
"river/window",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"clock#1",
"custom/right-arrow-dark",
"custom/right-arrow-light",
"",
"custom/right-arrow-dark"
], ],
"modules-right": [ "modules-right": [
"custom/left-arrow-dark", "clock#1",
"pulseaudio", "pulseaudio",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"gamemode", "gamemode",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"mpd", "mpd",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"disk", "disk",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"battery", "battery",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"tray" "tray"
], ],

View file

@ -4,18 +4,19 @@
} }
window#waybar { window#waybar {
background: #292b2e; background: black;
color: #fdf6e3; color: white;
} }
#custom-right-arrow-dark, #custom-right-arrow-dark,
#custom-left-arrow-dark { #custom-left-arrow-dark {
color: #1a1a1a; color: black;
background : white ;
} }
#custom-right-arrow-light, #custom-right-arrow-light,
#custom-left-arrow-light { #custom-left-arrow-light {
color: #292b2e; color: white;
background: #1a1a1a; background: black;
} }
#workspaces, #workspaces,
@ -28,11 +29,11 @@ window#waybar {
#battery, #battery,
#disk, #disk,
#tray { #tray {
background: #1a1a1a; background: black;
} }
#workspaces button { /*#workspaces button {
padding: 0 2px; padding: 0 1px;
color: #fdf6e3; color: #fdf6e3;
} }
#workspaces button.focused { #workspaces button.focused {
@ -46,7 +47,7 @@ window#waybar {
background: #1a1a1a; background: #1a1a1a;
border: #1a1a1a; border: #1a1a1a;
padding: 0 3px; padding: 0 3px;
} }*/
#pulseaudio { #pulseaudio {
color: #268bd2; color: #268bd2;
@ -87,3 +88,13 @@ window#waybar {
color : black ; color : black ;
} }
#window {
color : black ;
background: white ;
}
#mode {
background : black ;
color : white ;
}