Compare commits

..

No commits in common. "c534f35bce9cb117a52f0be3aa14107bec3be108" and "6fdf1a9ce3404e8f78f9cd080f633306be23445a" have entirely different histories.

21 changed files with 615 additions and 25 deletions

View File

@ -0,0 +1,201 @@
# -*- conf -*-
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
# term=foot (or xterm-256color if built with -Dterminfo=disabled)
term=xterm-256color
# login-shell=no
# app-id=foot # globally set wayland app-id. Default values are "foot" and "footclient" for desktop and server mode
# title=foot
# locked-title=no
# font=monospace:size=8
font=IBM Plex Mono:size=9
# font-bold=<bold variant of regular font>
# font-italic=<italic variant of regular font>
# font-bold-italic=<bold+italic variant of regular font>
# font-size-adjustment=0.5
# line-height=<font metrics>
# letter-spacing=0
# horizontal-letter-offset=0
# vertical-letter-offset=0
# underline-offset=<font metrics>
# underline-thickness=<font underline thickness>
# box-drawings-uses-font-glyphs=no
# dpi-aware=no
# initial-window-size-pixels=700x500 # Or,
# initial-window-size-chars=<COLSxROWS>
# initial-window-mode=windowed
# pad=0x0 # optionally append 'center'
# resize-delay-ms=100
# notify=notify-send -a ${app-id} -i ${app-id} ${title} ${body}
# bold-text-in-bright=no
# word-delimiters=,│`|:"'()[]{}<>
# selection-target=primary
# workers=<number of logical CPUs>
# utmp-helper=/usr/lib/utempter/utempter # When utmp backend is libutempter (Linux)
# utmp-helper=/usr/libexec/ulog-helper # When utmp backend is ulog (FreeBSD)
[environment]
# name=value
[bell]
# urgent=no
# notify=no
# command=
# command-focused=no
[scrollback]
# lines=1000
# multiplier=3.0
# indicator-position=relative
# indicator-format=""
[url]
# launch=xdg-open ${url}
# label-letters=sadfjklewcmpgh
# osc8-underline=url-mode
# protocols=http, https, ftp, ftps, file, gemini, gopher
# uri-characters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+="'()[]
[cursor]
# style=block
# color=<inverse foreground/background>
# blink=no
# beam-thickness=1.5
# underline-thickness=<font underline thickness>
[mouse]
# hide-when-typing=no
# alternate-scroll-mode=yes
[touch]
# long-press-delay=400
[colors]
alpha=0.8
background=282828
foreground=ebdbb2
regular0=282828
regular1=cc241d
regular2=98971a
regular3=d79921
regular4=458588
regular5=b16286
regular6=689d6a
regular7=a89984
bright0=928374
bright1=fb4934
bright2=b8bb26
bright3=fabd2f
bright4=83a598
bright5=d3869b
bright6=8ec07c
bright7=ebdbb2
## dimmed colors (see foot.ini(5) man page)
# dim0=<not set>
# ...
# dim7=<not-set>
## The remaining 256-color palette
# 16 = <256-color palette #16>
# ...
# 255 = <256-color palette #255>
## Misc colors
# selection-foreground=<inverse foreground/background>
# selection-background=<inverse foreground/background>
# jump-labels=<regular0> <regular3> # black-on-yellow
# scrollback-indicator=<regular0> <bright4> # black-on-bright-blue
# search-box-no-match=<regular0> <regular1> # black-on-red
# search-box-match=<regular0> <regular3> # black-on-yellow
# urls=<regular3>
[csd]
# preferred=server
# size=26
# font=<primary font>
# color=<foreground color>
# hide-when-maximized=no
# double-click-to-maximize=yes
# border-width=0
# border-color=<csd.color>
# button-width=26
# button-color=<background color>
# button-minimize-color=<regular4>
# button-maximize-color=<regular2>
# button-close-color=<regular1>
[key-bindings]
# scrollback-up-page=Shift+Page_Up
# scrollback-up-half-page=none
# scrollback-up-line=none
# scrollback-down-page=Shift+Page_Down
# scrollback-down-half-page=none
# scrollback-down-line=none
# clipboard-copy=Control+Shift+c XF86Copy
# clipboard-paste=Control+Shift+v XF86Paste
# primary-paste=Shift+Insert
# search-start=Control+Shift+r
# font-increase=Control+plus Control+equal Control+KP_Add
# font-decrease=Control+minus Control+KP_Subtract
# font-reset=Control+0 Control+KP_0
# spawn-terminal=Control+Shift+n
# minimize=none
# maximize=none
# fullscreen=none
# pipe-visible=[sh -c "xurls | fuzzel | xargs -r firefox"] none
# pipe-scrollback=[sh -c "xurls | fuzzel | xargs -r firefox"] none
# pipe-selected=[xargs -r firefox] none
# show-urls-launch=Control+Shift+o
# show-urls-copy=none
# show-urls-persistent=none
# prompt-prev=Control+Shift+z
# prompt-next=Control+Shift+x
# unicode-input=Control+Shift+u
# noop=none
[search-bindings]
# cancel=Control+g Control+c Escape
# commit=Return
# find-prev=Control+r
# find-next=Control+s
# cursor-left=Left Control+b
# cursor-left-word=Control+Left Mod1+b
# cursor-right=Right Control+f
# cursor-right-word=Control+Right Mod1+f
# cursor-home=Home Control+a
# cursor-end=End Control+e
# delete-prev=BackSpace
# delete-prev-word=Mod1+BackSpace Control+BackSpace
# delete-next=Delete
# delete-next-word=Mod1+d Control+Delete
# extend-to-word-boundary=Control+w
# extend-to-next-whitespace=Control+Shift+w
# clipboard-paste=Control+v Control+Shift+v Control+y XF86Paste
# primary-paste=Shift+Insert
# unicode-input=none
[url-bindings]
# cancel=Control+g Control+c Control+d Escape
# toggle-url-visible=t
[text-bindings]
# \x03=Mod4+c # Map Super+c -> Ctrl+c
[mouse-bindings]
# selection-override-modifiers=Shift
# primary-paste=BTN_MIDDLE
# select-begin=BTN_LEFT
# select-begin-block=Control+BTN_LEFT
# select-extend=BTN_RIGHT
# select-extend-character-wise=Control+BTN_RIGHT
# select-word=BTN_LEFT-2
# select-word-whitespace=Control+BTN_LEFT-2
# select-row=BTN_LEFT-3
# vim: ft=dosini

