Compare commits

...

9 Commits

Author SHA1 Message Date
72cd2f21a4
Add piped config 2023-05-14 11:45:57 +02:00
be7858d879
Add remote config 2023-05-14 11:45:45 +02:00
17cf29ba94
Update startup services 2023-05-14 11:45:21 +02:00
6e2c8aa6b5
Chromium default to wlr 2023-05-14 11:45:05 +02:00
699fbddc3d
Toggle resolution when headless 2023-05-14 11:44:42 +02:00
800ba86073
Net-(copy|paste) 2023-05-14 11:44:22 +02:00
bac2c3b0ab
Change screenshot bindings 2023-05-14 11:43:54 +02:00
7e6bce6217
Fix mute audio 2023-05-14 11:42:59 +02:00
d2c24681a2
vim syntax highlighting 2023-05-14 11:41:46 +02:00
23 changed files with 131 additions and 6 deletions

View File

@ -29,19 +29,22 @@ bindsym $mod+Shift+t exec $hyper_term
bindsym $mod+Mod1+l exec $lock bindsym $mod+Mod1+l exec $lock
bindsym $mod+Shift+b exec $chbg bindsym $mod+Shift+b exec $chbg
bindsym $mod+c exec $clipboard bindsym $mod+c exec $clipboard
bindsym $mod+y exec net-copy
bindsym $mod+v exec net-paste
bindsym $mod+Shift+f exec $files bindsym $mod+Shift+f exec $files
bindsym XF86AudioRaiseVolume exec volumectl raise bindsym XF86AudioRaiseVolume exec volumectl raise
bindsym XF86AudioLowerVolume exec volumectl lower bindsym XF86AudioLowerVolume exec volumectl lower
bindsym XF86AudioMute exec volumectl mute bindsym XF86AudioMute exec volumectl %
bindsym XF86AudioMicMute exec volumectl mute --mic bindsym XF86AudioMicMute exec volumectl mute --mic
bindsym Ctrl+Mod1+m exec volumectl mute --mic bindsym Ctrl+Mod1+m exec volumectl mute --mic
bindsym XF86MonBrightnessUp exec lightctl raise bindsym XF86MonBrightnessUp exec lightctl raise
bindsym XF86MonBrightnessDown exec lightctl lower bindsym XF86MonBrightnessDown exec lightctl lower
bindsym Print exec ~/.bin/screenshot.sh -w bindsym Print exec ~/.bin/screenshot.sh -w -e
bindsym Ctrl+Print exec ~/.bin/screenshot.sh -s bindsym Ctrl+Print exec ~/.bin/screenshot.sh -s -e
bindsym Ctrl+Mod1+Print exec ~/.bin/screenshot.sh bindsym Ctrl+Mod1+Print exec ~/.bin/screenshot.sh -S -e
bindsym Ctrl+Shift+p exec ~/.bin/screenshot.sh -w -e
bindsym $mod+Ctrl+p exec mpc toggle bindsym $mod+Ctrl+p exec mpc toggle
bindsym $mod+Ctrl+c exec mpc clear bindsym $mod+Ctrl+c exec mpc clear
bindsym $mod+Ctrl+k exec 'pkill Xephyr && notify-send "Adam" "Killed"' bindsym $mod+Ctrl+k exec 'pkill Xephyr && notify-send "Adam" "Killed"'
@ -169,4 +172,8 @@ mode "resize" {
} }
bindsym $mod+r mode "resize" bindsym $mod+r mode "resize"
bindsym $mod+Shift+r exec /home/leo/.bin/toggle_resolution_headless.sh
default_border none default_border none
# vim:syntax=swayconfig:

2
config
View File

