This commit is contained in:
Tumble 2023-10-02 16:30:19 +01:00
parent 63133e188f
commit d5515166c1
21 changed files with 4 additions and 1218 deletions

View file

@ -1,8 +0,0 @@
[[ -s "/etc/profile" ]] && source "/etc/profile" # Load the system .profile
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
export PATH="$HOME/.local/share/jenv/bin:$PATH"
eval "$(jenv init -)"
export BEATSABER_DIR="${HOME}/.local/share/Steam/steamapps/common/Beat\ Saber"

14
.bashrc
View file

@ -1,14 +0,0 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return ;;
esac
if [ -d $HOME/.bashrc.d ]; then
for SCRIPT in $( ls $HOME/.bashrc.d/* ); do
. ${SCRIPT}
done
fi

View file

@ -1,5 +0,0 @@
#!/usr/bin/env bash
export PATH=$PATH\
:~/.local/bin\
:~/.local/share/lutris/runners/retroarch

View file

@ -1,6 +0,0 @@
#!/usr/bin/env bash
export NVM_DIR="$HOME/.local/share/nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
export PATH="$(yarn global bin):$PATH"

View file

@ -1,7 +0,0 @@
#!/usr/bin/env bash
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
#export RVM_DIR="$HOME/.local/share/rvm"
export RVM_DIR="/usr/share/rvm"
export PATH="$PATH:$RVM_DIR/bin"
[[ -s "$RVM_DIR/scripts/rvm" ]] && source "$RVM_DIR/scripts/rvm"

View file

@ -1,4 +0,0 @@
#!/usr/bin/env bash
# added by travis gem
[ ! -s ~/.travis/travis.sh ] || source ~/.travis/travis.sh

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Alias definitions
alias linux-config="/usr/bin/git --git-dir=${HOME}/linux-config --work-tree=${HOME}"
alias linux-config="/usr/bin/git --git-dir=${HOME}/.local/dotfiles --work-tree=${HOME}"
alias "cls=clear"
alias "python=python3"
alias "rm=rm -i"
@ -12,7 +12,7 @@ alias "ls=ls -al"
alias shutdown='openrc-shutdown -p'
alias reboot='openrc-shutdown -r'
alias superkill="killall -s SIGKILL"
alias ssh="TERM=xterm-256color ssh"
alias ssh="TERM=uxterm-256color ssh"
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then

@ -1 +0,0 @@
Subproject commit 897ad97835e7ddcf21d6b894cfd8d71c7cc5c4b3

View file

@ -1,339 +0,0 @@
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $alt mod1
set $super Mod4
# Basic Settings
exec "setxkbmap gb"
popup_during_fullscreen leave_fullscreen
workspace_layout tabbed
default_border normal 1
default_floating_border normal 1
hide_edge_borders both
mouse_warping none
focus_follows_mouse no
# window titles
font pango:monospace 8
for_window [all] title_window_icon yes
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
# Start XDG autostart .desktop files using dex. See also
# https://wiki.archlinux.org/index.php/XDG_Autostart
exec --no-startup-id dex --autostart --environment i3
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
# they are included here as an example. Modify as you see fit.
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
exec --no-startup-id nm-applet
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
# Use Mouse+$super to drag floating windows to their wanted position
floating_modifier $super
# start a terminal
#bindsym $super+Return exec i3-sensible-terminal
bindsym control+$alt+t exec alacritty
# open menu
set $menu "rofi -modi drun,run -show drun"
bindsym $super+r exec $menu
bindsym $super+l exec loginctl suspend
# kill focused window
bindsym $super+Shift+q kill
# start dmenu (a program launcher)
#bindsym $super+d exec --no-startup-id dmenu_run
# A more modern dmenu replacement is rofi:
#bindcode $super+40 exec "rofi -modi drun,run -show drun"
# There also is i3-dmenu-desktop which only displays applications shipping a
# .desktop file. It is a wrapper around dmenu, so you need that installed.
# bindcode $super+40 exec --no-startup-id i3-dmenu-desktop
# change focus
#bindsym $super+j focus left
bindsym $super+k focus down
#bindsym $super+l focus up
#bindsym $super+semicolon focus right
# alternatively, you can use the cursor keys:
bindsym $super+Left focus left
bindsym $super+Down focus down
bindsym $super+Up focus up
bindsym $super+Right focus right
# move focused window
#bindsym $super+Shift+j move left
#bindsym $super+Shift+k move down
#bindsym $super+Shift+l move up
#bindsym $super+Shift+semicolon move right
# alternatively, you can use the cursor keys:
bindsym $super+Shift+Left move left
bindsym $super+Shift+Down move down
bindsym $super+Shift+Up move up
bindsym $super+Shift+Right move right
# split in horizontal orientation
bindsym $super+h split h
# split in vertical orientation
bindsym $super+v split v
# enter fullscreen mode for the focused container
bindsym $super+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $super+s layout stacking
bindsym $super+w layout tabbed
bindsym $super+e layout toggle split
# toggle tiling / floating
bindsym $super+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $super+space focus mode_toggle
# focus the parent container
bindsym $super+a focus parent
# focus the child container
#bindsym $super+d focus child
# screenshot
bindsym $super+Shift+s exec xfce4-screenshooter -r
#
# Monitors:
#
set $m1 DisplayPort-1
set $m2 DisplayPort-2
#
# Workspaces:
#
set $w1 1-dev
set $w2 2-gaming
set $w3 3-www
set $w4 4-social
set $w5 5-music
set $w6 6-capture
# Switch to workspace
bindsym $super+1 workspace number $w1
bindsym $super+2 workspace number $w2
bindsym $super+3 workspace number $w3
bindsym $super+4 workspace number $w4
bindsym $super+5 workspace number $w5
bindsym $super+6 workspace number $w6
# Move focused container to workspace
bindsym $super+Shift+1 move container to workspace number $w1
bindsym $super+Shift+2 move container to workspace number $w2
bindsym $super+Shift+3 move container to workspace number $w3
bindsym $super+Shift+4 move container to workspace number $w4
bindsym $super+Shift+5 move container to workspace number $w5
bindsym $super+Shift+6 move container to workspace number $w6
workspace $w1 output $m2
workspace $w2 output $m2
workspace $w3 output $m1
workspace $w4 output $m1
workspace $w5 output $m1
workspace $w6 output $m1
#i3-msg -t get_tree|grep "class"
#i3-msg -t get_tree|grep "app_id"
for_window [window_role="pop-up"] floating enable
for_window [window_role="bubble"] floating enable
for_window [window_role="task_dialog"] floating enable
for_window [window_role="Preferences"] floating enable
for_window [window_type="dialog"] floating enable
for_window [window_type="menu"] floating enable
for_window [window_role="About"] floating enable
for_window [class="Wine"] floating enable
#dev
assign [class="^VSCodium$"] $w1
#gaming
assign [class="^Steam$"] $w2
for_window [class="^Steam$" title="^Friends List"] floating enable, resize set 678 636
assign [con_id="^lutris$"] $w2
#set $game move container to workspace $w2, fullscreen enable
#for_window [class="^steam_app_\d+$" ] move container to workspace $w2
#for_window [class="^steam_app_\d+$" ] fullscreen enable
for_window [class="^hl2.*$"] move container to workspace $w2
for_window [class="^hl2.*$"] fullscreen enable
for_window [instance="origin.exe"] floating enable, move container to workspace $w2
#www
assign [class="^Brave-browser"] $w3
assign [class="^firefoxdeveloperedition"] $w3
assign [class="^librewolf"] $w3
assign [class="^Chromium"] $w3
assign [con_id="^epiphany"] $w3
#social
assign [class="^discord$"] $w4
assign [class="^Element$"] $w4
assign [class="^SchildiChat$"] $w4
assign [class="^Thunderbird$"] $w4
assign [class="^Pidgin$"] $w4
assign [con_id="^org.gajim.Gajim$"] $w4
assign [class="^Evolution$"] $w4
assign [class="^Psi+$"] $w4
#music
assign [class="^Spotify$"] $w5
for_window [class="^Spotify$"] move container to workspace $w5
# capture
assign [con_id="^com.obsproject.Studio$"] $w6
assign [con_id="^org.freedesktop.ryuukyu.Helvum" ] $w6
assign [con_id="^org.pipewire.Helvum$"] $w6
# reload the configuration file
bindsym $super+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $super+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $super+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
# 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 $super+r
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $super+r mode "default"
}
#bindsym $super+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
position top
status_command i3blocks
strip_workspace_numbers no
}
# Some stuff from /etc/xdg/autostart/
# SPI Bus
exec /usr/lib/at-spi-bus-launcher --launch-immediately
# SN Watcher
exec /usr/lib/xapps/sn-watcher/xapp-sn-watcher
# Update XGD-Dirs
exec xdg-user-dirs-update
# polkit
#exec /usr/lib/mate-polkit/polkit-mate-authentication-agent-1
#exec /usr/lib/lxpolkit/lxpolkit
exec /usr/bin/lxpolkit
# internet
#exec nm-applet --indicator
# notifications
exec dunst
# audio
exec_always pidof pipewire || pipewire
exec_always pidof pipewire-pulse || pipewire-pulse
exec_always pidof pipewire-media-session || pipewire-media-session
exec_always pidof wireplumber || wireplumber
# Cliboard
#exec killall wl-paste
#exec wl-paste -t text --watch clipman store --no-persist
# SCreensaver
exec xscreensaver --no-splash
# KDE Connect
exec /usr/lib/kdeconnectd
exec sleep 5 && kdeconnect-indicator
#Home assistant
#exec hass
# Syncthing
exec syncthing serve
# Firewall
exec sleep 5 && firewall-applet
# Bluetooth
exec blueman-applet
exec joycond
# Dock
#exec nwg-dock -x -nows -i 28 -f -a start
# UDisks
exec udiskie --no-automount --smart-tray
exec env KEYBASE_AUTOSTART=1 run_keybase
exec keepassxc /home/tumble/Keepass/Database.kdbx
exec pidof steam || steam -silent
exec spotify --minimized
#exec discord
#exec schildichat-desktop
#exec gajim
#exec psi-plus
#exec thunderbird60
#exec codium
#exec evolution
#exec helvum
include @sysconfdir@/sway/config.d/*

View file

@ -1,186 +0,0 @@
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:monospace 8
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
# Start XDG autostart .desktop files using dex. See also
# https://wiki.archlinux.org/index.php/XDG_Autostart
exec --no-startup-id dex --autostart --environment i3
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
# they are included here as an example. Modify as you see fit.
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
exec --no-startup-id nm-applet
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec --no-startup-id dmenu_run
# A more modern dmenu replacement is rofi:
# bindcode $mod+40 exec "rofi -modi drun,run -show drun"
# There also is i3-dmenu-desktop which only displays applications shipping a
# .desktop file. It is a wrapper around dmenu, so you need that installed.
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right
# 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
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move 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+w 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
# Define names for default workspaces for which we configure key bindings later on.
# 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 reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
# 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"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3status
}

View file

@ -1,14 +0,0 @@
[mpris]
command=mpris-ctl info
interval=1
color=#A4C2F4
[ip]
command=ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1 | awk '{ print "IP:" $1 }'
interval=once
color=#91E78B
[time]
command=date +'%d/%m/%Y %r'
interval=5

View file

@ -1,391 +0,0 @@
### Variables
#
# Logo key. Use Mod1 for Alt.
set $super 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 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 dmenu_path | dmenu | xargs swaymsg exec --
set $menu wofi --allow-images --show drun | xargs swaymsg exec --
### Output configuration
#
# Default wallpaper (more resolutions are available in @datadir@/backgrounds/sway/)
#output * bg #000000 solid_color
exec ~/.azotebg
font pango:monospace 8
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# 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 * 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.
input "type:keyboard" {
#repeat_delay 200
#repeat_rate 60
xkb_numlock enabled
#xkb_options compose:caps
xkb_layout gb
}
input "type:pointer" {
accel_profile flat
pointer_accel .5
}
input "type:touchpad" {
accel_profile flat
pointer_accel .5
click_method clickfinger
}
### Key bindings
# backlight
bindsym XF86MonBrightnessUp exec xbacklight -perceived -inc 5
bindsym XF86MonBrightnessDown exec xbacklight -perceived -dec 5
bindsym Shift+XF86MonBrightnessUp exec xbacklight -inc 5
bindsym Shift+XF86MonBrightnessDown exec xbacklight -dec 5
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume alsa_output.pci-0000_00_1f.3.analog-stereo +5% && $refresh_i3status
bindsym XF86AudioLowerVolume exec pactl set-sink-volume alsa_output.pci-0000_00_1f.3.analog-stereo -5% && $refresh_i3status
bindsym XF86AudioMute exec pactl set-sink-mute alsa_output.pci-0000_00_1f.3.analog-stereo toggle && $refresh_i3status
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
# screenshot
bindsym Print exec grim - | wl-copy -t image/png
bindsym Control+Print exec grim -g "$(slurp -d)" - | wl-copy -t image/png
bindsym Mod1+Sys_Req exec grim -i $(xdotool getactivewindow) - | wl-copy -t image/png
bindsym Shift+Print exec grim -c - | wl-copy -t image/png
#bindsym Shift+Control+Print exec grim -c - | wl-copy -t image/png
bindsym Shift+Mod1+Sys_Req exec grim -c -i $(xdotool getactivewindow) - | wl-copy -t image/png
#
# Basics:
#
# Start a terminal
#bindsym $super+Return exec $term
bindsym Ctrl+Alt+t exec $term
# Kill focused window
bindsym $super+Shift+q kill
bindsym $super+f4 kill
# Start your launcher
bindsym $super+r exec $menu
# Drag floating windows by holding down $super and left mouse button.
# Resize them with right mouse button + $super.
# Despite the name, also works for non-floating Rwindows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $super normal
# Reload the configuration file
bindsym $super+Shift+r reload
# Exit sway (logs you out of your Wayland session)
bindsym $super+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 $super+$left focus left
bindsym $super+$down focus down
bindsym $super+$up focus up
bindsym $super+$right focus right
# Or use $super+[left|down|up|right]
bindsym $super+Left focus left
bindsym $super+Down focus down
bindsym $super+Up focus up
bindsym $super+Right focus right
# Move the focused window with the same, but add Shift
bindsym $super+Shift+$left move left
bindsym $super+Shift+$down move down
bindsym $super+Shift+$up move up
bindsym $super+Shift+$right move right
# Ditto, with arrow keys
bindsym $super+Shift+Left move left
bindsym $super+Shift+Down move down
bindsym $super+Shift+Up move up
bindsym $super+Shift+Right move right
#
# Workspaces:
#
set $w1 1-dev
set $w2 2-gaming
set $w3 3-www
set $w4 4-social
set $w5 5-music
set $w6 6-capture
# Switch to workspace
bindsym $super+1 workspace $w1
bindsym $super+2 workspace $w2
bindsym $super+3 workspace $w3
bindsym $super+4 workspace $w4
bindsym $super+5 workspace $w5
bindsym $super+6 workspace $w6
# Move focused container to workspace
bindsym $super+Shift+1 move container to workspace $w1
bindsym $super+Shift+2 move container to workspace $w2
bindsym $super+Shift+3 move container to workspace $w3
bindsym $super+Shift+4 move container to workspace $w4
bindsym $super+Shift+5 move container to workspace $w5
bindsym $super+Shift+6 move container to workspace $w6
# Note: workspaces can have any name you want, not just numbers.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $super+b or $super+v, for horizontal and vertical splits
# respectively.
bindsym $super+b splith
bindsym $super+v splitv
# Switch the current container between different layout styles
bindsym $super+s layout stacking
bindsym $super+w layout tabbed
bindsym $super+e layout toggle split
# Make the current focus fullscreen
bindsym $super+f fullscreen
# Toggle the current focus between tiling and floating mode
bindsym $super+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
bindsym $super+space focus mode_toggle
# Move focus to the parent container
bindsym $super+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 $super+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 $super+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 $super+r mode "resize"
#
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar {
position top
# When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time.
status_command while date +'%-d/%-m/%Y %r'; do sleep 1; done
strip_workspace_numbers no
colors {
statusline #ffffff
background #112233
inactive_workspace #112233 #112233 #ffffff
}
}
#bar {
# position top
#
# swaybar_command waybar
#}
workspace_layout tabbed
default_border normal 1
default_floating_border normal 1
hide_edge_borders both
mouse_warping none
focus_follows_mouse yes
workspace $w1 output DP-3
workspace $w2 output DP-3
workspace $w3 output DP-2
workspace $w4 output DP-2
workspace $w5 output DP-2
workspace $w6 output DP-2
#swaymsg -t get_tree|grep "class"
#swaymsg -t get_tree|grep "app_id"
for_window [window_role="pop-up"] floating enable
for_window [window_role="bubble"] floating enable
for_window [window_role="task_dialog"] floating enable
for_window [window_role="Preferences"] floating enable
for_window [window_type="dialog"] floating enable
for_window [window_type="menu"] floating enable
for_window [window_role="About"] floating enable
for_window [class="Wine"] floating enable
#dev
assign [class="^VSCodium$"] $w1
#gaming
assign [class="^Steam$"] $w2
for_window [class="^Steam$" title="^Friends List"] floating enable
for_window [class="^Steam$" title="^Friends List"] resize set 678 636
assign [app_id="^lutris$"] $w2
#www
assign [class="^Brave-browser"] $w3
assign [class="^firefoxdeveloperedition"] $w3
assign [class="^librewolf"] $w3
assign [class="^Chromium"] $w3
assign [app_id="^epiphany"] $w3
#social
assign [class="^discord$"] $w4
assign [class="^Element$"] $w4
assign [class="^SchildiChat$"] $w4
assign [class="^Thunderbird$"] $w4
assign [class="^Pidgin$"] $w4
assign [app_id="^org.gajim.Gajim$"] $w4
#music
assign [class="^Spotify$"] $w5
for_window [class="^Spotify$"] move container to workspace $w5
# capture
assign [app_id="^com.obsproject.Studio$"] $w6
assign [app_id="^org.freedesktop.ryuukyu.Helvum" ] $w6
assign [app_id="^org.pipewire.Helvum$"] $w6
# Some stuff from /etc/xdg/autostart/
# SPI Bus
exec /usr/lib/at-spi-bus-launcher --launch-immediately
# SN Watcher
exec /usr/lib/xapps/sn-watcher/xapp-sn-watcher
# Update XGD-Dirs
exec xdg-user-dirs-update
# polkit
#exec /usr/lib/mate-polkit/polkit-mate-authentication-agent-1
#exec /usr/lib/lxpolkit/lxpolkit
#killall lxpolkt
exec /usr/bin/lxpolkit
# internet
#exec nm-applet --indicator
# notifications
#exec killall dinst
exec dunst
#exec swaync
#bindsym $super+Shift+n exec swaync-client -t -swr
# audio
#exec killall pipewire pipewire-pulse pipewire-media-session
exec pipewire
exec pipewire-pulse
exec pipewire-media-session
# Cliboard
#exec killall wl-paste
exec wl-paste -t text --watch clipman store --no-persist
# KDE Connect
#exec killall kdeconnectd kdeconnect-indicator
exec /usr/lib/kdeconnectd
exec sleep 5 && kdeconnect-indicator
# Syncthing
exec syncthing serve
# Firewall
exec sleep 5 && firewall-applet
# Bluetooth
exec blueman-applet
exec joycond
# Dock
exec nwg-dock -x -nows -i 28 -f -a start
# UDisks
exec udiskie --no-automount --smart-tray
exec env KEYBASE_AUTOSTART=1 run_keybase
exec pidof steam || steam -silent
exec spotify --minimized
exec discord
exec schildichat-desktop
exec gajim
exec thunderbird60
#exec codium
exec keepassxc /home/tumble/Keepass/Database.kdbx
exec helvum
include @sysconfdir@/sway/config.d/*

View file

@ -1,6 +0,0 @@
[user]
name = tumble
email = tumblegamer@gmail.com
signingkey = 9C12D974D47F6D6BEA40618A651CA998E1105BFA
[commit]
#gpgsign = true

View file

@ -1,5 +0,0 @@
#!/bin/bash
sudo docker kill $(sudo docker ps -a -q)
sudo docker rm $(sudo docker ps -a -q)
sudo docker rmi $(sudo docker images -q)

View file

@ -1,70 +0,0 @@
#!/bin/sh
##
# This program can possibly be substituted for gpg in the git `gpg.program` configuration
# to allow a person to use Keybase.io to sign commits on behalf of gpg.
##
# Copyright 2019 Michael A. Smith
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software
# and associated documentation files (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
# subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies
# or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
# THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
##
# For reference, this is the text of `git help config` as it pertains to gpg.program
#
# Use this custom program instead of "gpg" found on $PATH when making
# or verifying a PGP signature. The program must support the same
# command-line interface as GPG, namely, to verify a detached
# signature, "gpg --verify $signature - <$file" is run, and the
# program is expected to signal a good signature by exiting with code
# 0, and to generate an ASCII-armored detached signature, the
# standard input of "gpg -bsau $key" is fed with the contents to be
# signed, and the program is expected to send the result to its
# standard output.
#
export GPG_TTY=$(tty)
main() {
case "$1" in
--verify) verify "$@";;
*) sign "$@";;
esac
}
verify() {
# ...to verify a detached signature,
# "gpg --verify $signature - <$file"
# is run...
exec gpg "$@"
}
sign() {
# ...to generate an ASCII-armored detached signature, the
# standard input of "gpg -bsau $key" is fed with the contents to be
# signed, and the program is expected to send the result to its
# standard output.
shift 2
d=$(mktmp -d "${TMPDIR:-/tmp}/gitsig.XXXXXXXXX")
cat > "$d/commit.msg"
keybase pgp sign --detached --key "$1" --infile "$d/commit.msg" --outfile "$d/commit.sig"
gpg --verify --status-fd=2 "$d/commit.sig" "$d/commit.msg" > /dev/null 2> "$d/gpgstatus.txt"
grep '^\[GNUPG:\] KEY_CONSIDERED' "$d/gpgstatus.txt" >&2
printf '[GNUPG:] SIG_CREATED ' >&2
}
main "$@"

View file

@ -1,3 +0,0 @@
#!/bin/bash
echo "Starting VNC Server for SArpnt..."
x0vncserver -display :0 -rfbport $SARPNT_PORT

View file

@ -1,12 +0,0 @@
#!/bin/sh
export XDG_CURRENT_SESSION=sway
export XDG_SESSION_TYPE=wayland
#export $(dbus-launch)
#exec dbus-launch --sh-syntax --exit-with-session sway
#exec dbus-run-session -- /usr/bin/sway
#exec dbus-run-session -- sway
#dbus-run-session sway
dbus-launch --sh-syntax --exit-with-session sway
#dbus-run-session sway

View file

@ -1,52 +0,0 @@
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ]; then
PATH="$HOME/bin:$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ]; then
PATH="$HOME/.local/bin:$PATH"
fi
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
if ! pgrep -x ssh-agent -u $(id -u) >/dev/null; then
# This sets SSH_AUTH_SOCK and SSH_AGENT_PID variables
eval "$(ssh-agent -s)"
export SSH_AUTH_SOCK SSH_AGENT_PID
cat >"$XDG_RUNTIME_DIR/ssh-agent-env" <<-__EOF__
export SSH_AUTH_SOCK=$SSH_AUTH_SOCK
export SSH_AGENT_PID=$SSH_AGENT_PID
__EOF__
else
if [ -s "$XDG_RUNTIME_DIR/ssh-agent-env" ]; then
. $XDG_RUNTIME_DIR/ssh-agent-env
fi
fi
# Vulkan
#export AMD_VULKAN_ICD=RADV
#export DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1=1
#export VK_ICD_FILENAMES=

View file

@ -1,32 +0,0 @@
Host steamdeck
HostName steamdeck
User deck
Host tumble-pi
Port 3022
IdentityFile ~/.ssh/tumble-pi
Host tumble-server
Port 3023
IdentityFile ~/.ssh/tumble-server
Host tumble-tv
IdentityFile ~/.ssh/tumble-tv
Host sarpnt
HostName sarpnt.beanofficial.co
Port 7131
IdentityFile ~/.ssh/sarpnt
Host github.com
User git
IdentityFile ~/.ssh/github
Host git.disroot.org
User git
IdentityFile ~/.ssh/git.disroot.org
Host *
IdentitiesOnly yes
Compression yes
ForwardX11 no

View file

@ -3,8 +3,8 @@
Setup
```
cd ~
git clone --bare git@github.com:tumble1999/linux-config.git linux-config
git --git-dir=linux-config --work-tree=. checkout master
git clone --bare git@github.com:tumble1999/linux-config.git .local/dotfiles.git
git --git-dir=.local/dotfiles.git --work-tree=. checkout master
source .bashrc
linux-config submodule update --init --recursive
```

View file

@ -1,59 +0,0 @@
#!/bin/bash
if [ -n "$1" ]; then set -x; fi
PA="pactl"
# pactl list sources short
# pactl list sinks short
#SINCS
MIC=alsa_input.usb-Logitech_Logitech_USB_Microphone-00.mono-fallback # ID of the microphone
LINE_IN=alsa_input.pci-0000_00_1f.3.analog-stereo # ID of Line-in (most linkely be the keyboard)
#Sorces
SPEAKER=alsa_output.pci-0000_00_1f.3.analog-stereo # ID of the Speakers
COMBINED=combined
S_INPUT=Input # Name of the Input Sinc
S_MAIN=Output # Name of the Output Sinc
S_COMMS=Communications # Name of Communications
function create_sink() { #($1:name)
${PA} load-module module-null-sink sink_name=$1 sink_properties=device.description=$1 # Create a null module with the requested name
echo "Created Sink $1"
}
function sink_to_source() { # ($1:sink)
${PA} load-module module-remap-source source_name=$1_source master=$1.monitor
}
function route_audio() { # ($1:start,$2:end)
${PA} load-module module-loopback latency_msec=1 source=$1 sink=$2 # Create a loopback module with the requested source and sink
echo "Routed Audio Module $1 => $2"
}
pulseaudio -k
while ! pgrep -f "pulseaudio" >/dev/null; do # Wait for pulse audio to start
# Set optional delay
sleep 0.1
done
# Create Sinks
create_sink ${S_INPUT} # Create a sink called "Input"
create_sink ${S_MAIN} # Create a sink called "Output"
create_sink ${S_COMMS} # Create a sink called "Communications"
# Setup Defaults
pactl set-default-sink ${S_MAIN}
pactl set-default-source ${S_INPUT}.monitor
# Route Audio
route_audio ${S_MAIN}.monitor ${SPEAKER} # Route Audio: Main -> Speaker
route_audio ${S_COMMS}.monitor ${SPEAKER} # Route Audio: Communications -> Speaker
#route_audio ${S_MAIN}.monitor ${COMBINED} # Route Audio: Main -> Combined
#route_audio ${S_COMMS}.monitor ${COMBINED} # Route Audio: Communications -> Combined
route_audio ${S_COMMS}.monitor ${S_INPUT} # Route Audio: Communications -> Input
route_audio ${MIC} ${S_INPUT} # Route audio: Microphone -> Input
#route_audio ${LINE_IN} ${S_INPUT} # Route audio: Line-in -> Input
route_audio ${LINE_IN} ${S_COMMS} # Route audio: Line-in -> Communications
sink_to_source ${S_INPUT} # Input as a source