1
0
Fork 0

Compare commits

...

4 Commits

3 changed files with 17 additions and 6 deletions

View File

@ -26,7 +26,7 @@ set $ws6 6
set $ws7 7
set $ws8 8
set $ws9 9
set $ws10 10
set $ws10 "TV"
# default workspace
workspace $ws2
@ -99,7 +99,6 @@ workspace $ws6 output $output1 VGA-1
workspace $ws7 output $output1 VGA-1
workspace $ws8 output $output1 VGA-1
workspace $ws9 output $output1 VGA-1
workspace $ws10 output $output1 VGA-1
workspace sunshine output $output1 VGA-1
output $output1 {
position 0 270
@ -116,6 +115,14 @@ output $output2 {
transform 270
}
set $output3 "Sony SONY TV *30 0x01010101"
workspace $ws10 output $output3
output $output3 {
mode 3840x2160@120Hz
adaptive_sync on
disable
}
### Input configuration
# mod key
set $mod Mod4
@ -145,7 +152,7 @@ input "*" {
# Mouse
accel_profile flat
pointer_accel 0
pointer_accel -0.4
}
### Key bindings
@ -153,7 +160,7 @@ input "*" {
bindsym $mod+Return exec $terminal
# thunar
bindsym $mod+Mod1+Return exec thunar
bindsym $mod+Mod1+Return exec dolphin
# kill focused window
bindsym $mod+Shift+q kill
@ -245,6 +252,9 @@ bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10
# toggle TV
bindsym $mod+Alt+0 output $output3 toggle
# Assignation
assign [class="^[Ss]lack$"] $ws1
assign [class="^[Dd]iscord$"] $ws1

View File

@ -1,5 +1,6 @@
#!/bin/bash
xrandr --output "$(xrandr | grep -Eo '^DP-[0-9]' | head -1)" --primary
systemctl --user stop gammastep
sudo systemctl stop docker.service docker.socket

View File

@ -14,7 +14,7 @@ import-gsettings() {
# list DRM device priority
# Set intel graphics as lowest priority
# https://github.com/swaywm/sway/wiki#i-have-a-multi-gpu-setup-like-intelnvidia-or-intelamd-and-sway-does-not-start
export WLR_DRM_DEVICES="$(drm_info -j | jq --raw-output 'to_entries[] | [if .value.driver.desc == "Intel Graphics" then 0 else 1 end, .key] | @tsv' | sort | awk '{printf "%s:", $2}' | sed -e 's/:$//')"
export WLR_DRM_DEVICES="$(drm_info -j | jq --raw-output 'to_entries[] | [if .value.driver.desc == "Intel Graphics" then 1 else 0 end, .key] | @tsv' | sort | awk '{printf "%s:", $2}' | sed -e 's/:$//')"
# disable hardware cursor (cause mouse to stutter on my setup)
#export WLR_NO_HARDWARE_CURSORS=1