Compare commits

...

20 Commits
master ... rita

Author SHA1 Message Date
blallo 46a8c81e3f
Update style 2023-05-05 16:44:55 +02:00
blallo b75c923d67
Update services 2023-05-05 16:44:44 +02:00
blallo 050d479353
Use sov 2023-05-05 16:29:03 +02:00
blallo 4ecb47cf9a
Fix file browser via rofi 2022-01-21 17:40:57 +01:00
blallo d7f199da36
Fix lid open/close status switch 2022-01-21 17:40:41 +01:00
blallo a86c34b13d
Add binding for otppass 2022-01-21 17:40:24 +01:00
blallo 352b4d6039
Waybar-related services 2022-01-21 17:39:56 +01:00
blallo fa44f2ac00
Add keyboard layout switch keybinds 2022-01-21 17:39:31 +01:00
blallo 184c8a97c6
Add browser-related vars 2022-01-21 17:38:59 +01:00
blallo fd80ca00b6
Use systemd for swayidle 2021-08-04 17:55:22 +02:00
blallo e5d74bb252
Change alt mic mute binding 2021-08-04 17:54:59 +02:00
blallo 342536fd38
Merge branch 'ada' into rita 2021-07-14 20:15:33 +02:00
blallo 70ba7db4eb
Update chromium shortcuts 2021-07-14 20:10:54 +02:00
blallo b5b29d05e7
Add greenclip and rofi-as-file-browser 2021-07-14 14:47:58 +02:00
blallo 65324f72d0
Change inputs 2021-07-03 00:46:47 +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
7 changed files with 67 additions and 39 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,17 +23,21 @@ 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+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 mute
bindsym XF86AudioMicMute exec volumectl mute --mic
bindsym Ctrl+$mod+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
@ -41,8 +47,8 @@ bindsym $mod+Ctrl+c exec mpc clear
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 1" && notify-send "Layout: US"'
bindsym F10 exec 'swaymsg "input type:keyboard xkb_switch_layout 0" && notify-send "Layout: IT"'
# Drag floating windows by holding down $mod and left mouse button.
@ -83,23 +89,25 @@ bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
## Workspaces:
workspace back_and_forth yes
#workspace back_and_forth yes
#bindsym $mod+tab workspace back_and_forth
bindsym $mod+tab workspace next_on_output
bindsym $mod+Shift+tab workspace prev_on_output
bindsym $mod+tab workspace next_on_output; exec /home/leo/.bin/refresh_sov.sh
bindsym $mod+Shift+tab workspace prev_on_output; exec /home/leo/.bin/refresh_sov.sh
bindsym $mod+Mod1+Up exec "echo 1 | tee /tmp/sov.status | tee /tmp/sov.fifo"
bindsym $mod+Mod1+Down exec "echo 0 | tee /tmp/sov.status | tee /tmp/sov.fifo"
# switch to workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
# move focused container to workspace
# Switch to workspace
bindsym $mod+1 workspace 1; exec /home/leo/.bin/refresh_sov.sh
bindsym $mod+2 workspace 2; exec /home/leo/.bin/refresh_sov.sh
bindsym $mod+3 workspace 3; exec /home/leo/.bin/refresh_sov.sh
bindsym $mod+4 workspace 4; exec /home/leo/.bin/refresh_sov.sh
bindsym $mod+5 workspace 5; exec /home/leo/.bin/refresh_sov.sh
bindsym $mod+6 workspace 6; exec /home/leo/.bin/refresh_sov.sh
bindsym $mod+7 workspace 7; exec /home/leo/.bin/refresh_sov.sh
bindsym $mod+8 workspace 8; exec /home/leo/.bin/refresh_sov.sh
bindsym $mod+9 workspace 9; exec /home/leo/.bin/refresh_sov.sh
bindsym $mod+0 workspace 10; exec /home/leo/.bin/refresh_sov.sh
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3

1
config
View File

@ -3,5 +3,6 @@ include ./output.conf
include ./input.conf
include ./style.conf
include ./bindings.conf
include ./services.conf
include /etc/sway/config.d/*

View File

@ -1,4 +1,4 @@
input "2:7:SynPS/2_Synaptics_TouchPad" {
input "1739:52710:DLL0945:00_06CB:CDE6_Touchpad" {
dwt enabled
tap enabled
natural_scroll enabled

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,8 @@ 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"
}

20
services.conf 100644
View File

@ -0,0 +1,20 @@
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@theCode-Breaker"
exec "systemctl --user start mako"
exec "systemctl --user start gammastep"
exec "systemctl --user start kanshi"
exec "systemctl --user start greenclip"
exec "systemctl --user start swaynag-battery"
exec "systemctl --user start poweralertd-user"
exec "systemctl --user import-environment; systemctl --user start sov.socket"
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'

View File

@ -1,4 +1,4 @@
# class border backgr. text indicator child_border
# class border backgr. text indicator child_border
client.focused #f5e942 #00bf16 #ffffff #f5e942 #f5e942
client.focused_inactive #5c6370 #3b3228 #ffffff #5c6370 #5c6370
client.unfocused #5c6370 #3b3228 #ffffff #5c6370 #5c6370
@ -8,3 +8,4 @@ font pango:FiraCode 10
for_window [app_id="^.*"] border pixel 2
for_window [class="^.*"] border pixel 2
gaps inner 5
seat seat0 xcursor_theme Bibata-Modern-Ice 24

View File

@ -8,19 +8,16 @@ 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_personal chromium_wlr Personal ""
set $chromium_isolated chromium_wlr Isolated ""
set $chromium_anon chromium_wlr Incognito ""
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
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
set $clipboard rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}'
set $files rofi -show filebrowser