commit ce17800973137ee8a571e997170f90eccf1d0401 Author: steven Date: Sat Mar 22 22:05:44 2025 -0400 Initial commit diff --git a/sway/config b/sway/config new file mode 100644 index 0000000..72b4183 --- /dev/null +++ b/sway/config @@ -0,0 +1,132 @@ +# Variables +set $mod Mod1 +set $left h +set $down j +set $up k +set $right l +set $menu wmenu-run + +# Idle +for_window [class=".*"] inhibit_idle fullscreen +for_window [app_id=".*"] inhibit_idle fullscreen +exec swayidle timeout 300 'swaylock' + +# Start +output * bg /usr/share/backgrounds/Black.jpg fill +exec waybar +exec wl-paste --watch cliphist store +exec wlsunset -l "38.25" -L "-85.75" + +# Input +input type:touchpad { + dwt disabled + tap enabled + natural_scroll enabled + middle_emulation enabled +} +#input type:keyboard { +# xkb_layout us +# xkb_variant colemak +#} + +# Basics +bindsym $mod+Shift+q kill +bindsym $mod+Shift+c reload +bindsym $mod+Shift+e exit + +# Moving around +bindsym $mod+$left focus left +bindsym $mod+$down focus down +bindsym $mod+$up focus up +bindsym $mod+$right focus right +bindsym $mod+Shift+$left move left +bindsym $mod+Shift+$down move down +bindsym $mod+Shift+$up move up +bindsym $mod+Shift+$right move right + +# Workspaces +bindsym $mod+1 workspace number 1 +bindsym $mod+2 workspace number 2 +bindsym $mod+3 workspace number 3 +bindsym $mod+4 workspace number 4 +bindsym $mod+5 workspace number 5 +bindsym $mod+6 workspace number 6 +bindsym $mod+7 workspace number 7 +bindsym $mod+8 workspace number 8 +bindsym $mod+9 workspace number 9 +bindsym $mod+0 workspace number 10 +bindsym $mod+Shift+1 move container to workspace number 1 +bindsym $mod+Shift+2 move container to workspace number 2 +bindsym $mod+Shift+3 move container to workspace number 3 +bindsym $mod+Shift+4 move container to workspace number 4 +bindsym $mod+Shift+5 move container to workspace number 5 +bindsym $mod+Shift+6 move container to workspace number 6 +bindsym $mod+Shift+7 move container to workspace number 7 +bindsym $mod+Shift+8 move container to workspace number 8 +bindsym $mod+Shift+9 move container to workspace number 9 +bindsym $mod+Shift+0 move container to workspace number 10 +bindgesture swipe:right workspace prev +bindgesture swipe:left workspace next + +# Shortcuts +bindsym $mod+Return exec foot +bindsym $mod+d exec wmenu-run +bindsym $mod+y exec 'yt "$(wl-paste)"' +bindsym $mod+p exec foot -T "$(wl-paste)" -e sh -c 'yt_music "$(wl-paste -n)"' +bindsym $mod+s exec 'grim -g "$(slurp -d)" - | wl-copy' +bindsym Print exec 'grim - | swayimg -f -' +bindsym Mod4+e exec thunar +bindsym Mod4+f exec firefox + +bindsym --locked XF86AudioMute exec amixer sset -M Master toggle +bindsym --locked XF86AudioLowerVolume exec amixer -M sset Master 5%- +bindsym --locked XF86AudioRaiseVolume exec amixer -M sset Master 5%+ +bindsym --locked XF86MonBrightnessDown exec brightnessctl s 1%- +bindsym --locked XF86MonBrightnessUp exec brightnessctl s 1%+ + +bindsym XF86PowerOff exec swaylock +bindswitch lid:on exec swaylock +bindgesture hold:4 exec swaylock + +bindsym --locked XF86AudioPrev exec playerctl previous +bindsym --locked XF86AudioPlay exec playerctl play-pause +bindsym --locked XF86AudioNext exec playerctl next +bindsym --locked Mod4+space exec playerctl play-pause +bindsym --locked Mod4+up exec playerctl next +bindsym --locked Mod4+down exec playerctl previous +bindsym --locked Mod4+left exec playerctl position 10- +bindsym --locked Mod4+right exec playerctl position 10+ + +# Layout +bindsym $mod+n split none +bindsym $mod+v split toggle +bindsym $mod+b border toggle +bindsym $mod+f fullscreen +bindsym $mod+e layout toggle splith splitv tabbed +bindsym $mod+Shift+space floating toggle +bindsym $mod+space focus mode_toggle + +# Scratchpad +bindsym $mod+Shift+minus move scratchpad +bindsym $mod+minus scratchpad show + +# Resizing +bindsym $mod+r mode "resize" +mode "resize" { + bindsym $left resize shrink width 10px + bindsym $down resize grow height 10px + bindsym $up resize shrink height 10px + bindsym $right resize grow width 10px + bindsym Left resize shrink width 10px + bindsym Down resize grow height 10px + bindsym Up resize shrink height 10px + bindsym Right resize grow width 10px + bindsym Return mode "default" + bindsym Escape mode "default" +} + +xwayland disable + +floating_modifier $mod normal +default_border none +include /etc/sway/config.d/* diff --git a/waybar/config.jsonc b/waybar/config.jsonc new file mode 100644 index 0000000..d7be660 --- /dev/null +++ b/waybar/config.jsonc @@ -0,0 +1,75 @@ +{ + "margin":4, + "modules-left":[ + "sway/workspaces", + "sway/mode" + ], + "modules-center":[ + "mpris" + ], + "modules-right":[ + "privacy", + "network#warp", + "network#wifi", + "wireplumber", + "backlight", + "battery", + "clock", + "tray" + ], + "sway/workspaces":{ + "all-outputs":true + }, + "mpris":{ + "interval":1, + "dynamic-order":["title","artist","album"], + "format":"{dynamic} ({position}/{length})", + "tooltip":false + }, + "privacy":{ + "modules": [{"type": "audio-in"}] + }, + "network#warp":{ + "interval":5, + "format":"warp ", + "format-disconnected":"", + "tooltip":false, + "interface":"warp" + }, + "network#wifi":{ + "interval":5, + "format-wifi":"{essid} ({signalStrength}%) ", + "format-disconnected":"no wifi", + "tooltip-format":"{ipaddr}", + "interface":"wlan0" + }, + "backlight":{ + "format":"{percent}% ", + "tooltip":false + }, + "wireplumber":{ + "format":"{volume}% {icon}", + "format-muted":"{volume}% ", + "format-icons":["","",""], + "tooltip":false, + "on-click":"wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle" + }, + "battery":{ + "interval":1, + "format":"{power:.2f}W {capacity}% {icon}", + "format-icons":["","","","",""], + "format-time":"{H}:{m}", + "tooltip-format":"{time}", + "states":{ + "warning":25 + } + }, + "clock":{ + "interval":1, + "format":"{:}", + "tooltip":false + }, + "tray":{ + "spacing":10 + } +} diff --git a/waybar/style.css b/waybar/style.css new file mode 100644 index 0000000..70e98b2 --- /dev/null +++ b/waybar/style.css @@ -0,0 +1,24 @@ +* { + font: bold 14px monospace; +} + +window#waybar { + background-color: transparent; +} + +#workspaces button.focused, #battery.charging, #battery.charging.warning { + background-color: lightgreen; + color: black; +} + +#workspaces button.urgent, #battery.warning { + background-color: red; + color: black; +} + +#workspaces button, #mode, #mpris, #privacy, #network, #wireplumber, #backlight, #battery, #clock { + background-color: darkgreen; + border-radius: 10px; + padding: 0 8px; + margin: 0 2px; +}