update configs
This commit is contained in:
parent
f8bccb0686
commit
5dadf1143a
9 changed files with 175 additions and 180 deletions
19
config/dunst/dunstrc
Normal file
19
config/dunst/dunstrc
Normal file
|
@ -0,0 +1,19 @@
|
|||
[global]
|
||||
icon_path = ""
|
||||
font = "JetBrains Mono 12"
|
||||
origin = bottom-right
|
||||
|
||||
[urgency_low]
|
||||
background = "#0d0e1c"
|
||||
foreground = "#ffffff"
|
||||
frame_color = "#79a8ff"
|
||||
|
||||
[urgency_normal]
|
||||
background = "#0d0e1c"
|
||||
foreground = "#ffffff"
|
||||
frame_color = "#79a8ff"
|
||||
|
||||
[urgency_critical]
|
||||
background = "#0d0e1c"
|
||||
foreground = "#ff7f9f"
|
||||
frame_color = "#ff7f9f"
|
|
@ -5,6 +5,10 @@ shell_integration no-cursor
|
|||
|
||||
text_composition_strategy legacy
|
||||
enable_audio_bell false
|
||||
confirm_os_window_close 0
|
||||
|
||||
map kitty_mod+shift+t new_tab_with_cwd
|
||||
map kitty_mod+shift+n launch --cwd=current --type=os-window
|
||||
|
||||
map alt+1 goto_tab 1
|
||||
map alt+2 goto_tab 2
|
||||
|
@ -15,3 +19,46 @@ map alt+6 goto_tab 6
|
|||
map alt+7 goto_tab 7
|
||||
map alt+8 goto_tab 8
|
||||
map alt+9 goto_tab 9
|
||||
|
||||
background #0d0e1c
|
||||
foreground #ffffff
|
||||
selection_background #7030af
|
||||
selection_foreground #ffffff
|
||||
url_color #c6daff
|
||||
cursor #ffffff
|
||||
cursor_text_color #0d0e1c
|
||||
|
||||
# Tabs
|
||||
active_tab_background #0d0e1c
|
||||
active_tab_foreground #c6daff
|
||||
inactive_tab_background #4a4f6a
|
||||
inactive_tab_foreground #ffffff
|
||||
#tab_bar_background #2c3045
|
||||
|
||||
# Windows
|
||||
active_border_color #79a8ff
|
||||
inactive_border_color #61647a
|
||||
|
||||
# normal
|
||||
color0 #0d0e1c
|
||||
color1 #ff5f59
|
||||
color2 #44bc44
|
||||
color3 #d0bc00
|
||||
color4 #2fafff
|
||||
color5 #feacd0
|
||||
color6 #00d3d0
|
||||
color7 #ffffff
|
||||
|
||||
# bright
|
||||
color8 #1d2235
|
||||
color9 #ff5f5f
|
||||
color10 #44df44
|
||||
color11 #efef00
|
||||
color12 #338fff
|
||||
color13 #ff66ff
|
||||
color14 #00eff0
|
||||
color15 #989898
|
||||
|
||||
# extended colors
|
||||
color16 #fec43f
|
||||
color17 #ff9f80
|
||||
|
|
10
config/sway/bar.sh
Executable file
10
config/sway/bar.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
date=$(date +'%A, %b %d')
|
||||
time=$(date +'%I:%M %p')
|
||||
user=$(whoami)
|
||||
hostname=$(hostname)
|
||||
volume=$(pamixer --get-volume)
|
||||
|
||||
# => Friday, Mar 05 | 03:47 PM
|
||||
echo "$user@$hostname | $volume% | | $date | $time"
|
BIN
config/sway/bg.jpg
Normal file
BIN
config/sway/bg.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 2 MiB |
BIN
config/sway/bg1.jpg
Normal file
BIN
config/sway/bg1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 MiB |
|
@ -1,74 +1,37 @@
|
|||
# Default config for sway~/
|
||||
#
|
||||
# Copy this to ~/.config/sway/config and edit it to your liking.
|
||||
#
|
||||
# Read `man 5 sway` for a complete reference.
|
||||
# Sway config for hunterstasonis
|
||||
|
||||
### Variables
|
||||
#
|
||||
# Logo key. Use Mod1 for Alt.
|
||||
set $mod Mod4
|
||||
# Home row direction keys, like vim
|
||||
|
||||
set $left h
|
||||
set $down j
|
||||
set $up k
|
||||
set $right l
|
||||
# Your preferred terminal emulator
|
||||
|
||||
set $term kitty
|
||||
# Your preferred application launcher
|
||||
set $menu rofi
|
||||
|
||||
# Startup commands
|
||||
exec dunst
|
||||
|
||||
### Output configuration
|
||||
#
|
||||
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
||||
#output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
|
||||
output * bg /home/hunterstasonis/.config/sway/bg.jpg fill
|
||||
#
|
||||
# Example configuration:
|
||||
#
|
||||
# Looks, super small gap/pixel border
|
||||
default_border pixel 5
|
||||
gaps inner 5
|
||||
|
||||
client.focused #0d0e1c #0d0e1c #ffffff #0d0e1c
|
||||
client.focused_inactive #2b3045 #2b3045 #ffffff #2b3045
|
||||
client.unfocused #2b3045 #2b3045 #ffffff #2b3045
|
||||
|
||||
# Wallpaper & Display/DPI
|
||||
output * bg /home/hunterstasonis/.config/sway/bg1.jpg fill
|
||||
output DP-3 scale 1.75
|
||||
#
|
||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||
|
||||
### Idle configuration
|
||||
#
|
||||
# Example configuration:
|
||||
#
|
||||
# exec swayidle -w \
|
||||
# timeout 300 'swaylock -f -c 000000' \
|
||||
# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
|
||||
# before-sleep 'swaylock -f -c 000000'
|
||||
#
|
||||
# This will lock your screen after 300 seconds of inactivity, then turn off
|
||||
# your displays after another 300 seconds, and turn your screens back on when
|
||||
# resumed. It will also lock your screen before your computer goes to sleep.
|
||||
|
||||
### Input configuration
|
||||
#
|
||||
# Example configuration:
|
||||
input * repeat_delay 200
|
||||
input * repeat_rate 50
|
||||
#
|
||||
# input "2:14:SynPS/2_Synaptics_TouchPad" {
|
||||
# dwt enabled
|
||||
# tap enabled
|
||||
# natural_scroll enabled
|
||||
# middle_emulation enabled
|
||||
# }
|
||||
#
|
||||
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
||||
# Read `man 5 sway-input` for more information about this section.
|
||||
input * xkb_options caps:escape
|
||||
|
||||
### Key bindings
|
||||
#
|
||||
# Basics:
|
||||
#
|
||||
# Start a terminal
|
||||
bindsym $mod+Return exec $term
|
||||
|
||||
bindsym $mod+Shift+s exec sway-screenshot -m region
|
||||
|
||||
# Kill focused window
|
||||
|
@ -80,11 +43,6 @@ input * repeat_rate 50
|
|||
# Executable launcher
|
||||
bindsym $mod+Shift+r exec $menu -show run
|
||||
|
||||
# Drag floating windows by holding down $mod and left mouse button.
|
||||
# Resize them with right mouse button + $mod.
|
||||
# Despite the name, also works for non-floating windows.
|
||||
# Change normal to inverse to use left mouse button for resizing and right
|
||||
# mouse button for dragging.
|
||||
floating_modifier $mod normal
|
||||
|
||||
# Reload the configuration file
|
||||
|
@ -92,33 +50,20 @@ input * repeat_rate 50
|
|||
|
||||
# Exit sway (logs you out of your Wayland session)
|
||||
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'
|
||||
#
|
||||
# Moving around:
|
||||
#
|
||||
bindsym $mod+Shift+grave exec bash ~/git/config/scripts/lock.sh
|
||||
|
||||
# Move your focus around
|
||||
bindsym $mod+$left focus left
|
||||
bindsym $mod+$down focus down
|
||||
bindsym $mod+$up focus up
|
||||
bindsym $mod+$right focus right
|
||||
# Or use $mod+[up|down|left|right]
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
|
||||
# Move the focused window with the same, but add Shift
|
||||
bindsym $mod+Shift+$left move left
|
||||
bindsym $mod+Shift+$down move down
|
||||
bindsym $mod+Shift+$up move up
|
||||
bindsym $mod+Shift+$right move right
|
||||
# Ditto, with arrow keys
|
||||
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:
|
||||
#
|
||||
|
||||
# Switch to workspace
|
||||
bindsym $mod+1 workspace number 1
|
||||
bindsym $mod+2 workspace number 2
|
||||
|
@ -130,6 +75,7 @@ input * repeat_rate 50
|
|||
bindsym $mod+8 workspace number 8
|
||||
bindsym $mod+9 workspace number 9
|
||||
bindsym $mod+0 workspace number 10
|
||||
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace number 1
|
||||
bindsym $mod+Shift+2 move container to workspace number 2
|
||||
|
@ -141,17 +87,12 @@ input * repeat_rate 50
|
|||
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
|
||||
# Note: workspaces can have any name you want, not just numbers.
|
||||
# We just use 1-10 as the default.
|
||||
#
|
||||
# Layout stuff:
|
||||
#
|
||||
# You can "split" the current object of your focus with
|
||||
# $mod+b or $mod+v, for horizontal and vertical splits
|
||||
# respectively.
|
||||
|
||||
bindsym $mod+b splith
|
||||
bindsym $mod+v splitv
|
||||
|
||||
bindsym $mod+w layout tabbed
|
||||
|
||||
# Make the current focus fullscreen
|
||||
bindsym $mod+f fullscreen
|
||||
|
||||
|
@ -161,74 +102,43 @@ input * repeat_rate 50
|
|||
# Swap focus between the tiling area and the floating area
|
||||
bindsym $mod+space focus mode_toggle
|
||||
|
||||
# Move focus to the parent container
|
||||
bindsym $mod+a focus parent
|
||||
#
|
||||
# Scratchpad:
|
||||
#
|
||||
# Sway has a "scratchpad", which is a bag of holding for windows.
|
||||
# You can send windows there and get them back later.
|
||||
|
||||
# Move the currently focused window to the scratchpad
|
||||
bindsym $mod+Shift+minus move scratchpad
|
||||
|
||||
# Show the next scratchpad window or hide the focused scratchpad window.
|
||||
# If there are multiple scratchpad windows, this command cycles through them.
|
||||
bindsym $mod+minus scratchpad show
|
||||
#
|
||||
# Resizing containers:
|
||||
#
|
||||
|
||||
|
||||
mode "resize" {
|
||||
# left will shrink the containers width
|
||||
# right will grow the containers width
|
||||
# up will shrink the containers height
|
||||
# down will grow the containers height
|
||||
bindsym $left resize shrink width 10px
|
||||
bindsym $down resize grow height 10px
|
||||
bindsym $up resize shrink height 10px
|
||||
bindsym $right resize grow width 10px
|
||||
|
||||
# Ditto, with arrow keys
|
||||
bindsym Left resize shrink width 10px
|
||||
bindsym Down resize grow height 10px
|
||||
bindsym Up resize shrink height 10px
|
||||
bindsym Right resize grow width 10px
|
||||
|
||||
# Return to default mode
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
bindsym $mod+r mode "resize"
|
||||
#
|
||||
# Utilities:
|
||||
#
|
||||
|
||||
# Special keys to adjust volume via PulseAudio
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
# Adjust volume
|
||||
bindsym --locked XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle
|
||||
bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5%
|
||||
bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5%
|
||||
bindsym --locked XF86AudioMicMute exec pactl set-source-mute \@DEFAULT_SOURCE@ toggle
|
||||
|
||||
# Special keys to adjust brightness via brightnessctl
|
||||
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
|
||||
bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+
|
||||
|
||||
# Special key to take a screenshot with grim
|
||||
bindsym Print exec grim
|
||||
|
||||
#
|
||||
# Status Bar:
|
||||
#
|
||||
# Read `man 5 sway-bar` for more information about this section.
|
||||
|
||||
# Status Bar:
|
||||
bar {
|
||||
position bottom
|
||||
font JetBrains Mono 12
|
||||
|
||||
status_command while date +'%Y-%m-%d %I:%M:%S %p'; do sleep 1; done
|
||||
colors {
|
||||
background #0d0e1c
|
||||
statusline #ffffff
|
||||
|
||||
focused_workspace #4a4f69 #4a4f69 #f4f4f4
|
||||
inactive_workspace #2b3045 #2b3045 #bfc0c4
|
||||
}
|
||||
|
||||
status_command while ~/.config/sway/bar.sh; do sleep 1; done
|
||||
}
|
||||
|
||||
include /etc/sway/config.d/*
|
||||
|
||||
default_border pixel 0
|
||||
gaps inner 10
|
||||
|
|
BIN
screenshot1.png
BIN
screenshot1.png
Binary file not shown.
Before Width: | Height: | Size: 1.7 MiB After Width: | Height: | Size: 937 KiB |
BIN
screenshot2.png
BIN
screenshot2.png
Binary file not shown.
Before Width: | Height: | Size: 2.8 MiB After Width: | Height: | Size: 6.6 MiB |
9
scripts/lock.sh
Normal file
9
scripts/lock.sh
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
swaynag -t warning -m 'Locking screen...' & disown
|
||||
|
||||
grim -t jpeg /tmp/lock.png
|
||||
|
||||
magick /tmp/lock.png -scale 10% -blur 0x2.5 -resize 1000% /tmp/lock.png
|
||||
|
||||
swaylock -s fill -i /tmp/lock.png
|
Loading…
Add table
Add a link
Reference in a new issue