View File

@ -1,3 +0,0 @@
# vim: set ft=config:
# Configuration for hypridle is in ~/.config/hypr/hypridle.conf
exec-once = hypridle

View File

@ -0,0 +1,3 @@
# vim: set ft=config:
# Configuration for swayidle is in ~/.config/swayidle/config
exec-once = swayidle -w

View File

@ -1,11 +0,0 @@
# vim: set ft=config:
# for more configuration options, refer https://wiki.hyprland.org/Hypr-Ecosystem/hypridle
general {
lock_cmd = hyprlock
unlock_cmd = pkill -xu "$USER" -SIGUSR1 hyprlock
}
listener {
timeout = 900
on-timeout = loginctl lock-session
}

View File

@ -1,11 +0,0 @@
# vim: set ft=config:
# for more configuration options, refer https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock
input-field {
monitor =
fade_on_empty = false
}
background {
color = rgb(0,0,0)
}

View File

@ -0,0 +1,21 @@
#
# Salt's Sway configuration file
#
# NOTE
# Any further configuration that isn't just declaring a global should be
# done via the creation of a file in config.d.
#
# Note that you can also override system-provided configs by making an
# identically-named file in config.d
#
## CONFIGS
set $term foot
# Set modifiers
set $mod Mod1
set $sup Mod4
set $ctl Ctrl
set $shift Shift
include '$(/usr/libexec/sway/layered-include "/usr/share/sway/config.d/*.conf" "/etc/sway/config.d/*.conf" "${XDG_CONFIG_HOME:-$HOME/.config}/sway/config.d/*.conf")'
include "${XDG_CONFIG_HOME:-$HOME/.config}/sway/machine.d/$HOSTNAME.conf"

