Browse Source

fix setup script for devuan

Bananicorn 2 years ago
parent
commit
65f83e28a8
4 changed files with 50 additions and 23 deletions
  1. 1 1
      .vimrc
  2. 10 0
      devuan_setup/.profile
  3. 17 7
      devuan_setup/config/sway/config
  4. 22 15
      devuan_setup/setup_system.sh

+ 1 - 1
.vimrc

@@ -53,7 +53,7 @@ set diffopt+=iwhite
 filetype plugin on
 set omnifunc=syntaxcomplete#Complete
 
-colorscheme zellner
+colorscheme torte
 
 "always underline spelling errors instead of making their background red
 hi clear SpellBad

+ 10 - 0
devuan_setup/.profile

@@ -9,5 +9,15 @@ export MOZ_ENABLE_WAYLAND=1
 export XDG_SESSION_TYPE=wayland
 export XDG_DATA_HOME=~/.local/share
 
+#-- ensure XDG_Runtime_dir is set
+if test -z "${XDG_RUNTIME_DIR}"; then
+	export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir
+	if ! test -d "${XDG_RUNTIME_DIR}"; then
+		mkdir "${XDG_RUNTIME_DIR}"
+		chmod 0700 "${XDG_RUNTIME_DIR}"
+		export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir
+	fi
+fi
+
 udiskie &
 sway

+ 17 - 7
devuan_setup/config/sway/config

@@ -1,5 +1,5 @@
 #background
-exec swaybg -i ~/pictures/Reptiles_Iguana_449225.jpg
+#exec swaybg -i ~/pictures/insert_background_here.jpg
 
 #we always seem to start mute, and that seems to mess with firefox
 exec pulsemixer --unmute
@@ -149,7 +149,7 @@ bindsym $Mod+Shift+e exec "swaynag -t warning -m 'You pressed the exit shortcut.
 # PROGRAM SHORTCUTS
 bindsym $Mod+Return exec foot
 bindsym $Mod+e exec thunar
-bindsym Print exec grimshot save area
+bindsym Print exec grimshot save area ~/screenshots/$(date "+2023-11-25_20-27-33").png
 
 # SCREEN BACKLIGHT
 bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%- && brightnessctl g > $WOBSOCK_BRIGHTNESS
@@ -170,8 +170,18 @@ client.background	#222222 #222222
 client.focused		#33DD33 #222222 #FFFFFF #33DD33 #33DD33
 default_border		pixel
 
-for_window [app_id="connman-gtk"] floating enable
-for_window [class="love-11.3"] floating enable
-for_window [class="love-11.4"] floating enable
-for_window [title="Panda"] floating enable
-for_window [app_id="zenity"] floating enable
+for_window {
+	[app_id="connman-gtk"] floating enable
+	[app_id="firefox"] inhibit_idle fullscreen
+	[app_id="(?i)firefox"] inhibit_idle fullscreen
+	[class="love-11.3"] floating enable
+	[class="love-11.4"] floating enable
+	[title="Panda"] floating enable
+	[app_id="zenity"] floating enable
+	[window_role="pop-up"] floating enable
+	[window_role="bubble"] floating enable
+	[window_role="dialog"] floating enable
+	[window_type="dialog"] floating enable
+	[title="(?:Open|Save) (?:File|Folder|As)"] floating enable
+	[title="Sharing Indicator"] floating enable, move position 1500 0
+}

+ 22 - 15
devuan_setup/setup_system.sh

@@ -6,25 +6,28 @@ sudo apt install -y vim
 sudo apt install -y git
 cp ./scripts/vimv /usr/bin
 
+#make home folders I'll need
+mdkir -p ~/screenshots
+mdkir -p ~/pictures
+mdkir -p ~/shared
+mdkir -p ~/downloads
+mdkir -p ~/.config
+
 #window manager
 sudo apt install -y sway
 sudo apt install -y swaybg
-mkdir -p .config/sway
-ln -s ~/dotfiles/devuan_setup/config/sway/config ~/.config/sway/config
+ln -sn ~/dotfiles/devuan_setup/config/sway ~/.config/sway
 rm -rf ~/.profile
-ln -s ~/dotfiles/devuan_setup/.profile ~/.profile
-ln -s ~/dotfiles/devuan_setup/config/user-dirs.dirs ~/.config/
+ln -sn ~/dotfiles/devuan_setup/.profile ~/.profile
+ln -sn ~/dotfiles/devuan_setup/config/user-dirs.dirs ~/.config/
 
 #install terminal emulator
 sudo apt install -y foot
-ln -s ~/dotfiles/devuan_setup/config/foot ~/.config/foot
+ln -sn ~/dotfiles/devuan_setup/config/foot ~/.config/foot
 
 #dialog boxes
 sudo apt install -y zenity
 
-#image viewer
-sudo apt install -y imv
-
 #let there be sound (over bluetooth too)!
 sudo apt install -y pulseaudio
 sudo apt install -y pulseaudio-module-bluetooth
@@ -32,6 +35,8 @@ sudo apt install -y pulsemixer
 sudo apt install -y bluez
 sudo apt install -y bluez-firmware
 sudo apt install -y bluez-tools
+sudo apt install pipewire
+sudo apt install pipewire-pulse
 
 #screen brightness control
 sudo apt install -y brightnessctl
@@ -41,19 +46,15 @@ sudo apt install -y acpi
 sudo apt install -y acpid
 
 #displays "progress" bars - used for brightness and volume
+#sway config contains the named pipes necessary for it to work with my shortcuts
 sudo apt install -y wob
 
 #launcher
 sudo apt install -y wofi
-mkdir -p .config/wofi
-ln -s ~/dotfiles/devuan_setup/config/wofi/style.css ~/.config/wofi/style.css
-ln -s ~/dotfiles/devuan_setup/config/wofi/config ~/.config/wofi/config
+ln -sn ~/dotfiles/devuan_setup/config/wofi ~/.config/wofi
 #wofi will search for desktop files in here
 mkdir -p ~/.local/share/applications
 
-#wifi and bluetooth
-sudo apt install -y connman-gtk
-
 #automount external drives
 sudo apt install -y udiskie
 
@@ -65,10 +66,13 @@ sudo apt install -y apktool
 sudo apt install -y zsh
 sudo apt install -y firefox-esr
 sudo apt install -y inkscape
-sudo apt install -y grimshot
+sudo apt install -y keepassxc
 sudo apt install -y thunar
 sudo apt remove -y thunar-volman
 
+#screenshots
+sudo apt install -y grimshot
+
 #work stuff
 sudo apt install -y git-flow
 sudo apt install -y docker.io
@@ -80,3 +84,6 @@ DOCKER_COMPOSE_PATH=/usr/local/bin/docker-compose
 curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 -o $DOCKER_COMPOSE_PATH
 chmod 755 $DOCKER_COMPOSE_PATH
 #flatpak install flathub org.freedesktop.Platform/x86_64/19.08
+
+#wifi and bluetooth
+sudo apt install -y connman-gtk