diff options
author | jakobst1n <jakob.stendahl@outlook.com> | 2024-02-02 17:17:56 +0100 |
---|---|---|
committer | jakobst1n <jakob.stendahl@outlook.com> | 2024-02-02 17:17:56 +0100 |
commit | e1b6d486dbde35f4377a077babfac9236c8a446f (patch) | |
tree | 0ab5bb6439322bcfa4d87c73ede67cc125c1479b /linux | |
parent | 23bd6ccdd2c7e32be30cfd172c0c769755b53884 (diff) | |
download | dotfiles-e1b6d486dbde35f4377a077babfac9236c8a446f.tar.gz dotfiles-e1b6d486dbde35f4377a077babfac9236c8a446f.zip |
neovim and waybar things
Diffstat (limited to 'linux')
-rw-r--r-- | linux/sway/autostart | 17 | ||||
-rw-r--r-- | linux/sway/config | 2 | ||||
-rw-r--r-- | linux/sway/hid | 6 | ||||
-rw-r--r-- | linux/waybar/config | 82 | ||||
-rw-r--r-- | linux/waybar/style.segmented.css | 18 |
5 files changed, 86 insertions, 39 deletions
diff --git a/linux/sway/autostart b/linux/sway/autostart index 2d5eae7..3e53a79 100644 --- a/linux/sway/autostart +++ b/linux/sway/autostart @@ -2,9 +2,11 @@ exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK # screen locking -exec swayidle timeout 1200 physlock \ - timeout 1800 'swaymsg "output * dpms off"' \ - resume 'swaymsg "output * dpms on"' +exec swayidle -w \ + timeout 300 'swaymsg "output * dpms off"' \ + timeout 3600 physlock \ + resume 'swaymsg "output * dpms on"' \ + before-sleep physlock # notification centre exec swaync @@ -24,3 +26,12 @@ exec wl-paste -t text --watch clipman store --no-persist # Nice color hues in the evenings exec wlsunset -l 59.9614 -L 10.925 -t 4500 -T 6500 -g 1.0 +# start nextcloud +exec_always nextcloud --background + +# gnome keyring daemon +exec_always eval $(gnome-keyring-daemon --start) +exec_always export SSH_AUTH_SOCK + +# IME +exec_always fcitx5 -d diff --git a/linux/sway/config b/linux/sway/config index a772cd6..fb4afe5 100644 --- a/linux/sway/config +++ b/linux/sway/config @@ -47,7 +47,7 @@ bindsym $Mod+Return exec alacritty bindsym $Mod+w exec firefox bindsym $Mod+f exec thunar bindsym $Mod+c exec swaync-client -t -bindsym Mod1+l exec nwg-lock +bindsym Mod1+l exec physlock bindsym $Mod+d exec wofi --show=drun # Exit menu diff --git a/linux/sway/hid b/linux/sway/hid index 7ef3f70..23ad103 100644 --- a/linux/sway/hid +++ b/linux/sway/hid @@ -1,3 +1,7 @@ +output eDP-1 { + scale 1.4 +} + input "type:keyboard" { xkb_layout us,no repeat_delay 300 @@ -8,7 +12,7 @@ input "type:keyboard" { input "type:touchpad" { pointer_accel 0.0 - natural_scroll disabled + natural_scroll enabled scroll_factor 1.0 scroll_method two_finger left_handed disabled diff --git a/linux/waybar/config b/linux/waybar/config index 1f720dd..8a53674 100644 --- a/linux/waybar/config +++ b/linux/waybar/config @@ -1,14 +1,37 @@ { // "layer": "top", // Waybar at top layer // "position": "bottom", // Waybar position (top|bottom|left|right) - //"height": 0, // Waybar height (to be removed for auto height) + // "height": 0, // Waybar height (to be removed for auto height) // "width": 1280, // Waybar width "spacing": 0, // Gaps between modules (4px) - // Choose the order of the modules - "modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad", "custom/media"], - "modules-center": ["clock"], - "modules-right": ["temperature", "mpd", "cpu", "memory", "idle_inhibitor", "sway/language", "pulseaudio", "battery", "battery#bat2", "tray"], - // Modules configuration + + "modules-left": [ + "sway/workspaces", + "sway/mode", + "sway/scratchpad" + ], + + "modules-center": [ + "clock", + "privacy", + ], + + //"modules-right": ["temperature", "mpd", "cpu", "memory", "idle_inhibitor", "", "sway/language", "pulseaudio", "battery", "battery#bat2", "tray"], + "modules-right": [ + "temperature", + "mpd", + "cpu", + "memory", + "idle_inhibitor", + "custom/notification", + "pulseaudio", + "battery", + "battery#bat2", + "tray" + ], + + + "sway/workspaces": { //"disable-scroll": true, //"all-outputs": true, @@ -33,6 +56,24 @@ "unlocked": "" } }, + "privacy": { + "icon-spacing": 4, + "transition-duration": 250, + "modules": [ + { + "type": "screenshare", + "tooltip": true, + }, + { + "type": "audio-out", + "tooltip": true, + }, + { + "type": "audio-in", + "tooltip": true, + }, + ] + }, "sway/mode": { "format": "<span style=\"italic\">{}</span>" }, @@ -83,7 +124,8 @@ "clock": { // "timezone": "America/New_York", "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", - "format-alt": "{:%Y-%m-%d}" + "format-alt": "{:%H:%M}", + "format": "{:%H:%M (%d/%m/%Y)}", }, "cpu": { "format-critical": " {usage}%", @@ -161,17 +203,25 @@ }, "on-click": "pavucontrol" }, - "custom/media": { - "format": "{icon} {}", - "return-type": "json", - "max-length": 40, + "custom/notification": { + "tooltip": false, + "format": "{icon}", "format-icons": { - "spotify": "", - "default": "🎜" + "notification": "<span foreground='red'><sup></sup></span>", + "none": "", + "dnd-notification": "<span foreground='red'><sup></sup></span>", + "dnd-none": "", + "inhibited-notification": "<span foreground='red'><sup></sup></span>", + "inhibited-none": "", + "dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>", + "dnd-inhibited-none": "" }, - "escape": true, - "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder - // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name + "return-type": "json", + "exec-if": "which swaync-client", + "exec": "swaync-client -swb", + "on-click": "sleep 0.1 && swaync-client -t -sw", + "on-click-right": "sleep 0.1 && swaync-client -d -sw", + "escape": true } } diff --git a/linux/waybar/style.segmented.css b/linux/waybar/style.segmented.css index 9d994ca..0d0af78 100644 --- a/linux/waybar/style.segmented.css +++ b/linux/waybar/style.segmented.css @@ -20,24 +20,6 @@ window#waybar.hidden { opacity: 0.2; } -/* -window#waybar.empty { - background-color: transparent; -} -window#waybar.solo { - background-color: #FFFFFF; -} -*/ - -window#waybar.termite { - background-color: #3F3F3F; -} - -window#waybar.chromium { - background-color: #000000; - border: none; -} - #workspaces button { padding: 0 5px; padding-top: 4px; |