View File

@ -0,0 +1,91 @@
# vim: set ft=swayconfig:
#
# This file holds keybinds for all of swaywm
#
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# Program opening and closing
bindsym $mod+Return exec "$term"
bindsym $mod+q kill
bindsym $mod+space exec "rofi -show drun"
bindsym $mod+backslash exec "rofi -show ssh"
bindsym $mod+Tab exec "rofi -show window"
# Dunst management
bindsym $mod+$shift+space exec dunstctl close
bindsym $mod+$shift+Return exec dunstctl close-all
bindsym $mod+$shift+d exec dunstctl history-pop
bindsym $mod+$shift+o exec dunstctl context
# Pulse controls
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
# Screenshots
bindsym $mod+o exec grim -g "$(slurp -d)" - | wl-copy
# Brightness controls
#bindsym XF86MonBrightnessUp exec xbacklight -inc 5 # increase screen brightness
#bindsym XF86MonBrightnessDown exec xbacklight -dec 5 # decrease screen brightness
# pavucontrol controls
bindsym $mod+p exec --no-startup-id "pgrep pavucontrol || pavucontrol"
bindsym $mod+$shift+p exec --no-startup-id "pkill pavucontrol"
# Miscellaneous non-movement hotkeys
bindsym $ctl+$mod+l exec --no-startup-id "loginctl lock-session"
bindsym $mod+$shift+c reload
# Change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
# Move the focused window around
bindsym $mod+$shift+h move left
bindsym $mod+$shift+j move down
bindsym $mod+$shift+k move up
bindsym $mod+$shift+l move right
# Move the focused workspace between monitors
# Disabled here because I like having workspaces allocated to certain outputs
#bindsym $sup+h move workspace to output left
#bindsym $sup+j move workspace to output down
#bindsym $sup+k move workspace to output up
#bindsym $sup+l move workspace to output right
# Configure the split of this container
bindsym $mod+semicolon split h
bindsym $mod+v split v
# Toggle floating
bindsym $mod+f floating toggle
# Fullscreen
bindsym $mod+$shift+f fullscreen toggle
# Change the layout of this container
# Disabled because I just fatfinger these, they're never useful in my workflow
#bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# Focus the parent container. Lets you move groups at a time
bindsym $mod+a focus parent
# Focus the child container
bindsym $mod+d focus child
# Switch between workspaces
bindsym $mod+1 workspace $w1
bindsym $mod+2 workspace $w2
bindsym $mod+3 workspace $w3
bindsym $mod+4 workspace $w4
bindsym $mod+5 workspace $w5
bindsym $mod+6 workspace $w6
bindsym $mod+7 workspace $w7
bindsym $mod+8 workspace $w8
bindsym $mod+9 workspace $w9
bindsym $mod+0 workspace $w10
bindsym $mod+minus workspace $w11
bindsym $mod+period workspace next
bindsym $mod+comma workspace prev
# Move the focused container to a specific workspace
bindsym $mod+$shift+1 move container to workspace $w1
bindsym $mod+$shift+2 move container to workspace $w2
bindsym $mod+$shift+3 move container to workspace $w3
bindsym $mod+$shift+4 move container to workspace $w4
bindsym $mod+$shift+5 move container to workspace $w5
bindsym $mod+$shift+6 move container to workspace $w6
bindsym $mod+$shift+7 move container to workspace $w7
bindsym $mod+$shift+8 move container to workspace $w8
bindsym $mod+$shift+9 move container to workspace $w9
bindsym $mod+$shift+0 move container to workspace $w10
bindsym $mod+$shift+minus move container to workspace $w11

View File

@ -0,0 +1,22 @@
# vim: set ft=swayconfig:
#
# This file stores global confguration for input devices
#
# Mice
#input "type:pointer" {
# accel_profile flat # Disables mouse acceleration
# pointer_accel 0.000 # Set a sens that I like
#}
input "type:touchpad" {
drag enabled
dwt disabled
tap enabled
tap_button_map lrm
}
# Keyboards
input "type:keyboard" {
xkb_capslock disabled
xkb_numlock enabled
}

