Reset dotfiles using stow

This commit is contained in:
Antoine Phan
2024-02-29 00:41:07 -05:00
parent 159066c9f1
commit b5ad2b6c39
26 changed files with 209 additions and 2477 deletions

View File

@@ -1,210 +0,0 @@
# Configuration for sway
# Read `man 5 sway` for more information
# Set Super key as mod
set $mod Mod4
# Set terminal emulator and application launcher
set $term alacritty --option=font.size=12
set $menu rofi
# --- Startup programs ---
# picom for transparency
# exec --no-startup-id picom --shadow --inactive-opacity=0.9 --shadow-radius=60 --shadow-opacity=0.2 --fade-in-step=0.8 &
# Background
#output * bg $HOME/.wallpaper/* center #271829
exec swaybg -i $HOME/.wallpaper/afternoon.png -m center &
# Font for window titles. Will also be used by the bar unless a different font
font pango:Fira Code 10
# Input keymap and variant
# Notification Daemon
exec mako &
# waybar
# exec waybar &
# Use wpctl (WirePlumber) to set volume
bindsym XF86AudioRaiseVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 10%+
bindsym XF86AudioLowerVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 10%-
bindsym XF86AudioMute exec --no-startup-id wpctl set-mute @DEFAULT_SINK@ toggle
# --- Controls ---
# increase screen brightness
bindsym XF86MonBrightnessUp exec brightnessctl set 5%+
# decrease screen brightness
bindsym XF86MonBrightnessDown exec brightnessctl set 8%-
# Media player controls
bindsym XF86AudioPlay exec playerctl play-pause
# bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
floating_modifier $mod
# move tiling windows via drag & drop by left-clicking into the title bar, or left-clicking anywhere into the window while holding the floating modifier.
# tiling_drag modifier titlebar
# start a terminal
bindsym $mod+Return exec $term
# kill focused window
bindsym $mod+Shift+q kill
# --- Menu|Program launcher ---
# $mod+d for `dmenu_run`, `bemenu-run`, or `rofi` (below)
# bindsym $mod+d exec --no-startup-id dmenu_run
# bindcode $mod+40 exec "rofi -modi drun,run -show drun"
bindcode $mod+40 exec rofi -show drun
bindsym $mod+period exec "rofi -show emoji"
# -- Lock screen --
bindsym $mod+l exec $HOME/lock.sh
# -- Screenshot --
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# alternatively, you can use the cursor 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
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+t layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
# bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# --- Coloring ---
# class border backgr. text indicator child_border
client.focused #4c7899 #267A67 #ffffff #2e9ef4 #285577
client.focused_inactive #333333 #161C1A #ffffff #484e50 #5f676a
client.unfocused #333333 #222222 #888888 #292d2e #222222
client.urgent #2f343a #900000 #ffffff #900000 #900000
client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
client.background #ffffff
# --- Gaps ---
# `inner` is like padding in CSS
# gaps inner <gap_size>[px]
gaps inner 8
# `outer` is like margin in CSS
# gaps outer|horizontal|vertical|top|left|bottom|right <gap_size>[px]
gaps outer 5
# smart_gaps on|off|inverse_outer
smart_gaps inverse_outer
# --- Display settings ---
#exec --no-startup-id autorandr --change
#exec --no-startup-id feh --bg-fill --randomize $HOME/.wallpaper/*
input type:touchpad {
natural_scroll enabled
}
# We use variables to avoid repeating the names in multiple places.
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
# switch to workspace
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10
# reload the configuration file
bindsym $mod+Shift+c restart
bindsym $mod+Shift+r reload
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'Are you sure you wanna go aSway?' -B 'Yes, sway away!' 'swaymsg exit' -B 'SHUTDOWN' 'shutdown now'
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym semicolon resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
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
# back to normal: Enter or Escape or $mod+r
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
bar {
swaybar_command waybar
}