big update for arch

This commit is contained in:
Tyler Starr 2023-04-03 14:00:04 -07:00
parent eb70ae0053
commit 380c7c71f8
12 changed files with 262 additions and 34 deletions

View File

@ -12,6 +12,7 @@ EXAMPLE TAGS:
FLAGS:
-f, --fedora perform update for fedora
-a, --arch perform update for arch
-v, --void perform update for void
-s, --src compile (or recompile) source based packages"
exit 0
@ -26,6 +27,10 @@ while [[ $# -gt 0 ]]; do
distro="void"
shift
;;
-a|--arch)
distro="arch"
shift
;;
-f|--fedora)
distro="fedora"
shift

View File

@ -7,8 +7,8 @@
set $HOME /home/tstarr
set $DISP_PRI HDMI-0
set $DISP_SEC HDMI-0
set $DISP_PRI HDMI-A-1
set $DISP_SEC DP-3
set $BOR_WIDTH 4
set $GAP_INNER 4
@ -24,7 +24,7 @@ set $tag6 "6:web"
set $tag7 "7:web"
set $tag8 "8:comm"
set $e exec sway-msg mode default
set $e exec swaymsg mode default
set $mode_power "[r]eboot | [s]hutdown"
@ -190,7 +190,7 @@ bindsym $mod+a exec rofi -show drun -show-icons
bindsym $mod+Shift+a exec rofi -show window -show-icons
bindsym $mod+o mode open
mode open {
bindsym b exec flatpak run org.mozilla.firefox, $e
bindsym b exec firefox, $e
bindsym s exec steam, $e
bindsym d exec flatpak run com.discordapp.Discord, $e
bindsym Escape mode default
@ -208,20 +208,25 @@ mode scratch {
bindsym Escape mode default
}
output HDMI-A-1 {
resolution 2560x1440@143.912Hz
position 0,0
}
output DP-3 {
resolution 2560x1440@143.973Hz
position 2560,0
}
#-------------------------------------------------------------------------------
#----- AUTOSTART WITH I3
#-------------------------------------------------------------------------------
exec --no-startup-id "autorandr --change && sway-msg restart"
exec --no-startup-id "pipewire & pipewire-pulse &"
exec --no-startup-id "udiskie &"
exec_always --no-startup-id "$HOME/.config/sway/scripts/autolayout.sh"
exec_always --no-startup-id "$HOME/.config/sway/scripts/polybar.sh"
exec --no-startup-id "udiskie"
#exec_always --no-startup-id "$HOME/.config/sway/scripts/autolayout.sh"
exec_always --no-startup-id "blueman-applet"
exec_always --no-startup-id "nm-applet"
exec_always --no-startup-id "flameshot"
exec_always --no-startup-id "xsetroot -solid '#282A36'"
exec_always --no-startup-id "dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK"
#exec_always --no-startup-id "dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK"
exec_always --no-startup-id "waybar"
seat seat0 xcursor_theme default 24
exec waybar

View File

@ -1,11 +0,0 @@
#!/usr/bin/env sh
# Terminate already running bar instances
pkill clipmenud
# Wait until the processes have been shut down
while pgrep -x clipmenud >/dev/null; do sleep 1; done
# Launch clipmenud
clipmenud &

View File

@ -10,7 +10,7 @@ I3_MARK=${1}
LAUNCH_CMD=${2}
scratchpad_show() {
i3-msg "[con_mark=${I3_MARK}]" scratchpad show
swaymsg "[con_mark=${I3_MARK}]" scratchpad show
}
# try showing the scratchpad window
@ -21,13 +21,13 @@ if ! scratchpad_show; then
eval "${LAUNCH_CMD}" &
# Wait for the next window event.
i3-msg -t subscribe '[ "window" ]'
swaymsg -t subscribe '[ "window" ]'
# Set a mark
i3-msg mark ${I3_MARK}
swaymsg mark ${I3_MARK}
# Move it to the scratchpad workspace
i3-msg move scratchpad
swaymsg move scratchpad
# show the scratchpad window
scratchpad_show

View File

@ -0,0 +1,123 @@
// -*- mode: json -*-
{
"layer": "top",
"position": "bottom",
"modules-left": [
"sway/workspaces",
"custom/right-arrow-dark"
],
"modules-center": [
"custom/left-arrow-dark",
"clock#1",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"clock#2",
"custom/right-arrow-dark",
"custom/right-arrow-light",
"clock#3",
"custom/right-arrow-dark"
],
"modules-right": [
"custom/left-arrow-dark",
"pulseaudio",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"memory",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"cpu",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"battery",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"disk",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"tray"
],
"custom/left-arrow-dark": {
"format": "",
"tooltip": false
},
"custom/left-arrow-light": {
"format": "",
"tooltip": false
},
"custom/right-arrow-dark": {
"format": "",
"tooltip": false
},
"custom/right-arrow-light": {
"format": "",
"tooltip": false
},
"sway/workspaces": {
"disable-scroll": true,
"format": "{name}"
},
"clock#1": {
"format": "{:%a}",
"tooltip": false
},
"clock#2": {
"format": "{:%H:%M}",
"tooltip": false
},
"clock#3": {
"format": "{:%m-%d}",
"tooltip": false
},
"pulseaudio": {
"format": "{icon} {volume:2}%",
"format-bluetooth": "{icon} {volume}%",
"format-muted": "MUTE",
"format-icons": {
"headphones": "",
"default": [
"",
""
]
},
"scroll-step": 5,
"on-click": "pamixer -t",
"on-click-right": "pavucontrol"
},
"memory": {
"interval": 5,
"format": "Mem {}%"
},
"cpu": {
"interval": 5,
"format": "CPU {usage:2}%"
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-icons": [
"",
"",
"",
"",
""
]
},
"disk": {
"interval": 5,
"format": "Disk {percentage_used:2}%",
"path": "/"
},
"tray": {
"icon-size": 20
}
}