View File

@ -0,0 +1,38 @@
# vim: set ft=swayconfig:
#
# This file controls all theming within swaywm, including colors, gaps,
# borders, fonts, etc.
#
# Right now we're staring at a nice gruvbox theme
#
font pango:IBM Plex Sans 12
default_border pixel 4
titlebar_border_thickness 4
focus_on_window_activation none
gaps inner 8
set $red #fb4934
set $green #b8bb26
set $yellow #fabd2f
set $blue #83a598
set $magenta #de869b
set $cyan #8ec07c
set $white #ebdbb2
set $black #282828
set $gray #32302f
# See sway(5) for details on these
# Border color of the view itself v
# Indicator color (like for v/h split) v
# Titlebar text color v
# Titlebar backgrouond color v
# Titlebar border color v
# <colorclass> <brd> <bg> <text> <ind> <chld>
# The currently focused window
client.focused $blue $blue $black $gray $blue
# The most recently focused view in an unfocused container
client.focused_inactive $gray $black $white $gray $gray
# Any other unfocused views
client.unfocused $gray $gray $white $gray $gray
# Any view with an urgency hint
client.urgent $yellow $black $white $gray $yellow

View File

@ -0,0 +1,24 @@
# vim: set ft=swayconfig:
#
# This file stores "modes" for sway, such as for resizing
#
# Resize
bindsym $mod+r mode "resize"
mode "resize" {
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}

View File

@ -0,0 +1,5 @@
# vim: set ft=swayconfig:
# Wallpaper
#output * bg ~/Pictures/Wallpapers/.current fill
output * bg ~/Pictures/Wallpapers/.current center #282828

View File

@ -0,0 +1,60 @@
# vim: set ft=swayconfig:
#
# This file allocates rules for organizing windows
#
## WORKSPACES
set $w1 1
set $w2 2
set $w3 3
set $w4 4
set $w5 5
set $w6 6
set $w7 7
set $w8 8
set $w9 9
set $w10 10
set $w11 11
# General rules of thought:
# * The primary monitor will contain workspaces 1-7
# * Secondary monitors will get workspaces 8-10
# * Important apps go on primary, unimportant ones that are likely to be side-
# content, event-driven, and distractive can go on the secondary
# * Laptops get all 10 on one monitor, but shunting unimportant junk to the
# back workspaces yields a better workflow regardless
# * No rules are set in stone and the user can totally just move stuff around
# with reckless abandon
for_window {
# Workspace 1 should always be the web browser
[app_id="org.mozilla.firefox"] move container to workspace $w1
# Workspace 2 should contain Steam, if we intend to launch a game this session
#[app_id="com.valvesoftware.Steam"] move container to workspace $w2
# Workspace 8 contains Thunderbird and Keepass
[app_id="org.keepassxc.KeePassXC"] move container to workspace $w8
[app_id="org.mozilla.Thunderbird"] move container to workspace $w8
[class="thunderbird"] move container to workspace $w8
# Workspace 9 should be communications platforms
[app_id="com.dev.vencord.Vesktop"] move container to workspace $w9
[app_id="com.dev.vencord.Vesktop"] inhibit_idle visible
[app_id="vesktop"] move container to workspace $w9
[app_id="vesktop"] inhibit_idle visible
[app_id="com.discordapp.Discord"] move container to workspace $w9
[app_id="com.discordapp.Discord"] inhibit_idle visible
[app_id="im.riot.Riot"] move container to workspace $w9
[app_id="im.riot.Riot"] inhibit_idle visible
# And Workspace 10 should contain misc. long-running programs
[class="Spotify"] move container to workspace $w10
[app_id="spotube"] move container to workspace $w10
[class="nuclear"] move container to workspace $w10
}
# These rules are app-specific but for any workspace
for_window {
[class="steam_app_2291060"] fullscreen
}

View File

