Compare commits

..

37 Commits

Author SHA256 Message Date
a3d33d3c6f wifi 2025-06-29 15:48:47 +02:00
30e4e81215 wifi 2025-06-29 15:38:34 +02:00
7d00eb1f57 wifi 2025-06-29 15:24:14 +02:00
5ce5d5c702 wifi menu ændret 2025-06-29 15:12:31 +02:00
1c2018bf67 style 2025-06-29 15:02:05 +02:00
424f7e69b1 Moderniseret wifi vælger 2025-06-29 14:50:33 +02:00
329c54f5e5 fikset wifi menu så der også kan vælges wifi netværk med kode 2025-06-29 14:21:21 +02:00
db13a0d2cc sddm theme 2025-06-25 21:25:22 +02:00
46633276d4 sddm changes 2025-06-25 21:05:13 +02:00
afede13173 sddm rettelser 2025-06-25 20:41:03 +02:00
ad40ce617f mini fejl rettet 2025-06-25 19:32:47 +02:00
d921d1a8cc flere rettigheder 2025-06-25 19:16:53 +02:00
57be4c7921 rettigheder rettet 2025-06-25 19:15:03 +02:00
89f99c435c baggrund billede mappe sddm 2025-06-25 19:12:34 +02:00
79f37bafac fixed location sddm wallpaper 2025-06-25 18:55:28 +02:00
4d9af6ed45 fixed problem med sddm 2025-06-25 15:50:26 +02:00
71a2b86552 stavefejl rettet 2025-06-25 15:42:54 +02:00
382435255a sti til billede rettet 2025-06-25 12:33:31 +02:00
1be6189448 sddm styling 2025-06-25 12:25:07 +02:00
2cb0da9648 minor error 2025-06-24 22:38:33 +02:00
6cd9521631 fiks til sort skærm efter dvale 2025-06-24 22:34:16 +02:00
006daa570b fix til lock screen 2025-06-24 19:30:07 +02:00
353d8276aa styling opdatering 2025-06-24 19:19:50 +02:00
523cf64614 styling sddm 2025-06-23 22:23:48 +02:00
ac24355f28 styles swaylock 2025-06-23 22:16:50 +02:00
9110ba0736 opdatering swaylock 2025-06-23 22:00:57 +02:00
9e15b93916 iptables-nft 2025-06-23 20:25:21 +02:00
3e3fe3f087 tilbage rettet 2025-06-23 19:48:19 +02:00
eeec7cd9f2 Tilrettelse pga. ændringer i arch pakker 2025-06-23 19:45:04 +02:00
65f401e67f Tilføjet lock screen 2025-06-23 19:29:05 +02:00
25f5c2a880 mic tast opdateret 2025-06-20 22:12:07 +02:00
09049da380 Mikrofon tast 2025-06-20 21:41:23 +02:00
52b9f93ed9 skærm lysstyrke taster 2025-06-20 21:30:27 +02:00
6a23eb6ca8 media key volume 2025-06-20 21:18:18 +02:00
54114535b7 wifi 2025-06-19 22:54:25 +02:00
cebdebcebe wifi 2025-06-19 22:36:52 +02:00
584f397d37 wifi 2025-06-19 22:28:31 +02:00
5 changed files with 251 additions and 13 deletions

View File

