master
Tim 1 year ago
parent de9d1db848
commit ec88f0ec6b

@ -19,7 +19,7 @@ secondary = #e60053
alert = #bd2c40
[bar/top]
monitor = ${env:MONITOR:DisplayPort-0}
monitor = ${env:MONITOR:XWAYLAND0}
width = 100%
height = 27
;fixed-center = false
@ -64,7 +64,7 @@ foreground = ${colors.foreground}
modules-left = i3
modules-center = xwindow
module-margin-right = 2
modules-right = pulseaudio memory cpu eth temperature date
modules-right = pulseaudio memory cpu eth6 temperature date
;override-redirect = true
wm-restack = i3
line-size = 3
@ -252,6 +252,22 @@ format-disconnected =
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
[module/eth6]
type = internal/network
interface = enp3s0
interval = 5.0
format-connected-underline = #55aa55
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %local_ip6%
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
[module/date]
type = internal/date
interval = 10

@ -48,7 +48,7 @@ configuration {
/* window-format: "{w} {i}{c} {t}";*/
/* click-to-exit: true;*/
/* show-match: true;*/
theme: ".config/rofi/themes/autumn";
theme: "../rofi/themes/autumn";
color-normal: "argb:d0282828, #ebdbb2, argb:d032302f, #665c54, #fbf1c7";
color-urgent: "argb:d0cc241d, #282828, argb:d0cc241d, #fb4934, #282828";
color-active: "argb:d0d79921, #282828, argb:d0d79921, #fabd2f, #282828";

@ -0,0 +1,232 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu "rofi -show run -m 1"
bindsym $mod+p exec --no-startup-id "rofi -show drun -m 1"
bindsym $mod+c exec --no-startup-id "rofi -show calc -no-history -m 1 > /dev/null"
### Output configuration
#
output "Ancor Communications Inc ASUS MG28U 0x00002F38" resolution 3840x2160 scale 1.5 position 0,0
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Wallpaper
set $wallpapers_path $HOME/Pictures/Wallpapers
output * bg $(find $wallpapers_path -type f | shuf -n 1) fill
### Idle configuration
#
# Example configuration:
#
exec swayidle -w \
timeout 300 'swaylock -f -c 000000' \
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms 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 "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.
### Key bindings
#
# Basics:
#
# Start a terminal
bindsym $mod+Return exec $term
# Kill focused window
bindsym $mod+Shift+q kill
# Start your launcher
bindsym $mod+d exec $menu
# 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
bindsym $mod+Shift+c reload
# 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:
#
# 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
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
# 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
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
# 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
# Switch the current container between different layout styles
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# Make the current focus fullscreen
bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
bindsym $mod+Shift+space floating toggle
# 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"
#
# Screen capture
#
set $ps1 Print
set $ps2 Control+Print
set $ps3 Alt+Print
set $ps4 Alt+Control+Print
bindsym $ps1 exec grim - | wl-copy
bindsym $ps2 exec grim -g "$(slurp)" - | wl-copy
bindsym $ps3 exec grim $(xdg-user-dir PICTURES)/ps_$(date +"%Y%m%d%H%M%S").png
bindsym $ps4 exec grim -g "$(slurp)" $(xdg-user-dir PICTURES)/ps_$(date +"%Y%m%d%H%M%S").png
### Window configs
gaps inner 5
gaps outer 8
default_border pixel 9
smart_borders on
smart_gaps on
## Status Bar
exec waybar
## Starting
exec dunst -force_xwayland
exec firefox-bin
exec signal-bin
# Defaults
include /etc/sway/config.d/*

@ -27,6 +27,8 @@ bindsym $mod+p exec --no-startup-id "rofi -show drun"
# start rofi
bindsym $mod+d exec --no-startup-id "rofi -show run"
bindsym $mod+c exec --no-startup-id "rofi -show calc -no-show-match -no-sort -no-history > /dev/null"
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
# change focus
bindsym $mod+j focus left
@ -148,20 +150,11 @@ mode "resize" {
bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
#bar {
# Old
# status_command i3status
#position top
#status_command i3blocks
#}
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
# GAPS!
gaps inner 5
gaps outer 15
gaps inner 2
gaps outer 5
#smart_gaps on
smart_borders on
#smart_borders on
# Media Keys
bindsym XF86AudioPlay exec playerctl play-pause
@ -216,7 +209,6 @@ exec --no-startup-id xrandr --output DisplayPort-0 --mode 2560x1440 --output DVI
#exec --no-startup-id xrandr --output DisplayPort-0 --mode 2560x1440
exec --no-startup-id dunst -config ~/.config/dunst/dunstrc
#exec --no-startup-id compton --config ~/.config/compton/compton.conf -b
#exec --no-startup-id redshift -l -38.814:144.963
# set background

@ -127,6 +127,8 @@ filetype plugin indent on
autocmd BufRead,BufNewFile *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
" Remove any extra whitespace from the ends of lines when saving a file
autocmd BufWritePre *.py normal m`:%s/\s\+$//e``
autocmd BufWritePre *.md normal m`:%s/\s\+$//e``
autocmd BufWritePre *.yml normal m`:%s/\s\+$//e``
" Only have indent of 2 for yml
autocmd BufRead,BufNewFile *.yml set shiftwidth=2
autocmd BufRead,BufNewFile *.yml set softtabstop=2

@ -71,8 +71,8 @@ done &
#exec ck-launch-session gnome-session
#exec ck-launch-session dwm
#exec gnome-session
#exec dwm
exec i3
exec sway
#exec i3
#exec ck-launch-session bash -c "dbus-launch & pulseaudio --start & dwm"
#while true; do

Loading…
Cancel
Save