1
0
mirror of https://gitlab.com/linuxstuff/dotfiles.git synced 2026-03-25 07:22:54 +01:00

added support for secondary monitor

This commit is contained in:
Simon
2021-12-02 20:48:00 +01:00
parent 499ac07284
commit bdf4d75719
7 changed files with 18 additions and 18 deletions

View File

@@ -6,9 +6,10 @@ autostart() {
run "xmodmap" "$HOME/.Xmodmap"
# Display
run "sh ~/.screenlayout/dual.sh"
run "nvidia-settings --load-config-only"
run "dunst"
run "picom"
run "picom -b"
run "zsh $HOME/.config/polybar/launch.sh"
run "nitrogen --restore"
run "unclutter --timeout 5 --jitter 5 --ignore-scrolling"

View File

@@ -292,11 +292,11 @@ bindsym $mod+Ctrl+o exec --no-startup-id "sh ~/.config/polybar/launch.sh"
bindsym $mod+Escape mode "$mode_system"
set $mode_system | [s]hutdown , [r]eboot , [p]owersave , [h]ibernate , [l]ock , [e]xit
mode "$mode_system" {
bindsym s exec --no-startup-id ~/Scripts/Display/glitchlock/glitchlock.sh shutdown, mode "default"
bindsym r exec --no-startup-id ~/Scripts/Display/glitchlock/glitchlock.sh reboot, mode "default"
bindsym p exec --no-startup-id ~/Scripts/Display/glitchlock/glitchlock.sh suspend, mode "default"
bindsym h exec --no-startup-id ~/Scripts/Display/glitchlock/glitchlock.sh hibernate, mode "default"
bindsym l exec --no-startup-id ~/Scripts/Display/glitchlock/glitchlock.sh lock, mode "default"
bindsym s exec --no-startup-id bash ~/Scripts/Display/glitchlock/glitchlock.sh shutdown, mode "default"
bindsym r exec --no-startup-id bash ~/Scripts/Display/glitchlock/glitchlock.sh reboot, mode "default"
bindsym p exec --no-startup-id bash ~/Scripts/Display/glitchlock/glitchlock.sh suspend, mode "default"
bindsym h exec --no-startup-id bash ~/Scripts/Display/glitchlock/glitchlock.sh hibernate, mode "default"
bindsym l exec --no-startup-id bash ~/Scripts/Display/glitchlock/glitchlock.sh lock, mode "default"
bindsym e exit, mode "default"
# exit system mode: "Enter" or "Escape"

View File

@@ -17,3 +17,7 @@ modules-left = disk_short_pc checkupdates ovpn nvpn eth_pc
[bar/floating_wm]
inherit="bar/base_floating_wm"
monitor = ${env:MONITOR:DP-4}
[bar/floating_wm_secondary]
inherit="bar/base_floating_wm"
monitor = ${env:MONITOR:HDMI-0}

View File

@@ -27,6 +27,7 @@ bash ~/.config/polybar/config-merge/config-merge.sh ~/.config/polybar/config
#
polybar floating -r -l warning &
polybar floating_wm -r -l warning &
polybar floating_wm_secondary -r -l warning &
polybar floating_popup -r -l warning &
#
#polybar pc_vnc_landscape -r -l warning &

View File

@@ -1,5 +1,5 @@
configuration {
theme: "~/.config/rofi/rofi.rasi";
/*theme: "~/.config/rofi/rofi.rasi";*/
/* modi: "window,run,ssh";*/
/* width: 50;*/
@@ -148,4 +148,6 @@ configuration {
/* me-select-entry: "MousePrimary";*/
/* me-accept-entry: "MouseDPrimary";*/
/* me-accept-custom: "Control+MouseDPrimary";*/
}
}
@theme "~/.config/rofi/rofi.rasi"

View File

@@ -1,10 +0,0 @@
# Dependencies: "rofi-greenclip"
[Unit]
Description=Greenclip daemon
[Service]
ExecStart=/usr/bin/greenclip daemon
[Install]
WantedBy=default.target

2
.screenlayout/dual.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
xrandr --output DP-0 --off --output DP-1 --off --output DP-2 --off --output DP-3 --off --output HDMI-0 --mode 1600x1200 --pos 1920x0 --rotate normal --output DP-4 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-5 --off