@@ -90,6 +90,10 @@
- wireplumber - wireplumber
- alsa-utils - alsa-utils
- neofetch - neofetch
- swayidle
- swaylock-effects
- iptables-nft
- sddm-sugar-candy-git
- ufw # Firewall - ufw # Firewall
state: present state: present
@@ -142,6 +146,7 @@
- { src: 'hypr-keys.sh.j2', dest: 'hypr-keys.sh' } - { src: 'hypr-keys.sh.j2', dest: 'hypr-keys.sh' }
- { src: 'launch-wofi.sh.j2', dest: 'launch_wofi.sh' } - { src: 'launch-wofi.sh.j2', dest: 'launch_wofi.sh' }
- { src: 'launch-wifi-menu.sh.j2', dest: 'launch-wifi-menu.sh' } - { src: 'launch-wifi-menu.sh.j2', dest: 'launch-wifi-menu.sh' }
- { src: 'lock-screen.sh.j2', dest: 'lock-screen.sh' }
- name: "TEMA :: Installer Atlantis skrifttype" - name: "TEMA :: Installer Atlantis skrifttype"
ansible.builtin.copy: ansible.builtin.copy:
@@ -166,12 +171,18 @@
dest: "/home/{{ username }}/Pictures/atlantis-wallpaper.jpg" dest: "/home/{{ username }}/Pictures/atlantis-wallpaper.jpg"
mode: '0644' mode: '0644'
- name: "BRUGER :: Opret sddm bagrundsmappe"
become: true
ansible.builtin.file:
path: "/usr/share/backgrounds"
state: directory
mode: '0755'
- name: "TEMA :: Kopier Atlantis baggrundsbillede" - name: "TEMA :: Kopier Atlantis baggrundsbillede"
become: true become: true
become_user: "{{ username }}"
ansible.builtin.copy: ansible.builtin.copy:
src: "files/wallpapers/atlantis_spaceship.jpg" src: "files/wallpapers/atlantis_spaceship.jpg"
dest: "/home/{{ username }}/Pictures/atlantis-spaceship.jpg" dest: "/usr/share/backgrounds/atlantis-spaceship.jpg"
mode: '0644' mode: '0644'
- name: "TEMA :: Kopier hyprpaper konfiguration" - name: "TEMA :: Kopier hyprpaper konfiguration"
@@ -182,6 +193,13 @@
dest: "/home/{{ username }}/.config/hypr/hyprpaper.conf" dest: "/home/{{ username }}/.config/hypr/hyprpaper.conf"
mode: '0644' mode: '0644'
- name: "STYLING :: Konfigurer SDDM tema via template (endelig, ren version)"
become: true
ansible.builtin.template:
src: templates/sddm-theme.conf.j2
dest: /usr/share/sddm/themes/sugar-candy/theme.conf
mode: '0644'
- name: "FIREWALL :: Konfigurer UFW's standardpolitikker" - name: "FIREWALL :: Konfigurer UFW's standardpolitikker"
tags: firewall tags: firewall
block: block:
@@ -264,8 +282,29 @@
gtk-cursor-theme-name=Adwaita gtk-cursor-theme-name=Adwaita
mode: '0644' mode: '0644'
- name: "HARDWARE :: Detekter om systemet har Intel GPU"
become: true
ansible.builtin.shell: "lspci | grep -i 'VGA' | grep -i 'Intel'"
register: intel_gpu_check
changed_when: false
failed_when: false
- name: "KERNEL :: Deaktiver Panel Self Refresh (kun for Intel GPU)"
become: true
ansible.builtin.lineinfile:
path: /etc/default/grub
regexp: '^(GRUB_CMDLINE_LINUX_DEFAULT="((?!i915\.enable_psr=0).)*?)"$'
line: '\1 i915.enable_psr=0"'
backrefs: yes
notify: Regenerate GRUB config
when: intel_gpu_check.rc == 0
# Handlers køres kun hvis en opgave 'notifierer' dem # Handlers køres kun hvis en opgave 'notifierer' dem
handlers: handlers:
- name: Regenerate GRUB config
become: true
ansible.builtin.command: grub-mkconfig -o /boot/grub/grub.cfg
- name: Opdater font cache - name: Opdater font cache
ansible.builtin.command: fc-cache -fv ansible.builtin.command: fc-cache -fv
become: true become: true

View File

@@ -7,6 +7,13 @@
exec-once = waybar & exec-once = waybar &
exec-once = hyprpaper & exec-once = hyprpaper &
exec-once = /usr/lib/polkit-kde-authentication-agent-1 & exec-once = /usr/lib/polkit-kde-authentication-agent-1 &
exec-once = swayidle -w \
timeout 300 '/home/{{ username }}/.local/bin/lock-screen.sh' \
timeout 330 'hyprctl dispatch dpms off' \
resume 'hyprctl dispatch dpms on' \
timeout 600 'systemctl suspend' \
before-sleep '/home/{{ username }}/.local/bin/lock-screen.sh'
exec-once = nm-applet --indicator &
# --------------------------------------------------- # ---------------------------------------------------
@@ -148,3 +155,18 @@ bind = $mainMod SHIFT, 9, movetoworkspace, 9
# Vis keybindings i en wofi menu # Vis keybindings i en wofi menu
bind = $mainMod, SPACE, exec, ~/.local/bin/hypr-keys.sh bind = $mainMod, SPACE, exec, ~/.local/bin/hypr-keys.sh
# Volume control
bind = , XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +5%
bind = , XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -5%
bind = , XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle
# Screen brightness
bind = , XF86MonBrightnessUp, exec, brightnessctl set +5%
bind = , XF86MonBrightnessDown, exec, brightnessctl set 5%-
# Microphone mute
bind = , XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
# Lock Screen
bind = $mainMod, L, exec, /home/{{ username }}/.local/bin/lock-screen.sh

View File