@ -0,0 +1,15 @@
# vim: set ft=swayconfig:
#
# Idle and lock configuration
#
exec LT="900" && \
swayidle -w \
timeout $LT \
'swaylock -f' \
before-sleep \
'swaylock -f' \
lock \
'swaylock -f' \
unlock \
'pkill -xu "$USER" -SIGUSR1 swaylock'

View File

@ -0,0 +1,11 @@
# vim: set ft=swayconfig:
#
# wlsunset is more or less redshift. It reddens the screen as the day draws
# to a close.
#
# For customization, see wlsunset(1)
#
exec wlsunset \
-T 5300 \
-t 3500 \
-g 1

View File

@ -0,0 +1,2 @@
# vim: set ft=swayconfig:

View File

@ -0,0 +1,2 @@
#!/bin/sh
SWAY_EXTRA_ARGS="-D noscanout"

View File

@ -0,0 +1,54 @@
# vim: set ft=swayconfig:
set $monprim "Acer Technologies XV272U 0x11122114"
set $monsec "Acer Technologies XV272U 0x0501FD67"
output $monprim {
res 2560x1440@143.998993Hz
pos 1440 937
adaptive_sync off
}
output $monsec {
res 2560x1440@143.998993Hz
pos 0 0
transform 270
adaptive_sync off
}
# Valve Index
output "Unknown Unknown Unknown" {
disable
}
input type:pointer {
accel_profile flat
pointer_accel 0.000
}
output * bg ~/Pictures/Wallpapers/1561879941868.jpg fill
## WORKSPACES
set $w1 1
set $w2 2
set $w3 3
set $w4 4
set $w5 5
set $w6 6
set $w7 7
set $w8 8
set $w9 9
set $w10 10
set $w11 11
# Workspace setup for my desktop
# Defaults to whatever on my laptop and on other machines
workspace $w1 output $monprim
workspace $w2 output $monprim
workspace $w3 output $monprim
workspace $w4 output $monprim
workspace $w5 output $monprim
workspace $w6 output $monprim
workspace $w7 output $monprim
# Putting 10 here first so it's the default for my secondary
workspace $w10 output $monsec
workspace $w8 output $monsec
workspace $w9 output $monsec
workspace $w11 output $monsec

View File

@ -0,0 +1,32 @@
# vim: set ft=swayconfig:
set $monprim "eDP-1"
output $monprim scale 1.5
output * bg ~/Pictures/Wallpapers/1561879941868.jpg fill
## WORKSPACES
set $w1 1
set $w2 2
set $w3 3
set $w4 4
set $w5 5
set $w6 6
set $w7 7
set $w8 8
set $w9 9
set $w10 10
set $w11 11
# Workspace setup for my desktop
# Defaults to whatever on my laptop and on other machines
workspace $w1 output $mon
workspace $w2 output $mon
workspace $w3 output $mon
workspace $w4 output $mon
workspace $w5 output $mon
workspace $w6 output $mon
workspace $w7 output $mon
workspace $w8 output $mon
workspace $w9 output $mon
workspace $w10 output $mon
workspace $w11 output $mon

View File

@ -0,0 +1,28 @@
# vim: set ft=swayconfig:
## WORKSPACES
set $w1 1
set $w2 2
set $w3 3
set $w4 4
set $w5 5
set $w6 6
set $w7 7
set $w8 8
set $w9 9
set $w10 10
# Workspace setup for my desktop
# Defaults to whatever on my laptop and on other machines
set $monprim DisplayPort-0
set $monsec HDMI-A-0
workspace $w1 output $monprim
workspace $w2 output $monprim
workspace $w3 output $monprim
workspace $w4 output $monprim
workspace $w5 output $monprim
workspace $w6 output $monprim
workspace $w7 output $monprim
# Putting 10 here first so it's the default for my secondary
workspace $w10 output $monsec
workspace $w8 output $monsec
workspace $w9 output $monsec

View File

@ -0,0 +1,4 @@
timeout 900 'swaylock -f'
before-sleep 'swaylock -f'
lock 'swaylock -f'
unlock 'pkill -xu "$USER" -SIGUSR1 swaylock'

View File

@ -0,0 +1,2 @@
scaling=fill
color=000000