New sway setup
This commit is contained in:
@@ -9,7 +9,21 @@ set $right l
|
||||
set $term alacritty
|
||||
|
||||
# Application Launcher
|
||||
set $menu wofi --hide-scroll --show drun | xargs swaymsg exec
|
||||
set $menu killall wofi || wofi
|
||||
|
||||
# Start wofi
|
||||
bindsym $mod+d exec $menu
|
||||
|
||||
# Screenshot (Grimshot)
|
||||
|
||||
# Super+P: Current window
|
||||
# Super+Shift+p: Select area
|
||||
# Super+Alt+p Current output
|
||||
# Super+Ctrl+p Select a window
|
||||
bindsym $mod+g exec grimshot save active
|
||||
bindsym $mod+Shift+g exec grimshot save area
|
||||
bindsym $mod+Mod1+g exec grimshot save output
|
||||
bindsym $mod+Ctrl+g exec grimshot save window
|
||||
|
||||
set $opacity 0.95
|
||||
for_window [class=".*"] opacity $opacity
|
||||
@@ -35,17 +49,6 @@ exec_always --no-startup-id dunst
|
||||
# Wlsunset (Night Light)
|
||||
exec_always wlsunset -lsd 47.6, -122.3 -t 3200 -T 6500
|
||||
|
||||
# Monitors
|
||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||
# output eDP-1 pos 0 0 res 1920x1200
|
||||
# output DP-5 pos 3440 0 res 3440x1440
|
||||
output eDP-1 pos 0 0 res 1920x1200
|
||||
output HDMI-A-1 pos 1920 0 res 3440x1440
|
||||
|
||||
# Wallpaper
|
||||
output HDMI-A-1 bg /home/opal/dotfiles/.config/wallpapers/2.jpg fit #050402
|
||||
output eDP-1 bg /home/opal/dotfiles/.config/wallpapers/2.jpg fit #050402
|
||||
|
||||
### Idle configuration
|
||||
# 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
|
||||
@@ -82,6 +85,17 @@ input type:keyboard {
|
||||
repeat_rate 45
|
||||
}
|
||||
|
||||
# Monitors
|
||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||
# output eDP-1 pos 0 0 res 1920x1200
|
||||
# output DP-5 pos 3440 0 res 3440x1440
|
||||
output eDP-1 pos 0 0 res 1920x1200
|
||||
output HDMI-A-1 pos 1920 0 res 3440x1440
|
||||
|
||||
# Wallpaper
|
||||
output HDMI-A-1 bg /home/opal/dotfiles/.config/wallpapers/redfog.jpg fill #050402
|
||||
output eDP-1 bg /home/opal/dotfiles/.config/wallpapers/redfog.jpg fill #050402
|
||||
|
||||
# Start a terminal
|
||||
bindsym $mod+Return exec $term
|
||||
|
||||
@@ -91,8 +105,6 @@ bindsym $mod+Shift+q kill
|
||||
# Lock SwayWM
|
||||
bindsym Control+Shift+l exec swaylock
|
||||
|
||||
# Start your launcher
|
||||
bindsym $mod+d exec $menu
|
||||
|
||||
# Change normal to inverse to use left mouse button for resizing and right
|
||||
# mouse button for dragging.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
style=/home/opal/dotfiles/.config/wofi/style.css
|
||||
show=drun
|
||||
show=run
|
||||
width=500
|
||||
height=300
|
||||
always_parse_args=true
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
# Each new shell auto-imports all environment variables.
|
||||
# Hence exporting needs to be done only once.
|
||||
# Also, all non-login shells are descendants of a login shell.
|
||||
# Ergo, exports need to be done in the login shell only.
|
||||
# Hence, we put exports in .zprofile
|
||||
|
||||
# Only vars needed by external commands should be exported.
|
||||
# Note that you can export vars w/out assigning a value to them.
|
||||
export XDG_CONFIG_HOME=~/.config
|
||||
export XDG_CACHE_HOME=~/.cache
|
||||
export XDG_DATA_HOME=~/.local/share
|
||||
export XDG_STATE_HOME=~/.config/zsh
|
||||
export EDITOR=nvim
|
||||
export VISUAL=nvim
|
||||
xmodmap ~/.config/xmodmap/xmodmap
|
||||
@@ -1,9 +0,0 @@
|
||||
if [[ -z "$XDG_CONFIG_HOME" ]]
|
||||
then
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
fi
|
||||
|
||||
if [[ -d "$XDG_CONFIG_HOME/zsh" ]]
|
||||
then
|
||||
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
|
||||
fi
|
||||
@@ -1,29 +0,0 @@
|
||||
# Sometimes SSH'ing with Emacs is ungraceful.
|
||||
# To remedy this I disable the zsh line editor.
|
||||
[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
|
||||
|
||||
|
||||
#### ~~~~ General ~~~~ #####
|
||||
export ZSH="$XDG_CONFIG_HOME/oh-my-zsh"
|
||||
HISTFILE=$XDG_CONFIG_HOME/zsh/.history
|
||||
ZSH_THEME="mrtazz"
|
||||
DISABLE_AUTO_UPDATE="true"
|
||||
ENABLE_CORRECTION="true"
|
||||
plugins=(git)
|
||||
source $ZSH/oh-my-zsh.sh # This has to stay below plugins.
|
||||
|
||||
#### ~~~~ Autostart ~~~~ #####
|
||||
pfetch
|
||||
|
||||
#### ~~~~ Path Additions ~~~~ #####
|
||||
export PATH=/home/opal/scripts:$PATH # Scripts
|
||||
|
||||
#### ~~~~ Locale ~~~~ #####
|
||||
export LANG=en_US.UTF-8
|
||||
|
||||
|
||||
#### ~~~~ Import ~~~~ #####
|
||||
ALIAS_LOCATION="$XDG_CONFIG_HOME/zsh/zsh_aliases"
|
||||
FUNCTION_LOCATION="$XDG_CONFIG_HOME/zsh/zsh_functions"
|
||||
source $ALIAS_LOCATION
|
||||
source $FUNCTION_LOCATION
|
||||
Reference in New Issue
Block a user