@@ -1,15 +1,33 @@
#!/bin/bash #!/bin/bash
# Dette script viser en liste af Wi-Fi netværk i en korrekt positioneret Wofi-menu # Et robust script til at vælge og forbinde til Wi-Fi.
# og forsøger at forbinde til det valgte netværk. # Denne version kalder nmcli direkte i et nyt kitty-vindue.
# 1. Viser en liste af tilgængelige Wi-Fi SSID'er med nmcli # Viser listen af netværk i vores stylede wofi-menu
# 2. Sender listen til wofi, som bruger vores specielle 'config-network' fil CHOSEN_SSID=$(nmcli -t -f SSID,IN-USE device wifi list --rescan yes | sed '/\*/d' | sed 's/\\:/-/g' | sort -u | wofi \
SSID=$(nmcli -t -f SSID device wifi list --rescan yes | wofi --show dmenu --conf-file "$HOME/.config/wofi/config-network" --location top_right --x -70 --y 45 -p "Vælg Wi-Fi Netværk") --show dmenu \
--conf "$HOME/.config/wofi/config-network" \
--style "$HOME/.config/wofi/style.css" \
-p "Vælg Wi-Fi Netværk")
# 3. Hvis et netværk blev valgt (brugeren trykkede ikke Esc), så prøv at forbinde # Afslut hvis intet blev valgt (brugeren trykkede Esc)
if [ -n "$SSID" ]; then if [ -z "$CHOSEN_SSID" ]; then
# NetworkManager vil selv håndtere at spørge efter adgangskode via en grafisk prompt, exit 0
# hvis det er en ny forbindelse. fi
nmcli device wifi connect "$SSID"
CHOSEN_SSID="${CHOSEN_SSID%?}"
# Tjek om vi allerede er forbundet til det valgte netværk
if nmcli connection show --active | grep -wq "^${CHOSEN_SSID}"; then
exit 0
fi
# Tjek om der findes en gemt forbindelse med dette navn
if nmcli connection show | grep -wq "^${CHOSEN_SSID}"; then
# Hvis ja, aktiver den i et nyt kitty-vindue
kitty --title "Forbinder til ${CHOSEN_SSID}..." nmcli connection up "$CHOSEN_SSID"
else
# Hvis nej, er det et nyt netværk.
# Åbn en ny terminal, der kører 'nmcli' med '--ask' flaget for at bede om password.
kitty --title "Adgangskode til ${CHOSEN_SSID}" nmcli device wifi connect "$CHOSEN_SSID" --ask
fi fi

View File

@@ -0,0 +1,19 @@
#!/bin/bash
# Script til at starte swaylock med et "Stargate Atlantis" tema
swaylock \
--screenshots \
--clock \
--indicator \
--indicator-radius 100 \
--indicator-thickness 7 \
--effect-blur 7x5 \
--effect-vignette 0.5:0.5 \
--ring-color 00aaff \
--key-hl-color 89b4fa \
--line-color 00000000 \
--inside-color 00000088 \
--separator-color 00000000 \
--text-color cdd6f4 \
--font "JetBrains Mono Nerd Font"

View File

@@ -0,0 +1,140 @@
# templates/sddm-theme.conf.j2
# ===== SDDM Tema Konfiguration - Stargate Atlantis =====
[General]
Background="/usr/share/backgrounds/atlantis-spaceship.jpg"
## Path relative to the theme root directory. Most standard image file formats are allowed including support for transparency. (e.g. background.jpeg/illustration.GIF/Foto.png/undraw.svgz)
DimBackgroundImage="0.0"
## Double between 0 and 1 used for the alpha channel of a darkening overlay. Use to darken your background image on the fly.
ScaleImageCropped="true"
## Whether the image should be cropped when scaled proportionally. Setting this to false will fit the whole image instead, possibly leaving white space. This can be exploited beautifully with illustrations (try it with "undraw.svg" included in the theme).
ScreenWidth="1920"
ScreenHeight="1080"
## Adjust to your resolution to help SDDM speed up on calculations
## [Blur Settings]
FullBlur="false"
PartialBlur="true"
## Enable or disable the blur effect; if HaveFormBackground is set to true then PartialBlur will trigger the BackgroundColor of the form element to be partially transparent and blend with the blur.
BlurRadius="100"
## Set the strength of the blur effect. Anything above 100 is pretty strong and might slow down the rendering time. 0 is like setting false for any blur.
## [Design Customizations]
HaveFormBackground="false"
## Have a full opacity background color behind the form that takes slightly more than 1/3 of screen estate; if PartialBlur is set to true then HaveFormBackground will trigger the BackgroundColor of the form element to be partially transparent and blend with the blur.
FormPosition="left"
## Position of the form which takes roughly 1/3 of screen estate. Can be left, center or right.
BackgroundImageHAlignment="center"
## Horizontal position of the background picture relative to its visible area. Applies when ScaleImageCropped is set to false or when HaveFormBackground is set to true and FormPosition is either left or right. Can be left, center or right; defaults to center if none is passed.
BackgroundImageVAlignment="center"
## As before but for the vertical position of the background picture relative to its visible area.
MainColor="white"
## Used for all elements when not focused/hovered etc. Usually the best effect is achieved by having this be either white or a very dark grey like #444 (not black for smoother antialias)
## Colors can be HEX or Qt names (e.g. red/salmon/blanchedalmond). See https://doc.qt.io/qt-5/qml-color.html
AccentColor="#fb884f"
## Used for elements in focus/hover/pressed. Should be contrasting to the background and the MainColor to achieve the best effect.
BackgroundColor="#444"
## Used for the user and session selection background as well as for ScreenPadding and FormBackground when either is true. If PartialBlur and FormBackground are both enabled this color will blend with the blur effect.
OverrideLoginButtonTextColor=""
## The text of the login button may become difficult to read depending on your color choices. Use this option to set it independently for legibility.
InterfaceShadowSize="6"
## Integer used as multiplier. Size of the shadow behind the user and session selection background. Decrease or increase if it looks bad on your background. Initial render can be slow no values above 5-7.
InterfaceShadowOpacity="0.6"
## Double between 0 and 1. Alpha channel of the shadow behind the user and session selection background. Decrease or increase if it looks bad on your background.
RoundCorners="20"
## Integer in pixels. Radius of the input fields and the login button. Empty for square. Can cause bad antialiasing of the fields.
ScreenPadding="0"
## Integer in pixels. Increase or delete this to have a padding of color BackgroundColor all around your screen. This makes your login greeter appear as if it was a canvas. Cool!
Font="Noto Sans"
## If you want to choose a custom font it will have to be available to the X root user. See https://wiki.archlinux.org/index.php/fonts#Manual_installation
FontSize=""
## Only set a fixed value if fonts are way too small for your resolution. Preferrably kept empty.
## [Interface Behavior]
ForceRightToLeft="false"
## Revert the layout either because you would like the login to be on the right hand side or SDDM won't respect your language locale for some reason. This will reverse the current position of FormPosition if it is either left or right and in addition position some smaller elements on the right hand side of the form itself (also when FormPosition is set to center).
ForceLastUser="true"
## Have the last successfully logged in user appear automatically in the username field.
ForcePasswordFocus="true"
## Give automatic focus to the password field. Together with ForceLastUser this makes for the fastest login experience.
ForceHideCompletePassword="false"
## If you don't like to see any character at all not even while being entered set this to true.
ForceHideVirtualKeyboardButton="false"
## Do not show the button for the virtual keyboard at all. This will completely disable functionality for the virtual keyboard even if it is installed and activated in sddm.conf
ForceHideSystemButtons="false"
## Completely disable and hide any power buttons on the greeter.
AllowEmptyPassword="false"
## Enable login for users without a password. This is discouraged. Makes the login button always enabled.
AllowBadUsernames="false"
## Do not change this! Uppercase letters are generally not allowed in usernames. This option is only for systems that differ from this standard! Also shows username as is instead of capitalized.
## [Locale Settings]
Locale=""
## The time and date locale should usually be set in your system settings. Only hard set this if something is not working by default or you want a seperate locale setting in your login screen.
HourFormat="HH:mm"
## Defaults to Locale.ShortFormat - Accepts "long" or a custom string like "hh:mm A". See http://doc.qt.io/qt-5/qml-qtqml-date.html
DateFormat="dddd, d of MMMM"
## Defaults to Locale.LongFormat - Accepts "short" or a custom string like "dddd, d 'of' MMMM". See http://doc.qt.io/qt-5/qml-qtqml-date.html
## [Translations]
HeaderText="Welcome!"
## Header can be empty to not display any greeting at all. Keep it short.
## SDDM may lack proper translation for every element. Suger defaults to SDDM translations. Please help translate SDDM as much as possible for your language: https://github.com/sddm/sddm/wiki/Localization. These are in order as they appear on screen.
TranslatePlaceholderUsername=""
TranslatePlaceholderPassword=""
TranslateShowPassword=""
TranslateLogin=""
TranslateLoginFailedWarning=""
TranslateCapslockWarning=""
TranslateSession=""
TranslateSuspend=""
TranslateHibernate=""
TranslateReboot=""
TranslateShutdown=""
TranslateVirtualKeyboardButton=""
## These don't necessarily need to translate anything. You can enter whatever you want here.