View File

@ -0,0 +1,74 @@
* {
font-size: 20px;
font-family: monospace;
}
window#waybar {
background: #292b2e;
color: #fdf6e3;
}
#custom-right-arrow-dark,
#custom-left-arrow-dark {
color: #1a1a1a;
}
#custom-right-arrow-light,
#custom-left-arrow-light {
color: #292b2e;
background: #1a1a1a;
}
#workspaces,
#clock.1,
#clock.2,
#clock.3,
#pulseaudio,
#memory,
#cpu,
#battery,
#disk,
#tray {
background: #1a1a1a;
}
#workspaces button {
padding: 0 2px;
color: #fdf6e3;
}
#workspaces button.focused {
color: #268bd2;
}
#workspaces button:hover {
box-shadow: inherit;
text-shadow: inherit;
}
#workspaces button:hover {
background: #1a1a1a;
border: #1a1a1a;
padding: 0 3px;
}
#pulseaudio {
color: #268bd2;
}
#memory {
color: #2aa198;
}
#cpu {
color: #6c71c4;
}
#battery {
color: #859900;
}
#disk {
color: #b58900;
}
#clock,
#pulseaudio,
#memory,
#cpu,
#battery,
#disk {
padding: 0 10px;
}

View File

@ -180,7 +180,7 @@ sudo pacman -S meson
# Use wayland branch
git clone https://github.com/lbonn/rofi.git
cd rofi
meson setup build
meson setup build -Dxcb=disabled
ninja -C build
sudo ninja -C build install
```

View File

@ -4,13 +4,20 @@
- alacritty # Cross-platform, GPU-accelerated terminal emulator
- mpv # Video player based on MPlayer/mplayer2
- ffmpeg # Decoding, encoding and streaming software
- nvidia # NVIDIA drivers for linux - Libraries and Utilities
- nvidia-dkms # NVIDIA drivers for linux - Libraries and Utilities
- nvidia-utils
- lib32-nvidia-utils
- firefox # Mozilla Firefox web browser
#- nerd-fonts # Iconic font aggregator, collection and patcher
- sway
-
- swayidle
- swaylock
- waybar
- ttf-jetbrains-mono-nerd
- ydotool
- udiskie
- network-manager-applet
- blueman
- flameshot
state: present
become: true

View File

@ -1,4 +1,4 @@
- name: Install development void packages
- name: Install development arch packages
pacman:
name:
- python # Python programming language (3.11 series)

View File

@ -18,3 +18,25 @@
regexp: ^Defaults env_reset
line: Defaults env_reset,timestamp_timeout=60,!tty_tickets
become: yes
- name: Enable modeset for nvidia
tags: ["once"]
lineinfile:
path: /etc/default/grub
regexp: '^GRUB_CMDLINE_LINUX_DEFAULT="((:?(?!nvidia_drm.modeset=1).)*?)"$'
line: 'GRUB_CMDLINE_LINUX_DEFAULT="\1 nvidia_drm.modeset=1"'
backup: true
backrefs: true
become: yes
- name: Update grub
tags: ["once"]
shell: >
grub-mkconfig -o /boot/grub/grub.cfg
become: true
- name: Enable pipewire with pulse
tags: ["once"]
shell: >
systemctl --user --now enable pipewire pipewire-pulse
become: true

View File

@ -20,7 +20,8 @@
- linux-zen
- linux-zen-headers
- base-devel
- ttf-jetbrains-mono-nerd
- python-setuptools
- pipewire
state: present
become: true

View File

@ -38,6 +38,8 @@ echo "{
\"disp_sec\": \"HDMI-0\"
}" > "$CHEZDIR/home/.gen/i3.json"
read lel
# initialize chezmoi
chezmoi init