Add albert

Add opensuse
Add xfce
This commit is contained in:
Rob C. 2025-01-09 00:43:45 +01:00
parent 650d6f71df
commit 3ea6a37a94
8 changed files with 554 additions and 1 deletions

View File

@ -1,6 +1,6 @@
# Alacritty
My configuration for the [Alacritty](https://alacritty.org/) terminal emulator.
My configuration for the [Alacritty](https://alacritty.org) terminal emulator.
## Installation

7
albert/README.md Normal file
View File

@ -0,0 +1,7 @@
# Albert
My configuration for [Albert](https://albertlauncher.github.io).
## Installation
Symlink `config` to `$XDG_CONFIG_HOME/albert/config`.

122
albert/config Normal file
View File

@ -0,0 +1,122 @@
[General]
hotkey=Alt+Space
memoryDecay=0.5
prioritizePerfectMatch=true
show_enabled_plugins_first=true
telemetry=false
[albert]
global_handler_enabled=false
[applications]
enabled=true
terminal=Alacritty
[caffeine]
enabled=false
[calculator_qalculate]
angle_unit=2
enabled=true
[chromium]
enabled=false
[clipboard]
enabled=false
[datetime]
enabled=true
show_date_on_empty_query=false
[docs]
enabled=false
[fallback_order]
1\extension=websearch
1\fallback=cbea98ed
2\extension=websearch
2\fallback=9ca9999f
3\extension=websearch
3\fallback=c1fc4903
4\extension=websearch
4\fallback=5287690b
size=4
[files]
enabled=true
global_handler_enabled=false
home\hezkore\followSymlinks=false
home\hezkore\indexhidden=false
home\hezkore\maxDepth=255
home\hezkore\mimeFilters=inode/directory
home\hezkore\nameFilters=@Invalid()
home\hezkore\scanInterval=5
home\hezkore\useFileSystemWatches=false
index_file_path=false
paths=/home/hezkore
[hash]
enabled=false
[mpris]
enabled=false
[path]
enabled=true
trigger=!
[python]
enabled=false
[python.aur]
enabled=false
[python.bitwarden]
enabled=false
[python.color]
enabled=true
[python.locate]
enabled=false
trigger="find "
[python.translators]
enabled=true
lang=en
[snippets]
enabled=false
[ssh]
enabled=true
[system]
enabled=true
[timer]
enabled=true
[timezones]
enabled=true
[urlhandler]
enabled=true
[websearch]
enabled=true
[widgetsboxmodel]
alwaysOnTop=true
clearOnHide=true
clientShadow=true
darkTheme=Default System Palette
displayScrollbar=true
followCursor=true
hideOnFocusLoss=true
historySearch=true
itemCount=10
quitOnClose=false
showCentered=true
systemShadow=true

10
opensuse/README.md Normal file
View File

@ -0,0 +1,10 @@
# openSUSE
My setup for [openSUSE Tumbleweed](https://www.opensuse.org/#Tumbleweed).
Notice that this will install a bunch of applications and dependencies!\
An NVIDIA GPU and the XFCE desktop environment are expected.
## Usage
Run `./setup.sh`.

152
opensuse/setup.sh Executable file
View File

@ -0,0 +1,152 @@
#!/bin/bash
# A Bash script ofr installing all my openSUSE tools
clear
echo "This script will reconfigure your system and install multiple applications and dependencies."
echo "You probably don't want this unless you're me!"
echo
echo "Press Ctrl-C to cancel or Enter to continue."
read
sudo echo "Starting setup..."
# Set hostname
echo
echo "Setting hostname..."
echo -n "Enter your desired hostname and press [ENTER]: "
read PICKED_HOSTNAME
sudo hostnamectl set-hostname $PICKED_HOSTNAME
echo "Your hostname is now \"$(hostname)\""
# Git
sudo zypper --non-interactive install git
# Git Settings
echo -n "Enter your GIT name: "; read GIT_NAME
echo -n "Enter your GIT email: "; read GIT_EMAIL
git config --global user.name "$GIT_NAME"
git config --global user.email "$GIT_EMAIL"
# Make sure we're up to date
echo
echo "Updating system..."
sudo zypper --non-interactive update
sudo zyppper --non-interactive dup
# NVIDIA Drivers
echo
echo "Installing proprietary NVIDIA drivers..."
sudo zypper --non-interactive install openSUSE-repos-Tumbleweed-NVIDIA
sudo zupper --non-interactive install-new-recommends --repo repo-non-free
# NVIDIA Settings
echo
echo "Installing NVIDIA settings..."
sudo zypper --non-interactive install nvidia-utils*
# Media Codecs
# Nothing to do
# Language, Time & Date
# Sets system to English, currency, dates etc. to Swedish
echo
echo "Setting system language to English and region to Sweden..."
su -c 'echo -ne "LANG=en_US.UTF-8\nLANGUAGE=en_US:en\nLC_CTYPE=\"en_US.UTF-8\"\nLC_NUMERIC=sv_SE.UTF-8\nLC_TIME=sv_SE.UTF-8\nLC_COLLATE=\"en_US.UTF-8\"\nLC_MONETARY=sv_SE.UTF-8\nLC_MESSAGES=en_US.UTF-8\nLC_PAPER=sv_SE.UTF-8\nLC_NAME=sv_SE.UTF-8\nLC_ADDRESS=sv_SE.UTF-8\nLC_TELEPHONE=sv_SE.UTF-8\nLC_MEASUREMENT=sv_SE.UTF-8\nLC_IDENTIFICATION=sv_SE.UTF-8\nLC_ALL=" > /etc/locale.conf'
# Theme
echo ""
echo "Installing Dracula theme..."
sudo git clone https://github.com/dracula/gtk.git /usr/share/themes/Dracula
# Force dark mode in GNOME
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
# Icons
git clone https://github.com/vinceliuice/vimix-icon-theme.git ~/vimix && cd ~/vimix && sudo ./install.sh -a && rm -rf ~/vimix`
# Font Manager
sudo zypper --non-interactive install font-manager && sudo zypper --non-interactive remove gnome-font-viewer
# Nerd Fonts
# Hack
curl -fLo font.tar.xz \
https://github.com/ryanoasis/nerd-fonts/releases/latest/download/Hack.tar.xz && \
sudo mkdir -p /usr/share/fonts/Hack && sudo tar -xf font.tar.xz -C /usr/share/fonts/Hack && \
rm -f font.tar.xz`
# Segoe UI
curl -fLo font.zip \
https://aka.ms/SegoeUIVariable && \
sudo mkdir -p /usr/share/fonts/SegoeUI && sudo unzip -o font.zip -d /usr/share/fonts/SegoeUI && \
rm -f font.zip
# FiraCode
curl -fLo font.tar.xz \
https://github.com/ryanoasis/nerd-fonts/releases/latest/download/FiraCode.tar.xz && \
sudo mkdir -p /usr/share/fonts/FiraCode && sudo tar -xf font.tar.xz -C /usr/share/fonts/FiraCode && \
rm -f font.tar.xz
# Cascadia Cove/Code
curl -fLo font.tar.xz \
https://github.com/ryanoasis/nerd-fonts/releases/latest/download/CascadiaCode.tar.xz && \
sudo mkdir -p /usr/share/fonts/CascadiaCove && sudo tar -xf font.tar.xz -C /usr/share/fonts/CascadiaCove && \
rm -f font.tar.xz
# JetBrainsMono
curl -fLo font.tar.xz \
https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.tar.xz && \
sudo mkdir -p /usr/share/fonts/JetBrainsMono && sudo tar -xf font.tar.xz -C /usr/share/fonts/JetBrainsMono && \
rm -f font.tar.xz
# GNOME Accessibility
sudo zypper --non-interactive install at-spi2-core
# Wine
sudo zypper --non-interactive install -l wine wine-gecko wine-mono dosbox winetricks
wine start cmd /c exit
# Wine Associations
echo -e "\n\n[Default Applications]\napplication/x-ms-dos-executable=wine.desktop;\napplication/vnd.microsoft.portable-executable=wine.desktop;\napplication/x-msdownload=wine.desktop;" >> "$HOME/.config/mimeapps.list"
# Thunderbird
sudo zypper --non-interactive install thunderbird
# Vim
sudo zypper --non-interactive install vim gvim
mkdir -p ~/.vim
touch ~/.vim/vimrc
# Albert
sudo zypper --non-interactive addrepo --refresh https://download.opensuse.org/repositories/home:manuelschneid3r/openSUSE_Tumbleweed/home:manuelschneid3r.repo
sudo zypper --non-interactive install albert
# Albert Autostart
mkdir -p ~/.config/autostart
cat <<EOF > ~/.config/autostart/albert.desktop
[Desktop Entry]
Type=Application
Name=Albert
Exec=albert
EOF
# Alacritty
sudo zypper --non-interactive install alacritty
# Bitwarden
sudo zypper --non-interactive install bitwarden
# Telegram
curl -o "$HOME/Downloads/telegram.tar.xz" https://telegram.org/dl/desktop/linux -L
sudo tar -xf "$HOME/Downloads/telegram.tar.xz" -C "/opt"
rm "$HOME/Downloads/telegram.tar.xz"
sudo ln -s "/opt/Telegram/Telegram" "/usr/bin/telegram-desktop"
# Start Telegram to get a .desktop file, then close it
telegram-desktop -startintray &
sleep 5
killall telegram-desktop
# Steam
sudo zypper --non-interactive install -l steam

9
xfce/README.md Normal file
View File

@ -0,0 +1,9 @@
# XFCE
My configuration files for the [Xfce Desktop Environment](https://www.xfce.org).
## Installation
Symlink `gtk.css` to `$XDG_CONFIG_HOME/gtk-3.0/gtk.css`.
Symlink `xfce4-panel.xml` to `$XDG_CONFIG_HOME/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml`.

18
xfce/gtk.css Normal file
View File

@ -0,0 +1,18 @@
#docklike-plugin button {
margin: 0.15rem 0px 0rem 0px;
border-radius: 3px;
border: 0px;
}
#docklike-plugin .active_group {
background-color: @theme_base_color;
border: 0px solid rgba(255,255,255,0.025);
}
#docklike-plugin .hover_group {
background-color: @selected_bg_color;
}
#docklike-plugin .active_group.hover_group {
background-color: rgba(255,255,255,0.15);
}

235
xfce/xfce4-panel.xml Normal file
View File

@ -0,0 +1,235 @@
<?xml version="1.1" encoding="UTF-8"?>
<channel name="xfce4-panel" version="1.0">
<property name="configver" type="empty"/>
<property name="panels" type="array">
<value type="int" value="1"/>
<value type="int" value="5"/>
<value type="int" value="2"/>
<property name="panel-1" type="empty">
<property name="position" type="string" value="p=4;x=0;y=0"/>
<property name="length" type="double" value="25"/>
<property name="position-locked" type="bool" value="true"/>
<property name="size" type="uint" value="40"/>
<property name="length-adjust" type="bool" value="false"/>
<property name="plugin-ids" type="array">
<value type="int" value="5"/>
<value type="int" value="7"/>
<value type="int" value="13"/>
<value type="int" value="6"/>
<value type="int" value="2"/>
<value type="int" value="22"/>
<value type="int" value="9"/>
<value type="int" value="10"/>
<value type="int" value="14"/>
<value type="int" value="3"/>
</property>
<property name="mode" type="uint" value="0"/>
<property name="autohide-behavior" type="uint" value="0"/>
<property name="leave-opacity" type="uint" value="98"/>
<property name="enter-opacity" type="uint" value="98"/>
<property name="background-style" type="uint" value="1"/>
<property name="background-rgba" type="array">
<value type="double" value="0.11764705882352942"/>
<value type="double" value="0.12156862745098039"/>
<value type="double" value="0.16078431372549021"/>
<value type="double" value="1"/>
</property>
<property name="icon-size" type="uint" value="22"/>
<property name="border-width" type="uint" value="0"/>
</property>
<property name="dark-mode" type="bool" value="true"/>
<property name="panel-5" type="empty">
<property name="position" type="string" value="p=10;x=0;y=0"/>
<property name="size" type="uint" value="40"/>
<property name="position-locked" type="bool" value="true"/>
<property name="length-adjust" type="bool" value="false"/>
<property name="length" type="double" value="50"/>
<property name="plugin-ids" type="array">
<value type="int" value="1"/>
<value type="int" value="12"/>
<value type="int" value="4"/>
</property>
<property name="enter-opacity" type="uint" value="98"/>
<property name="leave-opacity" type="uint" value="98"/>
<property name="background-style" type="uint" value="1"/>
<property name="background-rgba" type="array">
<value type="double" value="0.11764705882352942"/>
<value type="double" value="0.12156862745098039"/>
<value type="double" value="0.16078431372549021"/>
<value type="double" value="1"/>
</property>
<property name="icon-size" type="uint" value="28"/>
<property name="border-width" type="uint" value="0"/>
</property>
<property name="panel-2" type="empty">
<property name="position" type="string" value="p=8;x=0;y=0"/>
<property name="size" type="uint" value="40"/>
<property name="length-adjust" type="bool" value="false"/>
<property name="position-locked" type="bool" value="true"/>
<property name="length" type="double" value="25"/>
<property name="mode" type="uint" value="0"/>
<property name="background-style" type="uint" value="1"/>
<property name="background-rgba" type="array">
<value type="double" value="0.11764705882352942"/>
<value type="double" value="0.12156862745098039"/>
<value type="double" value="0.16078431372549021"/>
<value type="double" value="1"/>
</property>
<property name="enter-opacity" type="uint" value="98"/>
<property name="leave-opacity" type="uint" value="98"/>
<property name="icon-size" type="uint" value="28"/>
<property name="border-width" type="uint" value="0"/>
<property name="plugin-ids" type="array">
<value type="int" value="11"/>
</property>
</property>
</property>
<property name="plugins" type="empty">
<property name="plugin-1" type="string" value="separator">
<property name="expand" type="bool" value="true"/>
<property name="style" type="uint" value="0"/>
</property>
<property name="plugin-2" type="empty">
<property name="style" type="empty"/>
</property>
<property name="plugin-3" type="empty">
<property name="show-on-hover" type="bool" value="false"/>
</property>
<property name="plugin-4" type="string" value="separator">
<property name="flat-buttons" type="empty"/>
<property name="show-handle" type="empty"/>
<property name="grouping" type="empty"/>
<property name="expand" type="bool" value="true"/>
<property name="style" type="uint" value="0"/>
</property>
<property name="plugin-5" type="empty">
<property name="expand" type="empty"/>
<property name="style" type="empty"/>
</property>
<property name="plugin-6" type="empty">
<property name="enable-keyboard-shortcuts" type="bool" value="true"/>
<property name="known-players" type="string" value="com.github.th_ch.youtube_music;floorp"/>
<property name="play-sound" type="bool" value="true"/>
<property name="rec-indicator-persistent" type="bool" value="false"/>
<property name="volume-max" type="uint" value="100"/>
</property>
<property name="plugin-14" type="empty"/>
<property name="plugin-13" type="string" value="xfce4-clipman-plugin"/>
<property name="plugin-7" type="empty">
<property name="show-frame" type="empty"/>
<property name="square-icons" type="bool" value="true"/>
<property name="icon-size" type="int" value="20"/>
<property name="symbolic-icons" type="empty"/>
<property name="menu-is-primary" type="bool" value="false"/>
<property name="known-legacy-items" type="array">
<value type="string" value="xfce4-power-manager"/>
<value type="string" value="task manager"/>
<value type="string" value="network"/>
<value type="string" value="blueman"/>
<value type="string" value="networkmanager applet"/>
<value type="string" value="steam"/>
<value type="string" value="albert"/>
<value type="string" value="clipman"/>
</property>
<property name="known-items" type="array">
<value type="string" value="vrmonitor"/>
<value type="string" value="Mumble"/>
<value type="string" value="obs"/>
<value type="string" value="chrome_status_icon_1"/>
<value type="string" value="albert"/>
<value type="string" value="blueman"/>
<value type="string" value="steam"/>
<value type="string" value="TelegramDesktop"/>
<value type="string" value="nm-applet"/>
</property>
<property name="single-row" type="bool" value="true"/>
<property name="hide-new-items" type="bool" value="false"/>
<property name="hidden-items" type="array">
</property>
</property>
<property name="plugin-8" type="empty"/>
<property name="plugin-9" type="empty">
<property name="style" type="empty"/>
</property>
<property name="plugin-10" type="empty">
<property name="show-frame" type="empty"/>
<property name="digital-format" type="empty"/>
<property name="digital-time-format" type="string" value="%R"/>
<property name="digital-layout" type="uint" value="1"/>
<property name="mode" type="uint" value="2"/>
<property name="tooltip-format" type="string" value="%A %d %B %Y"/>
<property name="digital-date-format" type="string" value="%a, %b %d, %Y"/>
<property name="digital-date-font" type="string" value="Segoe UI Variable Semi-Bold 10"/>
<property name="digital-time-font" type="string" value="Segoe UI Variable Semi-Bold 10"/>
<property name="command" type="string" value="thunderbird -calendar"/>
</property>
<property name="plugin-11" type="string" value="whiskermenu">
<property name="style" type="empty"/>
<property name="launcher-icon-size" type="int" value="3"/>
<property name="view-mode" type="int" value="0"/>
<property name="favorites" type="array">
<value type="string" value="thunar.desktop"/>
<value type="string" value="org.opensuse.YaST.desktop"/>
<value type="string" value="org.opensuse.yast.Packager.desktop"/>
<value type="string" value="xfce4-terminal-emulator.desktop"/>
</property>
<property name="show-button-icon" type="bool" value="true"/>
<property name="show-button-title" type="bool" value="false"/>
<property name="button-single-row" type="bool" value="true"/>
<property name="recent" type="array">
<value type="string" value="albert.desktop"/>
<value type="string" value="com.obsproject.Studio.desktop"/>
</property>
</property>
<property name="plugin-12" type="string" value="docklike"/>
<property name="plugin-22" type="string" value="weather">
<property name="location" type="empty">
<property name="name" type="string" value="Umeå, Umeå kommun"/>
<property name="latitude" type="string" value="63.825657"/>
<property name="longitude" type="string" value="20.263074"/>
</property>
<property name="msl" type="int" value="0"/>
<property name="timezone" type="string" value="Europe/Stockholm"/>
<property name="offset" type="string" value="+01:00"/>
<property name="cache-max-age" type="int" value="172800"/>
<property name="power-saving" type="bool" value="true"/>
<property name="units" type="empty">
<property name="temperature" type="int" value="0"/>
<property name="pressure" type="int" value="0"/>
<property name="windspeed" type="int" value="0"/>
<property name="precipitation" type="int" value="0"/>
<property name="altitude" type="int" value="0"/>
<property name="apparent-temperature" type="int" value="2"/>
</property>
<property name="round" type="bool" value="true"/>
<property name="single-row" type="bool" value="true"/>
<property name="tooltip-style" type="int" value="1"/>
<property name="forecast" type="empty">
<property name="layout" type="int" value="0"/>
<property name="days" type="int" value="5"/>
</property>
<property name="theme-dir" type="string" value="/usr/share/xfce4/weather/icons/liquid"/>
<property name="scrollbox" type="empty">
<property name="show" type="bool" value="true"/>
<property name="animate" type="bool" value="true"/>
<property name="lines" type="int" value="1"/>
<property name="color" type="string" value="rgba(0,0,0,0)"/>
<property name="use-color" type="bool" value="false"/>
<property name="font" type="string" value="Segoe UI Variable 10"/>
</property>
<property name="labels" type="empty">
<property name="label0" type="int" value="3"/>
</property>
</property>
<property name="clipman" type="empty">
<property name="settings" type="empty">
<property name="add-primary-clipboard" type="bool" value="false"/>
<property name="persistent-primary-clipboard" type="bool" value="false"/>
</property>
<property name="tweaks" type="empty">
<property name="popup-at-pointer" type="bool" value="true"/>
</property>
</property>
</property>
</channel>