Compare commits

...

23 Commits
master ... ada

Author SHA1 Message Date
blallo 72cd2f21a4
Add piped config 2023-05-14 11:45:57 +02:00
blallo be7858d879
Add remote config 2023-05-14 11:45:45 +02:00
blallo 17cf29ba94
Update startup services 2023-05-14 11:45:21 +02:00
blallo 6e2c8aa6b5
Chromium default to wlr 2023-05-14 11:45:05 +02:00
blallo 699fbddc3d
Toggle resolution when headless 2023-05-14 11:44:42 +02:00
blallo 800ba86073
Net-(copy|paste) 2023-05-14 11:44:22 +02:00
blallo bac2c3b0ab
Change screenshot bindings 2023-05-14 11:43:54 +02:00
blallo 7e6bce6217
Fix mute audio 2023-05-14 11:42:59 +02:00
blallo d2c24681a2
vim syntax highlighting 2023-05-14 11:41:46 +02:00
blallo b016f18d20
Add binding for otppass 2022-01-21 16:50:02 +01:00
blallo afe93458a4
Add binding to kill Xephyr for adam 2022-01-21 16:49:48 +01:00
blallo bab9732cef
Fix lid open/close status switch 2022-01-21 16:49:15 +01:00
blallo 972827eac0
Mouse-related configs 2022-01-21 16:48:45 +01:00
blallo 755dc1961d
Fix browser vars 2022-01-21 16:48:12 +01:00
blallo fb38ab5d7b
Fix file browser via rofi 2022-01-21 16:47:52 +01:00
blallo be4b31e31e
Send message when changing kbd layoud 2021-09-20 11:42:39 +02:00
blallo 231c64f752
Use systemd for swayidle 2021-08-04 17:56:16 +02:00
blallo b5b29d05e7
Add greenclip and rofi-as-file-browser 2021-07-14 14:47:58 +02:00
blallo 5d00448a30
Change mappings with modified avizo 2021-07-02 16:42:13 +02:00
blallo 619414746a
Specify better screen 2021-07-02 16:41:53 +02:00
blallo fa357b04dc
Add services.conf 2021-07-02 16:41:27 +02:00
blallo c43149ce55
Add hyper term 2021-06-24 09:59:50 +02:00
blallo bb30a67598 Switch keyboard layout preferences 2021-05-26 00:00:05 +02:00
23 changed files with 181 additions and 26 deletions

View File

@ -4,6 +4,8 @@ bindsym $mod+d exec $menu
bindsym $mod+backslash exec $window_list
# pass
bindsym $mod+p exec passmenu
# passotp
bindsym $mod+Shift+p exec otpmenu
# bluetooth devices
bindsym $mod+Shift+Mod1+m exec btmenu
@ -21,28 +23,36 @@ bindsym $mod+Mod1+i exec $chromium_isolated
bindsym $mod+Mod1+Shift+i exec $chromium_anon
bindsym $mod+m exec $mua
bindsym $mod+Mod1+f exec $files
bindsym $mod+Shift+t exec $kitty_term
bindsym $mod+t exec $kitty_term
bindsym $mod+Mod1+t exec $alacritty_term
bindsym $mod+Shift+t exec $hyper_term
bindsym $mod+Mod1+l exec $lock
bindsym $mod+Shift+b exec $chbg
bindsym $mod+c exec $clipboard
bindsym $mod+y exec net-copy
bindsym $mod+v exec net-paste
bindsym $mod+Shift+f exec $files
bindsym XF86AudioRaiseVolume exec /home/leo/.bin/volume.sh +
bindsym XF86AudioLowerVolume exec /home/leo/.bin/volume.sh -
bindsym XF86AudioMute exec /home/leo/.bin/volume.sh m
# bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
bindsym XF86MonBrightnessUp exec brightnessctl set +5%
bindsym XF86AudioRaiseVolume exec volumectl raise
bindsym XF86AudioLowerVolume exec volumectl lower
bindsym XF86AudioMute exec volumectl %
bindsym XF86AudioMicMute exec volumectl mute --mic
bindsym Ctrl+Mod1+m exec volumectl mute --mic
bindsym XF86MonBrightnessUp exec lightctl raise
bindsym XF86MonBrightnessDown exec lightctl lower
bindsym Print exec ~/.bin/screenshot.sh -w
bindsym Ctrl+Print exec ~/.bin/screenshot.sh -s
bindsym Ctrl+Mod1+Print exec ~/.bin/screenshot.sh
bindsym Print exec ~/.bin/screenshot.sh -w -e
bindsym Ctrl+Print exec ~/.bin/screenshot.sh -s -e
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+c exec mpc clear
bindsym $mod+Ctrl+k exec 'pkill Xephyr && notify-send "Adam" "Killed"'
bindsym --no-repeat F12 exec gdbus call -e -d net.sourceforge.mumble.mumble -o / -m net.sourceforge.mumble.Mumble.startTalk
bindsym --release F12 exec gdbus call -e -d net.sourceforge.mumble.mumble -o / -m net.sourceforge.mumble.Mumble.stopTalk
bindsym F9 exec swaymsg "input type:keyboard xkb_switch_layout 0"
bindsym F10 exec swaymsg "input type:keyboard xkb_switch_layout 1"
bindsym F9 exec 'swaymsg "input type:keyboard xkb_switch_layout 0" && notify-send "US layout"'
bindsym F10 exec 'swaymsg "input type:keyboard xkb_switch_layout 1" && notify-send "IT layout"'
# Drag floating windows by holding down $mod and left mouse button.
@ -162,4 +172,8 @@ mode "resize" {
}
bindsym $mod+r mode "resize"
bindsym $mod+Shift+r exec /home/leo/.bin/toggle_resolution_headless.sh
default_border none
# vim:syntax=swayconfig:

3
config
View File

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

View File

@ -315,3 +315,5 @@ default_border none
# }
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_QPA_PLATFORM=wayland
QT_WAYLAND_DISABLE_WINDOWDECORATION=1
# vim:syntax=swayconfig:

View File

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

View File

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

View File

@ -10,8 +10,16 @@ input "1452:782:Apple_Wireless_Trackpad" {
tap enabled
natural_scroll enabled
middle_emulation enabled
accel_profile adaptive
drag enabled
scroll_factor 2
}
input * xkb_layout "it,us"
input * xkb_layout "us,it"
input "Dell Keyboard" xkb_model "dell"
input "Logitech Keyboard" xkb_model "logitech_base"
input "Logitech Keyboard" {
xkb_model "logitech_base"
xkb_numlock enabled
}
# vim:syntax=swayconfig:

3
input.piped.conf 100644
View File

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

View File

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

View File

@ -1,8 +1,8 @@
# Single external screen plus optional open builtin screen
set $laptop eDP-1
bindswitch --locked lid:on output $laptop disable
bindswitch --locked lid:off output $laptop enable
bindswitch --reload --locked lid:on output $laptop disable
bindswitch --reload --locked lid:off output $laptop enable
output eDP-1 {
resolution 1920x1080
@ -15,7 +15,10 @@ output HDMI-A-2 {
position 0,0
bg /home/leo/Pictures/random.jpg fill "#0022FF"
}
output DP-2 {
output 'Samsung Electric Company C34J79x H1AK500000' {
resolution 3440x1440
bg /home/leo/Pictures/random.jpg fill "#0022FF"
}
# vim:syntax=swayconfig:

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:

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
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/)
output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
# vim:syntax=swayconfig:

8
piped 100644
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 100644
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:

21
services.conf 100644
View File

@ -0,0 +1,21 @@
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 cbatticon"
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 kanshi"
exec "systemctl --user start greenclip"
exec "systemctl --user start poweralertd-user"
exec "systemctl --user import-environment; systemctl --user start swayidle"
# exec swayidle -w \
# timeout 300 '$lock' \
# timeout 305 'swaymsg "output * dpms off"' \
# timeout 5 'if pgrep -x swaylock; then swaymsg "output * dpms off"; fi' \
# resume 'swaymsg "output * dpms on"' \
# before-sleep '$lock'
# vim:syntax=swayconfig:

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:

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 [class="^.*"] border pixel 2
gaps inner 5
# vim:syntax=swayconfig:

View File

@ -8,19 +8,19 @@ set $term terminator
# Your preferred application launcher
set $menu rofi -show run
set $window_list rofi -show window
set $browser firefox
set $chromium_work chromium --use-cmd-decoder=validating --use-gl=desktop --profile-directory="Work"
set $chromium_personal chromium --use-cmd-decoder=validating --use-gl=desktop --profile-directory="DetangleRegular"
set $chromium_isolated chromium --use-cmd-decoder=validating --use-gl=desktop --profile-directory="DetangleIsolated"
set $chromium_anon chromium --use-cmd-decoder=validating --use-gl=desktop --profile-directory="Anon"
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
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
# vim:syntax=swayconfig:

26
vars.piped.conf 100644
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: