From ba27c84676814b2a0b619061fed5f3a8c22a35f5 Mon Sep 17 00:00:00 2001 From: rhjr Date: Mon, 12 May 2025 21:07:49 +0200 Subject: [PATCH] Added: minimal waybar config --- .bashrc | 6 +++++- .config/sway/config | 14 +++----------- .config/waybar/config.jsonc | 13 +++++++++++++ .config/waybar/style.css | 4 ++++ install.sh | 36 +++++++++++++++++++++++++++++------- 5 files changed, 54 insertions(+), 19 deletions(-) create mode 100644 .config/waybar/config.jsonc create mode 100644 .config/waybar/style.css diff --git a/.bashrc b/.bashrc index 6c136a8..6587f72 100644 --- a/.bashrc +++ b/.bashrc @@ -73,10 +73,14 @@ xterm*|rxvt*) esac # variables +export PATH=$PATH:/usr/sbin:/sbin + +export LESSHISTFILE=- export VIMINIT='source $HOME/.config/vim/vimrc' -export XDG_CONFIG_HOME=$HOME/.config export LC_COLLATE="C" +export WLR_NO_HARDWARE_CURSORS=1 + # aliases alias config='/usr/bin/git --git-dir=$HOME/.config.remote/ --work-tree=$HOME' diff --git a/.config/sway/config b/.config/sway/config index 3a97ddd..c802775 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -198,22 +198,14 @@ mode "resize" { } bindsym $mod+r mode "resize" +gaps outer 10 + # # 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 +'%Y-%m-%d %I:%M:%S %p'; do sleep 1; done - - colors { - statusline #ffffff - background #323232 - inactive_workspace #32323200 #32323200 #5c5c5c - } + swaybar_command waybar } include /etc/sway/config.d/* diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc new file mode 100644 index 0000000..48587e0 --- /dev/null +++ b/.config/waybar/config.jsonc @@ -0,0 +1,13 @@ +{ + "layer": "top", + "position": "right", + "height": "100%", + "width": 30, + "margin-right": 10, + "margin-top": 10, + "margin-bottom": 10, + + "network": { + "format-wifi": "{icon}" + } +} diff --git a/.config/waybar/style.css b/.config/waybar/style.css new file mode 100644 index 0000000..1cdcd0a --- /dev/null +++ b/.config/waybar/style.css @@ -0,0 +1,4 @@ + +#waybar { + +} diff --git a/install.sh b/install.sh index 2e7a59f..3c76e65 100755 --- a/install.sh +++ b/install.sh @@ -1,14 +1,36 @@ #!/bin/bash -## +set -xe + +## initial apt update apt upgrade +## rights +apt install -y sudo + ## workspace -mkdir -p $HOME/devel -mkdir -p $HOME/documents -mkdir -p $HOME/downloads -mkdir -p $HOME/programs -mkdir -p $HOME/machines -mkdir -p $HOME/scratch +mkdir -p /home/rhjr/devel +mkdir -p /home/rhjr/documents +mkdir -p /home/rhjr/downloads +mkdir -p /home/rhjr/programs +mkdir -p /home/rhjr/machines +mkdir -p /home/rhjr/scratch + +## environment +apt install -y \ + sway mesa-utils + +## development +apt install -y \ + git file \ + vim \ + build-essential + +## user +apt install -y neofetch + +apt install -y \ + sway \ + waybar