kolejne zmiany, dużo, zebrało się

This commit is contained in:
2024-11-23 09:47:23 +01:00
parent 192276ff80
commit e167001547
42 changed files with 910 additions and 313 deletions

13
.config/sway/autostart Normal file
View File

@ -0,0 +1,13 @@
exec rm /tmp/nwg-shell-check-update.lock
exec wlsunset -t 4500 -T 6500 -l -1 -L -1 -g 1.0
exec swaync -s /home/paramah/.config/swaync/preset-0.css
exec nm-applet --indicator
exec wl-paste --type text --watch cliphist store
exec wl-paste --type image --watch cliphist store
exec_always nwg-autotiling
exec_always nwg-drawer -r -c 6 -is 64 -fscol 2 -s preset-0.css -term foot -ft -pbexit 'nwg-dialog -p exit-sway -c "swaymsg exit"' -pblock 'nwg-lock' -pbpoweroff 'nwg-dialog -p poweroff -c "systemctl -i poweroff"' -pbreboot 'nwg-dialog -p reboot -c "systemctl reboot"' -pbsleep 'nwg-dialog -p sleep -c "systemctl suspend"' -pbsize 48
exec_always nwg-panel -c preset-0 -s preset-0.css
exec_always nwg-shell-check-updates
#exec swayidle timeout 1200 nwg-lock timeout 1800 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"'
exec nwg-update-indicator
exec_always nwg-screenshot-applet

View File

@ -0,0 +1,46 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
set $alt Mod1
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
# set $term foot
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu dmenu_path | dmenu | xargs swaymsg exec --
font Terminus 9
#font pango:SourceCodePro Medium 11
gaps inner 10
default_border none
default_border normal 0
### Output configuration
#
# Default wallpaper (more resolutions are available in @datadir@/backgrounds/sway/)
# output * bg ~/Wallpapers/deusex.jpg fill
#for_window [app_id="^launcher$"] floating enable, sticky enable, resize set 30 ppt 60 ppt, border pixel 10
#set $menu exec $term --class=launcher -e /home/paramah/bin/sway-launcher-desktop.sh
#bindsym $mod+d exec $menu
# include @sysconfdir@/sway/config.d/*
include $HOME/.config/sway/sway.d/*.conf

8
.config/sway/keyboard Normal file
View File

@ -0,0 +1,8 @@
input "type:keyboard" {
xkb_layout pl
repeat_delay 300
repeat_rate 40
xkb_capslock disabled
xkb_numlock disabled
}
bindsym --release Super_L exec $launcher

0
.config/sway/outputs Normal file
View File

5
.config/sway/pointer Normal file
View File

@ -0,0 +1,5 @@
input "type:pointer" {
natural_scroll disabled
scroll_factor 1.0
left_handed disabled
}

View File

@ -15,7 +15,7 @@ workspace 2 output eDP-1
workspace 3 output DP-3
workspace 4 output DP-3
workspace 5 output DP-4
workspace 5 output DP-3
workspace 10 output eDP-1

View File

@ -3,6 +3,7 @@
for_window [app_id="(.*)telegram(.*)"] resize set 900 600, move scratchpad, border pixel 1
for_window [class="Mattermost"] resize set 900 600, move scratchpad, border pixel 1
for_window [title="WhatsApp"] move scratchpad, border pixel 1
for_window [class="Element"] move scratchpad, resize set 1000 800, border pixel 1
for_window [class="discord"] move scratchpad, border pixel 1
for_window [window_role="floating"] floating enable
for_window [class="QSyncthingTray"] floating enable
@ -13,6 +14,8 @@ for_window [class="Gnome-calculator"] floating enable
for_window [class="zoom"] move scratchpad, floating enable
for_window [class="Signal"] move scratchpad
for_window [class="Trilium Notes"] move scratchpad, resize set 1200 800, border normal 2
for_window [class="pavucontrol"] floating enable
for_window [app_id="zenity"] floating enable

View File

@ -147,12 +147,12 @@ bindsym Shift+$mod+b exec rofi-buku
## Screenshot // Screenshot active display // <Print> ##
#bindsym Print exec $BIN_DIR/screenshots.sh display
#bindsym --locked Print exec grim -o "$(swaymsg --type get_outputs --raw | jq -r '.[] | select(.focused) | .name')" - | swappy -f -
bindsym --locked Print exec /usr/share/sway/scripts/grimshot --notify save area - | swappy -f -
bindsym --locked Print exec grimshot --notify save area - | swappy -f -
## Screenshot // Screenshot current window // <><Print> ##
#bindsym $mod+Print exec $BIN_DIR/screenshots.sh window
#bindsym $mod+Print exec swaymsg -t get_tree | jq -r '.. | (.nodes? // empty)[] | select(.focused) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | grim -g - - | swappy -f -
bindsym $mod+Print exec /usr/share/sway/scripts/grimshot --notify save output - | swappy -f -
bindsym $mod+Print exec grimshot --notify save output - | swappy -f -
## Modify // Monitor brightness up // <XF86MonBrightnessUp> ##
#bindsym XF86MonBrightnessUp exec light -A 5
@ -201,6 +201,8 @@ bindsym $mod+x exec $BIN_DIR/dmenuscreenshare.sh
bindsym $mod+p [class="Mattermost"] scratchpad show
bindsym $mod+Shift+m [class="Thunderbird"] scratchpad show
bindsym $mod+n [class="Trilium Notes"] scratchpad show
bindsym $mod+i exec --no-startup-id /home/paramah/.config/rofi/launchers/type-4/launcher.sh -show window
bindsym $mod+Shift+o exec --no-startup-id ~/.config/rofi/scripts/nmvpnmenu.sh
bindsym $mod+o exec --no-startup-id ~/.config/rofi/scripts/sound.sh

13
.config/sway/touchpad Normal file
View File

@ -0,0 +1,13 @@
input "type:touchpad" {
pointer_accel 0.0
natural_scroll disabled
scroll_factor 1.0
scroll_method two_finger
left_handed disabled
tap enabled
tap_button_map lrm
drag enabled
drag_lock disabled
dwt enabled
middle_emulation enabled
}

6
.config/sway/variables Normal file
View File

@ -0,0 +1,6 @@
set $term foot
set $browser chromium --enable-features=UseOzonePlatform --ozone-platform=wayland
set $filemanager thunar
set $editor vim
set $launcher nwg-drawer
set $exit $launcher

0
.config/sway/workspaces Normal file
View File