Added sunshine
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = 'html',
|
||||
callback = function()
|
||||
vim.opt_local.tabstop = 2
|
||||
vim.opt_local.shiftwidth = 2
|
||||
vim.opt_local.expandtab = true
|
||||
end,
|
||||
})
|
||||
|
||||
return {
|
||||
{ -- Add indentation guides even on blank lines
|
||||
'lukas-reineke/indent-blankline.nvim',
|
||||
|
||||
@@ -4,7 +4,7 @@ hostname=$(cat ~/hostname)
|
||||
if [[ $hostname == "bepis" ]]; then
|
||||
$(~/.config/screenlayout/desktop.sh)
|
||||
elif [[ $hostname == "arch-bepis" ]]; then
|
||||
$(~/.config/screenlayout/desktop.sh)
|
||||
$(~/.config/screenlayout/arch-bepis-desktop-sway.sh)
|
||||
elif [[ $hostname == "bepis-laptop" ]]; then
|
||||
$(~/.config/screenlayout/laptop.sh)
|
||||
fi
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
xrandr --output DVI-I-0 --off --output DVI-I-1 --off --output HDMI-0 --primary --mode 2560x1440 --rate 99.99 --pos 1200x240 --rotate normal --output DP-0 --mode 1920x1200 --pos 0x0 --rotate left --output DP-1 --off --output DVI-D-0 --off
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
xrandr --output DVI-I-0 --off --output DVI-I-1 --off --output HDMI-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-0 --off --output DP-1 --off --output DVI-D-0 --off
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
xrandr --output HDMI-3 --primary --mode 3440x1440 --rate 99.99 --pos 1440x475 --rotate normal --output DP-2 --mode 2560x1440 --pos 0x0 --rotate left
|
||||
38
.config/sunshine/apps.json
Normal file
38
.config/sunshine/apps.json
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"apps": [
|
||||
{
|
||||
"auto-detach": true,
|
||||
"detached": [
|
||||
"setsid steam steam://open/bigpicture"
|
||||
],
|
||||
"exclude-global-prep-cmd": false,
|
||||
"exit-timeout": 5,
|
||||
"image-path": "steam.png",
|
||||
"name": " 1080p Steam Big Picture",
|
||||
"prep-cmd": [
|
||||
{
|
||||
"do": "sh /home/wholteza/.config/sunshine/do.sh",
|
||||
"undo": "sh /home/wholteza/.config/sunshine/undo.sh && setsid steam steam://close/bigpicture"
|
||||
}
|
||||
],
|
||||
"wait-all": true
|
||||
},
|
||||
{
|
||||
"auto-detach": true,
|
||||
"exclude-global-prep-cmd": false,
|
||||
"exit-timeout": 5,
|
||||
"image-path": "desktop.png",
|
||||
"name": "1080p Desktop",
|
||||
"prep-cmd": [
|
||||
{
|
||||
"do": "sh /home/wholteza/.config/sunshine/do.sh",
|
||||
"undo": "sh /home/wholteza/.config/sunshine/undo.sh"
|
||||
}
|
||||
],
|
||||
"wait-all": true
|
||||
}
|
||||
],
|
||||
"env": {
|
||||
"PATH": "$(PATH):$(HOME)/.local/bin"
|
||||
}
|
||||
}
|
||||
3
.config/sunshine/do.sh
Normal file
3
.config/sunshine/do.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
sh /home/wholteza/.config/screenlayout/arch-bepis-desktop-sunshine-sway.sh
|
||||
swaymsg workspace "5: Games"
|
||||
1
.config/sunshine/sunshine.conf
Normal file
1
.config/sunshine/sunshine.conf
Normal file
@@ -0,0 +1 @@
|
||||
key_rightalt_to_key_win = enabled
|
||||
4
.config/sunshine/undo.sh
Normal file
4
.config/sunshine/undo.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
sh /home/wholteza/.config/screenlayout/arch-bepis-desktop-sway.sh
|
||||
pidof steam | xargs kill
|
||||
|
||||
@@ -33,9 +33,6 @@ set $urgent-bg-color #E53935
|
||||
exec_always export hostname="$(cat /etc/hostname)" && ~/.config/screenlayout/apply-screen-layout.sh
|
||||
exec_always export hostname="$(cat /etc/hostname)" && ~/.config/keyboard/apply-keyboard-layout.sh
|
||||
|
||||
|
||||
|
||||
|
||||
set $mod Mod4
|
||||
|
||||
font pango:DejaVu 14
|
||||
@@ -273,6 +270,13 @@ for_window [title="RuneLite.*"] floating enable
|
||||
for_window [title="RuneLite.*"] border none
|
||||
for_window [title="RuneLite.*"] resize set width 2440 px height 1420 px
|
||||
|
||||
for_window [class="steam"] \
|
||||
fullscreen disable; \
|
||||
floating enable; \
|
||||
border pixel 0; \
|
||||
resize set $display_w $display_h; \
|
||||
move absolute position 0 0; \
|
||||
|
||||
# Assigning application to workspaces
|
||||
## 1: is reserved for whatever
|
||||
## 2: Social
|
||||
@@ -302,6 +306,8 @@ input "type:pointer" {
|
||||
pointer_accel 0
|
||||
}
|
||||
|
||||
# NOTE: Screens are managed by apply-screen-layout.sh
|
||||
|
||||
## Run secondary sceen in 1080p
|
||||
# output HDMI-A-3 mode 3440x1440@99.99Hz pos 1080 237 bg /home/wholteza/.config/feh/wallpaper.png fit #1b1f28
|
||||
# output DP-2 mode 1920x1080 pos 0 0 transform 270 bg /home/wholteza/.config/feh/wallpaper.png fit #1b1f28
|
||||
@@ -310,9 +316,13 @@ input "type:pointer" {
|
||||
#output HDMI-A-3 mode 2560x1440@99.99Hz pos 1440 475 bg /home/wholteza/.config/feh/wallpaper.png fit #1b1f28
|
||||
|
||||
## Main setup with ultrawide and portrait secondary screen
|
||||
output HDMI-A-3 mode 3440x1440@99.99Hz pos 1440 475 bg /home/wholteza/.config/feh/wallpaper.png fit #1b1f28
|
||||
output DP-2 mode 2560x1440 pos 0 0 transform 270 bg /home/wholteza/.config/feh/wallpaper.png fit #1b1f28
|
||||
#output HDMI-A-3 mode 3440x1440@99.99Hz pos 1440 475 bg /home/wholteza/.config/feh/wallpaper.png fit #1b1f28
|
||||
#output DP-2 mode 2560x1440 pos 0 0 transform 270 bg /home/wholteza/.config/feh/wallpaper.png fit #1b1f28
|
||||
|
||||
## Main
|
||||
##output HDMI-A-3 mode 3440x1440@99.99Hz bg /home/wholteza/.config/feh/wallpaper.png fit #1b1f28
|
||||
|
||||
# Autostart applications
|
||||
exec --no-startup-id blueman-applet
|
||||
exec --no-startup-id bitwarden-desktop
|
||||
exec --no-startup-id sunshine
|
||||
|
||||
Reference in New Issue
Block a user