You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

173 lines
5.4 KiB
Plaintext

exec {
eval `keychain --eval --agents ssh id_rsa`
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
systemctl --user import-environment && gnome-keyring-daemon --components=ssh\,secrets\,pkcs11 --start
dbus-update-activation-environment --all
gnome-keyring-daemon --start --components=secrets
mako
export SSH_AUTH_SOCK
/usr/libexec/polkit-gnome-authentication-agent-1
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
}
exec_always "pkill kanshi; kanshi"
set {
$mod Mod4
$left h
$down j
$up k
$right l
$term alacritty
$menu /bin/bash $HOME/.config/rofi/bin/launcher
$filemanager alacritty -e 'thunar'
}
output {
"Philips Consumer Electronics Company PHL 258B6QU UHB1623076065" pos 2560 0
"Ancor Communications Inc ASUS PB298 0x00003784" pos 0 210
}
default_border pixel 2
smart_borders on
for_window {
[app_id="zoom" title="^zoom$"] border none, floating enable
[app_id="zoom" title="^(Zoom|About)$"] border pixel, floating enable
[app_id="zoom" title="Settings"] floating enable, floating_minimum_size 960 x 700
[app_id="zoom" title="Zoom - Free Account"] border none, floating enable
[app_id="zoom" title="Zoom Cloud Meetings"] border none, floating enable
[app_id="zoom" title="Zoom Meeting(.*)?"] workspace next_on_output --create, move container to workspace current, floating disable, inhibit_idle open
[app_id="zoom" title="Choose ONE of the audio conference options"] border none, floating enable
[app_id="zoom" title="Zoom Meeting"] border none, floating enable
[app_id="pavucontrol"] border none, floating enable
[app_id="librewolf" title="LibreWolf - Sharing Indicator"] border none, floating enable
}
bindsym {
XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
XF86AudioMicMute exec pactl set-source-mute 0 toggle
XF86MonBrightnessUp exec brightnessctl set +10%
XF86MonBrightnessDown exec brightnessctl set 10%-
ctrl+alt+q exec swaylock -i /home/rahulsandhu/.local/share/wallpapers/wallpaper0.jpg -k --font JetBrainsMonoNerdFont --clock --indicator
ctrl+alt+e exec /bin/bash $HOME/.config/rofi/bin/powermenu
$mod+shift+f exec $filemanager
$mod+Shift+d exec grim -g "$(slurp -p)" -t ppm - | convert - -format '%[pixel:p{0,0}]' txt:- | tail -n 1 | cut -d ' ' -f 4 | wl-copy
}
set $screenshot 1 selected, 2 whole, 3 selected clipboard, 4 whole clipboard, 5 swappy
mode "$screenshot" {
bindsym {
1 exec 'grim -g "$(slurp)" ~/Pictures/screenshots/screenshot_$(date +"%Y%m%d%H%M%S").png', mode "default"
2 exec 'grim ~/Pictures/screenshots/screenshot_$(date +"%Y%m%d%H%M%S").png', mode "default"
3 exec 'grim -g "$(slurp)" - | wl-copy', mode "default"
4 exec 'grim - | wl-copy', mode "default"
Return mode "default"
Escape mode "default"
Print mode "default"
}
}
bindsym Print mode "$screenshot"
input "type:keyboard" {
xkb_layout gb
}
input "1267:12602:ELAN0721:00_04F3:313A" {
accel_profile adaptive
click_method button_areas
dwt disabled
natural_scroll enabled
scroll_method two_finger
tap enabled
}
output * bg ~/.local/share/wallpapers/wallpaper0.jpg fill
floating_modifier $mod normal
bindsym {
$mod+Return exec $term
$mod+Shift+q kill
Mod1+space exec $menu
$mod+Shift+c reload
$mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$mod+$left focus left
$mod+$down focus down
$mod+$up focus up
$mod+$right focus right
$mod+Left focus left
$mod+Down focus down
$mod+Up focus up
$mod+Right focus right
$mod+Shift+$left move left
$mod+Shift+$down move down
$mod+Shift+$up move up
$mod+Shift+$right move right
$mod+Shift+Left move left
$mod+Shift+Down move down
$mod+Shift+Up move up
$mod+Shift+Right move right
$mod+1 workspace number 1
$mod+2 workspace number 2
Lock workspace number 2
$mod+3 workspace number 3
$mod+4 workspace number 4
$mod+5 workspace number 5
$mod+6 workspace number 6
$mod+7 workspace number 7
$mod+8 workspace number 8
$mod+9 workspace number 9
$mod+0 workspace number 10
$mod+Shift+1 move container to workspace number 1
$mod+Shift+2 move container to workspace number 2
$mod+Shift+3 move container to workspace number 3
$mod+Shift+4 move container to workspace number 4
$mod+Shift+5 move container to workspace number 5
$mod+Shift+6 move container to workspace number 6
$mod+Shift+7 move container to workspace number 7
$mod+Shift+8 move container to workspace number 8
$mod+Shift+9 move container to workspace number 9
$mod+Shift+0 move container to workspace number 10
$mod+b splith
$mod+v splitv
$mod+s layout stacking
$mod+w layout tabbed
$mod+e layout toggle split
$mod+f fullscreen
$mod+Shift+space floating toggle
$mod+space focus mode_toggle
$mod+a focus parent
$mod+Shift+minus move scratchpad
$mod+minus scratchpad show
$mod+Tab split toggle
}
mode "resize" {
bindsym {
$left resize shrink width 10px
$down resize grow height 10px
$up resize shrink height 10px
$right resize grow width 10px
Left resize shrink width 10px
Down resize grow height 10px
Up resize shrink height 10px
Right resize grow width 10px
Return mode "default"
Escape mode "default"
}
}
bindsym $mod+r mode "resize"
bar {
swaybar_command waybar
}
include @sysconfdir@/sway/config.d/*