@ -6,3 +6,5 @@ include ./bindings.conf
include ./services.conf include ./services.conf
include /etc/sway/config.d/* include /etc/sway/config.d/*
# vim:syntax=swayconfig:

View File

@ -315,3 +315,5 @@ default_border none
# } # }
include /etc/sway/config.d/* include /etc/sway/config.d/*
# vim:syntax=swayconfig:

2
env
View File

@ -3,3 +3,5 @@ QT_SCALE_FACTOR=1
QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_QPA_PLATFORM=wayland QT_QPA_PLATFORM=wayland
QT_WAYLAND_DISABLE_WINDOWDECORATION=1 QT_WAYLAND_DISABLE_WINDOWDECORATION=1
# vim:syntax=swayconfig:

View File

@ -5,3 +5,5 @@ QT_QPA_PLATFORM=wayland
QT_WAYLAND_DISABLE_WINDOWDECORATION=1 QT_WAYLAND_DISABLE_WINDOWDECORATION=1
XDG_CURRENT_DESKTOP=sway XDG_CURRENT_DESKTOP=sway
SWAY_STATE=debug SWAY_STATE=debug
# vim:syntax=swayconfig:

View File

@ -1,3 +1,5 @@
_JAVA_AWT_WM_NONREPARENTING=1 _JAVA_AWT_WM_NONREPARENTING=1
XDG_CURRENT_DESKTOP=sway XDG_CURRENT_DESKTOP=sway
SWAY_STATE=system SWAY_STATE=system
# vim:syntax=swayconfig:

View File

@ -21,3 +21,5 @@ input "Logitech Keyboard" {
xkb_model "logitech_base" xkb_model "logitech_base"
xkb_numlock enabled xkb_numlock enabled
} }
# vim:syntax=swayconfig:

3
input.piped.conf Normal file
View File

@ -0,0 +1,3 @@
input * xkb_layout "us"
# vim:syntax=swayconfig:

3
input.remote.conf Normal file
View File

@ -0,0 +1,3 @@
input * xkb_layout "us,it"
# vim:syntax=swayconfig:

View File

@ -20,3 +20,5 @@ output 'Samsung Electric Company C34J79x H1AK500000' {
resolution 3440x1440 resolution 3440x1440
bg /home/leo/Pictures/random.jpg fill "#0022FF" bg /home/leo/Pictures/random.jpg fill "#0022FF"
} }
# vim:syntax=swayconfig:

6
output.piped.conf Normal file
View File

@ -0,0 +1,6 @@
output * {
resolution 3840x2160
bg /home/leo/Pictures/random.jpg fill "#0022FF"
}
# vim:syntax=swayconfig:

View File

@ -0,0 +1,6 @@
output * {
resolution 1920x1200
bg /home/leo/Pictures/random.jpg fill "#0022FF"
}
# vim:syntax=swayconfig:

6
output.remote.conf Normal file
View File

@ -0,0 +1,6 @@
output * {
resolution 3440x1440
bg /home/leo/Pictures/random.jpg fill "#0022FF"
}
# vim:syntax=swayconfig:

View File

@ -17,3 +17,5 @@ output DP-1 {
position 0,0 position 0,0
bg /home/leo/Pictures/wallpapers/portal_l.jpg fill "#FF2200" bg /home/leo/Pictures/wallpapers/portal_l.jpg fill "#FF2200"
} }
# vim:syntax=swayconfig:

View File

@ -1,2 +1,4 @@
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
# vim:syntax=swayconfig:

8
piped Normal file
View File

@ -0,0 +1,8 @@
include ./vars.piped.conf
include ./output.piped.conf
include ./input.piped.conf
include ./style.conf
include ./bindings.conf
include ./services.piped.conf
# vim:syntax=swayconfig:

9
remote Normal file
View File

@ -0,0 +1,9 @@
include ./vars.remote.conf
include ./output.remote.conf
#include ./output.remote-laptop.conf
include ./input.remote.conf
include ./style.conf
include ./bindings.conf
include ./services.remote.conf
# vim:syntax=swayconfig:

View File

@ -2,12 +2,14 @@ exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec hash dbus-update-activation-environment 2>/dev/null && \ exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec "systemctl --user start cbatticon"
exec "systemctl --user start avizo" exec "systemctl --user start avizo"
exec "systemctl --user start waybar" exec "systemctl --user start waybar@begs-big"
exec "systemctl --user start mako" exec "systemctl --user start mako"
exec "systemctl --user start gammastep" exec "systemctl --user start gammastep"
exec "systemctl --user start kanshi" exec "systemctl --user start kanshi"
exec "systemctl --user start greenclip" exec "systemctl --user start greenclip"
exec "systemctl --user start poweralertd-user"
exec "systemctl --user import-environment; systemctl --user start swayidle" exec "systemctl --user import-environment; systemctl --user start swayidle"
# exec swayidle -w \ # exec swayidle -w \
# timeout 300 '$lock' \ # timeout 300 '$lock' \
@ -15,3 +17,5 @@ exec "systemctl --user import-environment; systemctl --user start swayidle"
# timeout 5 'if pgrep -x swaylock; then swaymsg "output * dpms off"; fi' \ # timeout 5 'if pgrep -x swaylock; then swaymsg "output * dpms off"; fi' \
# resume 'swaymsg "output * dpms on"' \ # resume 'swaymsg "output * dpms on"' \
# before-sleep '$lock' # before-sleep '$lock'
# vim:syntax=swayconfig:

11
services.piped.conf Normal file
View File

@ -0,0 +1,11 @@
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec "systemctl --user start avizo"
exec "systemctl --user start waybar@begs-big"
exec "systemctl --user start mako"
exec "systemctl --user start poweralertd-user"
exec "systemctl --user import-environment"
# vim:syntax=swayconfig:

14
services.remote.conf Normal file
View File

@ -0,0 +1,14 @@
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec "systemctl --user start avizo"
exec "systemctl --user start waybar@begs-big"
exec "systemctl --user start mako"
exec "systemctl --user start gammastep"
exec "systemctl --user start greenclip"
exec "systemctl --user start wayvnc@5900"
exec "systemctl --user start poweralertd-user"
exec "systemctl --user import-environment"
# vim:syntax=swayconfig:

View File

@ -8,3 +8,5 @@ font pango:FiraCode 10
for_window [app_id="^.*"] border pixel 2 for_window [app_id="^.*"] border pixel 2
for_window [class="^.*"] border pixel 2 for_window [class="^.*"] border pixel 2
gaps inner 5 gaps inner 5
# vim:syntax=swayconfig:

View File

@ -9,7 +9,7 @@ set $term terminator
set $menu rofi -show run set $menu rofi -show run
set $window_list rofi -show window set $window_list rofi -show window
set $browser MOZ_ENABLE_WAYLAND=1 firefox set $browser MOZ_ENABLE_WAYLAND=1 firefox
set $chromium_work ~/.bin/chromium "Work (x11)" set $chromium_work ~/.bin/chromium "Work (wlr)"
set $chromium_personal ~/.bin/chromium "Personal (wlr)" set $chromium_personal ~/.bin/chromium "Personal (wlr)"
set $chromium_isolated ~/.bin/chromium "Isolated (x11)" set $chromium_isolated ~/.bin/chromium "Isolated (x11)"
set $chromium_anon ~/.bin/chromium "Incognito (wlr)" set $chromium_anon ~/.bin/chromium "Incognito (wlr)"
@ -22,3 +22,5 @@ set $lock swaylock -F -i ~/Pictures/screensaver.jpg
set $chbg ~/.bin/change-bg.sh set $chbg ~/.bin/change-bg.sh
set $clipboard rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}' set $clipboard rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}'
set $files rofi -show filebrowser set $files rofi -show filebrowser
# vim:syntax=swayconfig:

26
vars.piped.conf Normal file
View File

@ -0,0 +1,26 @@
set $mod Mod5
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term terminator
# Your preferred application launcher
set $menu rofi -show run
set $window_list rofi -show window
set $browser MOZ_ENABLE_WAYLAND=1 firefox
set $chromium_work ~/.bin/chromium "Work (wlr)"
set $chromium_personal ~/.bin/chromium "Personal (wlr)"
set $chromium_isolated ~/.bin/chromium "Isolated (x11)"
set $chromium_anon ~/.bin/chromium "Incognito (wlr)"
set $mua thunderbird
set $kitty_term kitty
set $alacritty_term env WINIT_UNIX_BACKEND=x11 alacritty
set $hyper_term hyper
set $files nautilus
set $lock swaylock -F -i ~/Pictures/screensaver.jpg
set $chbg ~/.bin/change-bg.sh
set $clipboard rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}'
set $files rofi -show filebrowser
# vim:syntax=swayconfig: