diff --git a/sway-home/.azotebg b/sway-home/.azotebg new file mode 100755 index 00000000..dd788cfb --- /dev/null +++ b/sway-home/.azotebg @@ -0,0 +1,4 @@ +#!/bin/bash + +killall swaybg 2>/dev/null +swaybg -o '*' -i '/usr/share/backgrounds/archlabs/archlabs.jpg' diff --git a/sway-home/.config/nwg-panel/archlabs.json b/sway-home/.config/nwg-panel/archlabs.json new file mode 100644 index 00000000..ef2f8342 --- /dev/null +++ b/sway-home/.config/nwg-panel/archlabs.json @@ -0,0 +1,278 @@ +[ +{ + "name": "top", + "output": "", + "layer": "bottom", + "position": "top", + "width": "auto", + "height": 30, + "homogeneous": true, + "margin-top": 0, + "margin-bottom": 0, + "padding-horizontal": 0, + "padding-vertical": 0, + "spacing": 2, + "items-padding": 0, + "css-name": "panel-top", + "icons": "light", + "menu-start": "off", + "modules-left": [ + "playerctl" + ], + "modules-center": [ + "clock" + ], + "modules-right": [ + "scratchpad", + "executor-arch" + ], + "controls": "right", + "controls-settings": { + "alignment": "right", + "components": [ + "brightness", + "battery", + "volume", + "bluetooth", + "net" + ], + "commands": { + "battery": "", + "net": "", + "bluetooth": "blueman-manager" + }, + "custom-items": [ + { + "name": "Wallpapers", + "icon": "azote", + "cmd": "azote" + }, + { + "name": "Look & Feel", + "icon": "preferences-desktop-theme", + "cmd": "lxappearance" + }, + { + "name": "Outputs", + "icon": "wdisplays", + "cmd": "wdisplays && sway-save-outputs" + }, + { + "name": "Panel settings", + "icon": "nwg-panel", + "cmd": "nwg-panel-config" + } + ], + "menu": { + "name": "Exit", + "icon": "system-shutdown-symbolic", + "items": [ + { + "name": "Lock", + "cmd": "swaylock -f -c 000000" + }, + { + "name": "Logout", + "cmd": "swaymsg exit" + }, + { + "name": "Restart", + "cmd": "systemctl reboot" + }, + { + "name": "Shutdown", + "cmd": "systemctl -i poweroff" + } + ] + }, + "show-values": false, + "interval": 1, + "icon-size": 18, + "hover-opens": false, + "leave-closes": true, + "css-name": "controls-window", + "net-interface": "wlan0", + "Exit": "Exittt", + "system-shutdown-symbolic": "system-shutdown", + "output-switcher": true, + "window-width": 320, + "window-margin": 0, + "root-css-name": "controls-overview" + }, + "playerctl": { + "interval": 1, + "buttons": true, + "buttons-position": "left", + "chars": 50, + "css-name": "button-grid", + "icon-size": 16, + "button-css-name": "button-custom", + "label-css-name": "panel-top" + }, + "clock": { + "format": "%a, %d. %b %H:%M:%S", + "interval": 1, + "on-right-click": "", + "tooltip-text": "", + "on-left-click": "/home/piotr/PycharmProjects/swayinfo/calendar.py", + "on-middle-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "clock", + "root-css-name": "root-clock" + }, + "executor-arch": { + "script": "baph -c", + "interval": 900, + "icon-size": 16, + "on-left-click": "foot baph -unN", + "tooltip-text": "", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "", + "root-css-name": "", + "icon-placement": "left" + }, + "sway-taskbar": {}, + "sway-workspaces": {}, + "scratchpad": {} +}, +{ + "name": "bottom", + "output": "", + "layer": "bottom", + "position": "bottom", + "height": 30, + "margin-top": 0, + "margin-bottom": 0, + "padding-horizontal": 6, + "padding-vertical": 0, + "spacing": 10, + "items-padding": 0, + "css-name": "panel-bottom", + "icons": "", + "menu-start": "off", + "width": "auto", + "controls": "off", + "controls-settings": {}, + "scratchpad": {}, + "clock": {}, + "menu-start-settings": {}, + "playerctl": {}, + "sway-workspaces": {}, + "modules-left": [ + "sway-taskbar" + ], + "modules-center": [], + "modules-right": [ + "executor-cpuav", + "executor-cpubar", + "executor-temp", + "executor-memory", + "executor-drives", + "executor-uptime" + ], + "sway-taskbar": { + "workspace-buttons": false, + "show-app-icon": true, + "show-layout": true, + "show-app-name": true, + "name-max-len": 10, + "workspaces-spacing": 0, + "task-padding": 0, + "all-outputs": false, + "image-size": 16, + "workspace-menu": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8" + ], + "all-workspaces": true + }, + "executor-cpubar": { + "script": "gopsuinfo -c g", + "interval": 2, + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "", + "icon-size": 16, + "icon-placement": "left" + }, + "executor-cpuav": { + "script": "gopsuinfo -i a", + "interval": 2, + "tooltip-text": "CPU average load", + "on-left-click": "alacritty -e htop", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "", + "icon-size": 16, + "icon-placement": "right" + }, + "executor-temp": { + "script": "gopsuinfo -i t", + "interval": 5, + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "", + "icon-size": 16, + "icon-placement": "left" + }, + "executor-memory": { + "script": "gopsuinfo -i m", + "interval": 5, + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "", + "icon-size": 16, + "icon-placement": "left" + }, + "executor-drives": { + "script": "gopsuinfo -i n", + "interval": 15, + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "", + "icon-size": 16, + "icon-placement": "left" + }, + "executor-uptime": { + "script": "gopsuinfo -i u", + "interval": 60, + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "", + "icon-size": 16, + "icon-placement": "left" + } +} +] diff --git a/sway-home/.config/sway/autostart b/sway-home/.config/sway/autostart index 6d34d733..72f623fd 100644 --- a/sway-home/.config/sway/autostart +++ b/sway-home/.config/sway/autostart @@ -1,3 +1,3 @@ exec_always autotiling -exec_always nwg-panel -c config-personal -exec wlsunset -l 52.25 -L 22.12 -t 4500 +exec_always nwg-drawer -r +exec_always nwg-panel -c archlabs.json diff --git a/sway-home/.config/sway/config b/sway-home/.config/sway/config index 07eeb4e0..10ddcd23 100644 --- a/sway-home/.config/sway/config +++ b/sway-home/.config/sway/config @@ -3,12 +3,11 @@ # Read `man 5 sway` for reference. # border & title -for_window [title="^.*"] border pixel 1, title_format "%class >> %title" +for_window [class="^.*"] border pixel 1, title_format " %class >> %title " # gaps -gaps inner 4 +gaps inner 8 gaps outer 0 -smart_gaps on # font font pango:monospace 11 @@ -27,15 +26,10 @@ set $right semicolon # The file we include below is created and will be overwritten by nwg-shell-config GUI! # include ~/.config/sway/variables -# ############### Apply GTK settings ################## -set $gnome-schema org.gnome.desktop.interface -exec_always ~/.local/bin/import-gsettings \ - gtk-theme:gtk-theme-name \ - icon-theme:gtk-icon-theme-name \ - cursor-theme:gtk-cursor-theme-name +exec_always import-gsettings ############### Autostart ################## @@ -96,7 +90,7 @@ input "type:touchpad" { dwt enabled drag enabled scroll_factor 0.7 - pointer_accel 0.1 + pointer_accel 0.5 accel_profile flat } @@ -120,11 +114,12 @@ bindsym Control+space exec $launcher bindsym Mod1+F1 exec $launcher # core -bindsym $Mod+t exec $term -bindsym $Mod+Return exec $term -bindsym Control+Shift+t exec $term -bindsym $Mod+w exec $browser -bindsym $Mod+f exec $filemanager +bindsym $Mod+Return exec $term +bindsym Mod4+Shift+Return exec $term +bindsym Control+Shift+t exec $term +bindsym $Mod+t exec $term +bindsym $Mod+w exec $browser +bindsym $Mod+f exec $filemanager # Exit menu bindsym $Mod+x exec $exit @@ -133,7 +128,7 @@ bindsym $Mod+x exec $exit bindsym $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' # screenshot -bindsym Print exec ~/.local/bin/screenshot fullscreen +bindsym Print exec screenshot fullscreen bindsym Control+Print exec swappy -g "0,0 1920x1080" bindsym Shift+Control+Print exec grim -g "$(slurp)" - | swappy -f - diff --git a/sway-home/.config/sway/outputs b/sway-home/.config/sway/outputs index 91943b20..e69de29b 100644 --- a/sway-home/.config/sway/outputs +++ b/sway-home/.config/sway/outputs @@ -1,5 +0,0 @@ -output "LVDS-1" { - mode 1366x768@59Hz - pos 0 0 - transform normal -} diff --git a/sway-home/.config/sway/variables b/sway-home/.config/sway/variables index 7c61b07b..8990b9a6 100644 --- a/sway-home/.config/sway/variables +++ b/sway-home/.config/sway/variables @@ -1,7 +1,7 @@ -set $term foot -set $browser MOZ_ENABLE_WAYLAND=1 firefox -set $filemanager thunar -set $dock nwg-dock -d -set $drawer nwg-drawer -set $exit nwg-bar -set $lang us +set $lang us +set $exit nwg-bar +set $drawer nwg-drawer +set $dock nwg-dock -d +set $browser exo-open --launch WebBrowser +set $filemanager exo-open --launch FileManager +set $term exo-open --launch TerminalEmulator