Browse Source

locale, wm: add component

master
parent
commit
4f269ee279
Signed by: govanify GPG Key ID: DE62E1E2A6145556
24 changed files with 522 additions and 820 deletions
  1. +0
    -2
      assets/gpg/gpg.conf
  2. +0
    -4
      assets/graphical/qt5ct/breeze-dark.conf
  3. +0
    -28
      assets/graphical/qt5ct/qt5ct.conf
  4. +0
    -223
      assets/graphical/sway-laptop/config
  5. +0
    -8
      assets/graphical/sway-laptop/locale.sh
  6. +0
    -21
      assets/graphical/sway-laptop/status.sh
  7. +0
    -253
      assets/graphical/sway/config
  8. +0
    -8
      assets/graphical/sway/locale.sh
  9. +0
    -13
      assets/graphical/sway/status-desktop.sh
  10. +0
    -14
      assets/graphical/sway/status.sh
  11. +0
    -3
      common/default.nix
  12. +0
    -6
      common/desktop.nix
  13. +58
    -166
      common/graphical.nix
  14. +7
    -1
      common/headfull.nix
  15. +0
    -6
      common/laptop.nix
  16. +0
    -58
      common/locale.nix
  17. +2
    -0
      components/default.nix
  18. +1
    -0
      components/headfull/default.nix
  19. +2
    -0
      components/headfull/graphical/browser.nix
  20. +1
    -0
      components/headfull/graphical/default.nix
  21. +362
    -0
      components/headfull/graphical/wm.nix
  22. +46
    -0
      components/headfull/ime.nix
  23. +26
    -6
      devices/alastor/default.nix
  24. +17
    -0
      devices/xanadu/default.nix

+ 0
- 2
assets/gpg/gpg.conf View File

@ -1,2 +0,0 @@
keyserver hkp://pgp.mit.edu:80
keyserver-options auto-key-retrieve

+ 0
- 4
assets/graphical/qt5ct/breeze-dark.conf View File

@ -1,4 +0,0 @@
[ColorScheme]
active_colors=#eff0f1, #31363b, #4c545c, #40464d, #171a1c, #2a2e32, #eff0f1, #ffffff, #eff0f1, #232629, #31363b, #111314, #3daee9, #eff0f1, #2980b9, #7f8c8d, #31363b, #000000, #31363b, #eff0f1
disabled_colors=#6e7175, #2e3338, #4a5259, #3e444a, #16191b, #282c30, #65686a, #ffffff, #6e7175, #212427, #2e3338, #101213, #2e3338, #6e7175, #234257, #404648, #2e3338, #000000, #31363b, #eff0f1
inactive_colors=#eff0f1, #31363b, #4c545c, #40464d, #171a1c, #2a2e32, #eff0f1, #ffffff, #eff0f1, #232629, #31363b, #111314, #224e65, #eff0f1, #2980b9, #7f8c8d, #31363b, #000000, #31363b, #eff0f1

+ 0
- 28
assets/graphical/qt5ct/qt5ct.conf View File

@ -1,28 +0,0 @@
[Appearance]
color_scheme_path=~/.config/qt5ct/colors/breeze-dark.conf
custom_palette=true
icon_theme=breeze-dark
standard_dialogs=default
style=Breeze
[Fonts]
fixed=@Variant(\0\0\0@\0\0\0\x14\0S\0\x61\0n\0s\0 \0S\0\x65\0r\0i\0\x66@\"\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
general=@Variant(\0\0\0@\0\0\0\x14\0S\0\x61\0n\0s\0 \0S\0\x65\0r\0i\0\x66@\"\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
[Interface]
activate_item_on_single_click=1
buttonbox_layout=0
cursor_flash_time=1000
dialog_buttons_have_icons=1
double_click_interval=400
gui_effects=@Invalid()
keyboard_scheme=3
menus_have_icons=true
show_shortcuts_in_context_menus=true
stylesheets=@Invalid()
toolbutton_style=4
underline_shortcut=1
wheel_scroll_lines=3
[SettingsWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\x14\0\0\x3\xbd\0\0\x4\x34\0\0\0\0\0\0\0\x14\0\0\x3\x14\0\0\x3\x92\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\x14\0\0\x3\xbd\0\0\x4\x34)

+ 0
- 223
assets/graphical/sway-laptop/config View File

@ -1,223 +0,0 @@
set $mod Mod4
set $left h
set $down j
set $up k
set $right l
set $lock "swaylock --daemonize --indicator-radius 100 --indicator-thickness 7 --ring-color bb00cc --key-hl-color 880033 --line-color 00000000 --inside-color 00000088 --separator-color 00000000 -i ~/Pictures/wallpaper.png"
# auto lock
exec swayidle -w \
timeout 300 "swaylock --daemonize --indicator-radius 100 --indicator-thickness 7 --ring-color bb00cc --key-hl-color 880033 --line-color 00000000 --inside-color 00000088 --separator-color 00000000 -i ~/Pictures/wallpaper.png" \
before-sleep "swaylock --daemonize --indicator-radius 100 --indicator-thickness 7 --ring-color bb00cc --key-hl-color 880033 --line-color 00000000 --inside-color 00000088 --separator-color 00000000 -i ~/Pictures/wallpaper.png"
# screen
output * bg ~/Pictures/wallpaper.png fill
output eDP-1 scale 2.0
# all you need to have a good day
exec swaymsg "workspace 1; exec ibus-daemon -dr > /dev/null 2>&1"
exec swaymsg "workspace 1; exec firefox > /dev/null 2>&1"
exec swaymsg "workspace 3; exec element-x11 > /dev/null 2>&1"
exec swaymsg "workspace 2; layout tabbed; exec alacritty > /dev/null 2>&1"
# ui chrome
default_border pixel 1
seat seat0 xcursor_theme breeze_cursors 48
# IME
bindsym $mod+i exec ~/.config/sway/locale.sh > /dev/null 2>&1
# inputs
input "2:14:ETPS/2_Elantech_Touchpad" {
dwt enabled
tap enabled
middle_emulation enabled
}
input "type:keyboard" {
# avoids swaylock escape
xkb_options srvrkeys:none
}
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
#
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% > /dev/null 2>&1
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% > /dev/null 2>&1
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle > /dev/null 2>&1
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle > /dev/null 2>&1
bindsym XF86MonBrightnessDown exec brightnessctl set 5%- > /dev/null 2>&1
bindsym XF86MonBrightnessUp exec brightnessctl set +5% > /dev/null 2>&1
bindsym XF86AudioPlay exec playerctl play-pause > /dev/null 2>&1
bindsym $mod+down exec playerctl play-pause > /dev/null 2>&1
bindsym XF86AudioNext exec playerctl next > /dev/null 2>&1
bindsym XF86AudioPrev exec playerctl previous > /dev/null 2>&1
### Key bindings
#
# Basics:
#
# Start a terminal
bindsym $mod+Return exec "alacritty > /dev/null 2>&1"
# run commands
bindsym $mod+x exec "wofi --show drun > /dev/null 2>&1"
bindsym $mod+z exec "wofi --show run > /dev/null 2>&1"
bindsym $mod+c exec "grim /tmp/screenshot.png > /dev/null 2>&1"
bindsym $mod+d exec "grim -g "$(slurp)" /tmp/screenshot.png > /dev/null 2>&1"
bindsym $mod+Ctrl+l exec $lock
# old habits die hard
bindsym Ctrl+Alt+l exec $lock
# Kill focused window
bindsym $mod+Shift+q kill
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
#
# Moving around:
#
# Move your focus around
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
#bindsym $mod+Left focus left
#bindsym $mod+Down focus down
#bindsym $mod+Up focus up
#bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
bindsym $mod+b splith
bindsym $mod+v splitv
# Switch the current container between different layout styles
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# Make the current focus fullscreen
bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
bindsym $mod+space focus mode_toggle
# Move focus to the parent container
bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
bindsym $left resize shrink width 10px
bindsym $down resize grow height 10px
bindsym $up resize shrink height 10px
bindsym $right resize grow width 10px
# Ditto, with arrow keys
bindsym Left resize shrink width 10px
bindsym Down resize grow height 10px
bindsym Up resize shrink height 10px
bindsym Right resize grow width 10px
# Return to default mode
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
#
# 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 ~/.config/sway/status.sh; do sleep 1; done
colors {
statusline #ffffff
background #323232
inactive_workspace #32323200 #32323200 #5c5c5c
}
}
include /etc/sway/config.d/*
exec plymouth-quit > /dev/null 2>&1

+ 0
- 8
assets/graphical/sway-laptop/locale.sh View File

@ -1,8 +0,0 @@
#!/bin/sh
engine=$(ibus engine)
if [ "${engine}" == "mozc-jp" ] || [ "${engine}" == "xkb:jp::jpn" ]
then
ibus engine xkb:us::eng
else
ibus engine mozc-jp
fi

+ 0
- 21
assets/graphical/sway-laptop/status.sh View File

@ -1,21 +0,0 @@
#!/bin/sh
# The Sway configuration file in ~/.config/sway/config calls this script.
# You should see changes to the status bar after saving this script.
# If not, do "killall swaybar" and $mod+Shift+c to reload the configuration.
# The abbreviated weekday (e.g., "Sat"), followed by the ISO-formatted date
# like 2018-10-06 and the time (e.g., 14:01)
date_formatted=$(date "+%a %d/%m/%Y %H:%M")
# Returns the battery status: "Full", "Discharging", or "Charging".
battery_status=$(cat /sys/class/power_supply/BAT/status)
mail=$(cat ~/.local/share/mail/unread)
battery_info=$(upower --show-info $(upower --enumerate |\
grep 'BAT') |\
egrep "state|percentage" | grep -oP '[0-9]*%')
# Emojis and characters for the status bar
# ⚡ \|
echo "mail: $mail | bat: $battery_info | $date_formatted"

+ 0
- 253
assets/graphical/sway/config View File

@ -1,253 +0,0 @@
set $mod Mod4
set $left h
set $down j
set $up k
set $right l
set $lock "swaylock --daemonize --indicator-radius 100 --indicator-thickness 7 --ring-color bb00cc --key-hl-color 880033 --line-color 00000000 --inside-color 00000088 --separator-color 00000000 -i ~/Pictures/wallpaper.png"
# auto lock
exec swayidle -w \
timeout 300 "swaylock --daemonize --indicator-radius 100 --indicator-thickness 7 --ring-color bb00cc --key-hl-color 880033 --line-color 00000000 --inside-color 00000088 --separator-color 00000000 -i ~/Pictures/wallpaper.png" \
before-sleep "swaylock --daemonize --indicator-radius 100 --indicator-thickness 7 --ring-color bb00cc --key-hl-color 880033 --line-color 00000000 --inside-color 00000088 --separator-color 00000000 -i ~/Pictures/wallpaper.png"
# screen
output * bg ~/Pictures/wallpaper.png fill
output eDP-1 scale 2.0
output DP-2 scale 2.0
output DP-2 pos 1920 0 res 3840x2160
output DP-4 scale 2.0
output DP-4 pos 1920 0 res 3840x2160
output HDMI-A-2 pos 0 0 res 1920x1080
output HDMI-A-5 pos 0 0 res 1920x1080
# all you need to have a good day
exec swaymsg "workspace 1; exec ibus-daemon -dr > /dev/null 2>&1"
exec swaymsg "workspace 1; exec firefox > /dev/null 2>&1"
exec swaymsg "workspace 3; exec element-x11 > /dev/null 2>&1"
exec swaymsg "workspace 2; layout tabbed; exec alacritty > /dev/null 2>&1"
# ui chrome
default_border pixel 1
seat seat0 xcursor_theme breeze_cursors 24
# IME
bindsym $mod+i exec ~/.config/sway/locale.sh > /dev/null 2>&1
# inputs
input "2:14:ETPS/2_Elantech_Touchpad" {
dwt enabled
tap enabled
middle_emulation enabled
}
input "5426:515:Razer_Razer_BlackWidow_Chroma" {
xkb_layout "fr(nodeadkeys)"
# avoids swaylock escape
xkb_options srvrkeys:none
}
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
#
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% > /dev/null 2>&1
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% > /dev/null 2>&1
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle > /dev/null 2>&1
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle > /dev/null 2>&1
bindsym XF86MonBrightnessDown exec brightnessctl set 5%- > /dev/null 2>&1
bindsym XF86MonBrightnessUp exec brightnessctl set +5% > /dev/null 2>&1
bindsym XF86AudioPlay exec playerctl play-pause > /dev/null 2>&1
bindsym $mod+down exec playerctl play-pause > /dev/null 2>&1
bindsym XF86AudioNext exec playerctl next > /dev/null 2>&1
bindsym XF86AudioPrev exec playerctl previous > /dev/null 2>&1
### Key bindings
#
# Basics:
#
# Start a terminal
bindsym $mod+Return exec "alacritty > /dev/null 2>&1"
# run commands
bindsym $mod+x exec "wofi --show drun > /dev/null 2>&1"
bindsym $mod+z exec "wofi --show run> /dev/null 2>&1"
bindsym $mod+c exec "grim /tmp/screenshot.png > /dev/null 2>&1"
bindsym $mod+d exec "grim -g "$(slurp)" /tmp/screenshot.png > /dev/null 2>&1"
bindsym $mod+Ctrl+l exec $lock
# old habits die hard
bindsym Ctrl+Alt+l exec $lock
# Kill focused window
bindsym $mod+Shift+q kill
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
#
# Moving around:
#
# Move your focus around
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
#bindsym $mod+Left focus left
#bindsym $mod+Down focus down
#bindsym $mod+Up focus up
#bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
#bindsym $mod+1 workspace 1
#bindsym $mod+2 workspace 2
#bindsym $mod+3 workspace 3
#bindsym $mod+4 workspace 4
#bindsym $mod+5 workspace 5
#bindsym $mod+6 workspace 6
#bindsym $mod+7 workspace 7
#bindsym $mod+8 workspace 8
#bindsym $mod+9 workspace 9
#bindsym $mod+0 workspace 10
## Move focused container to workspace
#bindsym $mod+Shift+1 move container to workspace 1
#bindsym $mod+Shift+2 move container to workspace 2
#bindsym $mod+Shift+3 move container to workspace 3
#bindsym $mod+Shift+4 move container to workspace 4
#bindsym $mod+Shift+5 move container to workspace 5
#bindsym $mod+Shift+6 move container to workspace 6
#bindsym $mod+Shift+7 move container to workspace 7
#bindsym $mod+Shift+8 move container to workspace 8
#bindsym $mod+Shift+9 move container to workspace 9
#bindsym $mod+Shift+0 move container to workspace 10
bindsym $mod+ampersand workspace 1
bindsym $mod+eacute workspace 2
bindsym $mod+quotedbl workspace 3
bindsym $mod+apostrophe workspace 4
bindsym $mod+parenleft workspace 5
bindsym $mod+minus workspace 6
bindsym $mod+egrave workspace 7
bindsym $mod+underscore workspace 8
bindsym $mod+ccedilla workspace 9
bindsym $mod+agrave workspace 10
bindsym $mod+Shift+ampersand move container to workspace 1
bindsym $mod+Shift+eacute move container to workspace 2
bindsym $mod+Shift+quotedbl move container to workspace 3
bindsym $mod+Shift+apostrophe move container to workspace 4
bindsym $mod+Shift+parenleft move container to workspace 5
bindsym $mod+Shift+minus move container to workspace 6
bindsym $mod+Shift+egrave move container to workspace 7
bindsym $mod+Shift+underscore move container to workspace 8
bindsym $mod+Shift+ccedilla move container to workspace 9
bindsym $mod+Shift+agrave move container to workspace 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
bindsym $mod+b splith
bindsym $mod+v splitv
# Switch the current container between different layout styles
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# Make the current focus fullscreen
bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
bindsym $mod+space focus mode_toggle
# Move focus to the parent container
bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
bindsym $mod+Shift+7 move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+7 scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
bindsym $left resize shrink width 10px
bindsym $down resize grow height 10px
bindsym $up resize shrink height 10px
bindsym $right resize grow width 10px
# Ditto, with arrow keys
bindsym Left resize shrink width 10px
bindsym Down resize grow height 10px
bindsym Up resize shrink height 10px
bindsym Right resize grow width 10px
# Return to default mode
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
#
# 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 ~/.config/sway/status.sh; do sleep 1; done
colors {
statusline #ffffff
background #323232
inactive_workspace #32323200 #32323200 #5c5c5c
}
}
include /etc/sway/config.d/*
exec plymouth-quit > /dev/null 2>&1

+ 0
- 8
assets/graphical/sway/locale.sh View File

@ -1,8 +0,0 @@
#!/bin/sh
engine=$(ibus engine)
if [ "${engine}" == "mozc-jp" ] || [ "${engine}" == "xkb:jp::jpn" ]
then
ibus engine xkb:us::eng
else
ibus engine mozc-jp
fi

+ 0
- 13
assets/graphical/sway/status-desktop.sh View File

@ -1,13 +0,0 @@
#!/bin/sh
# The Sway configuration file in ~/.config/sway/config calls this script.
# You should see changes to the status bar after saving this script.
# If not, do "killall swaybar" and $mod+Shift+c to reload the configuration.
# The abbreviated weekday (e.g., "Sat"), followed by the ISO-formatted date
# like 2018-10-06 and the time (e.g., 14:01)
date_formatted=$(date "+%a %F %H:%M")
mail=$(cat ~/.local/share/mail/unread-govanify)
# Emojis and characters for the status bar
# ⚡ \|
echo "mail: $mail | $date_formatted"

+ 0
- 14
assets/graphical/sway/status.sh View File

@ -1,14 +0,0 @@
#!/bin/sh
# The Sway configuration file in ~/.config/sway/config calls this script.
# You should see changes to the status bar after saving this script.
# If not, do "killall swaybar" and $mod+Shift+c to reload the configuration.
# The abbreviated weekday (e.g., "Sat"), followed by the ISO-formatted date
# like 2018-10-06 and the time (e.g., 14:01)
date_formatted=$(date "+%a %d/%m/%Y %H:%M")
mail=$(cat ~/.local/share/mail/unread)
# Emojis and characters for the status bar
# ⚡ \|
echo "mail: $mail | $date_formatted"

+ 0
- 3
common/default.nix View File

@ -2,11 +2,8 @@
imports =
[
./users.nix
./locale.nix
./build-node.nix
../components
(import "${builtins.fetchTarball
https://github.com/rycee/home-manager/archive/master.tar.gz}/nixos")
./../secrets/deployment.nix
];


+ 0
- 6
common/desktop.nix View File

@ -7,10 +7,4 @@
./graphical.nix
./gaming.nix
];
home-manager.users.govanify = {
home.file.".config/sway/config".source = ./../assets/graphical/sway/config;
home.file.".config/sway/locale.sh".source = ./../assets/graphical/sway/locale.sh;
home.file.".config/sway/status.sh".source = ./../assets/graphical/sway/status.sh;
};
}

+ 58
- 166
common/graphical.nix View File

@ -1,182 +1,74 @@
{ config, lib, pkgs, ... }: {
services.getty.autologinUser = "govanify";
services.redshift = {
enable = true;
package = pkgs.redshift-wlr;
};
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
programs.sway = {
enable = true;
extraPackages = with pkgs; [
swaylock # lockscreen
swayidle
# legacy apps
xwayland xorg.xrdb
wineWowPackages.full
kanshi # autorandr
# misc wayland utils
wofi grim wl-clipboard slurp brightnessctl
# multimedia
mpv imv
# reading
calibre okular kcc
# web browsers
# standard firefox is used for basically everything and is "impossible" to
# fingerprint with my configuration, but i do login on websites sometimes.
# As such tor is used as a clean cut identity that also make sure I didn't
# fuck up tracking when need happens.
firefox
#tor-browser-bundle-bin
# art
blender krita kdenlive
ardour
# stem
#freecad
kicad wireshark pandoc limesuite
# sourcetrail
# recording/streaming
obs-studio obs-wlrobs obs-v4l2sink
jdk
android-studio
(
pkgs.writeTextFile {
name = "startandroid";
destination = "/bin/startandroid";
executable = true;
text = ''
#! ${pkgs.bash}/bin/bash
# Java sucks
export QT_QPA_PLATFORM=xcb
export GDK_BACKEND=xcb
mkdir -p $XDG_DATA_HOME/android-home
export HOME=$XDG_DATA_HOME/android-home
# then start the launcher
exec android-studio
'';
}
)
#ghidra in the future when it is actually updated
# themes
breeze-gtk breeze-qt5 breeze-icons
# math stuff
coq lean elan
# ELECTRON BELOW
# you should try to run with GDK_BACKEND=x11
# matrix
element-desktop
(
pkgs.writeTextFile {
name = "element-x11";
destination = "/bin/element-x11";
executable = true;
text = ''
#! ${pkgs.bash}/bin/bash
# Electron sucks
GDK_BACKEND=x11
# then start the launcher
exec element-desktop
'';
}
)
];
};
programs.wireshark.enable = true;
fonts.fonts = with pkgs; [
hack-font
];
# QT theme engine
programs.qt5ct.enable = true;
environment.variables = {
# fix sway java bug
_JAVA_AWT_WM_NONREPARENTING = "1";
# QT theme
QT_QPA_PLATFORMTHEME="qt5ct";
# force wayland
QT_QPA_PLATFORM="wayland-egl";
GDK_BACKEND="wayland";
MOZ_ENABLE_WAYLAND = "1";
GTK_THEME = "Breeze-Dark";
};
environment.sessionVariables = {
XCURSOR_PATH = [
"${config.system.path}/share/icons"
"$HOME/.nix-profile/share/icons/"
"$HOME/.local/share/icons/"
"${pkgs.breeze-qt5}/share/icons/"
];
GTK_DATA_PREFIX = [
"${config.system.path}"
];
};
environment = {
etc = {
"gtk-2.0/gtkrc" = { text = ''
gtk-icon-theme-name=breeze-dark
''; mode = "444"; };
"X11/Xresources" = { text = ''
Xcursor.size: 12
''; mode = "444"; };
};
};
systemd.user.services.swaywm = {
description = "Sway - Wayland window manager";
documentation = [ "man:sway(5)" ];
bindsTo = [ "graphical-session.target" ];
wants = [ "graphical-session-pre.target" ];
after = [ "graphical-session-pre.target" ];
# We explicitly unset PATH here, as we want it to be set by
# systemctl --user import-environment in startsway
environment.PATH = lib.mkForce null;
serviceConfig = {
Type = "simple";
ExecStart = ''
${pkgs.sway}/bin/sway
environment.systemPackages = with pkgs; [
wineWowPackages.full
# multimedia
mpv imv
# reading
calibre okular kcc
# art
blender krita kdenlive
ardour
# stem
#freecad
kicad wireshark pandoc limesuite
# sourcetrail
# recording/streaming
obs-studio obs-wlrobs obs-v4l2sink
jdk
android-studio
(
pkgs.writeTextFile {
name = "startandroid";
destination = "/bin/startandroid";
executable = true;
text = ''
#! ${pkgs.bash}/bin/bash
# Java sucks
export QT_QPA_PLATFORM=xcb
export GDK_BACKEND=xcb
mkdir -p $XDG_DATA_HOME/android-home
export HOME=$XDG_DATA_HOME/android-home
# then start the launcher
exec android-studio
'';
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
};
environment.shellInit = ''
if [[ -z $DISPLAY ]] && [[ "$(whoami)" == "govanify" ]]; then
if ! systemctl is-active --quiet swaywm; then
xrdb -load /etc/X11/Xresources &> /dev/null
systemctl --user import-environment
systemctl --user start swaywm
fi
fi
'';
home-manager.users.govanify = {
# QT theme
home.file.".config/qt5ct/qt5ct.conf".source = ./../assets/graphical/qt5ct/qt5ct.conf;
home.file.".config/qt5ct/colors/breeze-dark.conf".source = ./../assets/graphical/qt5ct/breeze-dark.conf;
}
)
#ghidra in the future when it is actually updated
# math stuff
coq lean elan
# ELECTRON BELOW
# you should try to run with GDK_BACKEND=x11
# matrix
element-desktop
(
pkgs.writeTextFile {
name = "element-x11";
destination = "/bin/element-x11";
executable = true;
text = ''
#! ${pkgs.bash}/bin/bash
# Electron sucks
GDK_BACKEND=x11
# then start the launcher
exec element-desktop
'';
}
)
];
# GTK theme
#home.file.".local/share/icons/default".source = "${pkgs.breeze-qt5}/share/icons/breeze_cursors";
#gtk-icon-theme-name=breeze-dark
home.file.".config/gtk-3.0/settings.ini".text = ''
[Settings]
gtk-theme-name=Breeze-Dark
gtk-application-prefer-dark-theme = true
gtk-cursor-theme-name=breeze_cursors
'';
};
programs.wireshark.enable = true;
navi.components.hardening.scudo = false;
navi.components.headfull.graphical = {
vte.enable = true;
browser.enable = true;
splash.enable = true;
wm.enable = true;
};
}

+ 7
- 1
common/headfull.nix View File

@ -44,7 +44,12 @@
home-manager.users.govanify = {
home.file.".config/gnupg/key.gpg".source = ./../secrets/key.gpg;
home.file.".config/gnupg/trust.txt".source = ./../secrets/gpg-trust.txt;
home.file.".config/gnupg/gpg.conf".source = ./../assets/gpg/gpg.conf;
# try to auto retrieve gpg keys when using emails, using hkp on port 80 to
# bypass tor restrictions
home.file.".config/gnupg/gpg.conf".text = ''
keyserver hkp://pgp.mit.edu:80
keyserver-options auto-key-retrieve
'';
home.file.".config/gdb/init".text = "source ~/.config/gdb/gdbinit-gef.py";
home.file.".config/gdb/gdbinit-gef.py".text = builtins.readFile (pkgs.fetchFromGitHub {
owner = "hugsy";
@ -99,6 +104,7 @@
};
editor.enable = true;
music.enable = true;
ime.enable = true;
};
# locking kernel modules has a horrendous UX for headfull devices and is


+ 0
- 6
common/laptop.nix View File

@ -26,12 +26,6 @@
];
};
home-manager.users.govanify = {
home.file.".config/sway/config".source = ./../assets/graphical/sway-laptop/config;
home.file.".config/sway/locale.sh".source = ./../assets/graphical/sway-laptop/locale.sh;
home.file.".config/sway/status.sh".source = ./../assets/graphical/sway-laptop/status.sh;
};
nix.distributedBuilds = true;
nix.extraOptions = ''
builders-use-substitutes = true


+ 0
- 58
common/locale.nix View File

@ -1,58 +0,0 @@
{ config, pkgs, ... }:
{
# Set your time zone. changeme when you're in another country
# XXX: make this device specific?
time.timeZone = "Europe/Paris";
location.latitude = 48.864716;
location.longitude = 2.349014;
# Enable fonts to use on your system. You should make sure to add at least
# one English font (like dejavu_fonts), as well as Japanese fonts like
# "ipafont" and "kochi-substitute".
fonts.fonts = with pkgs; [
carlito
dejavu_fonts
ipafont
kochi-substitute
source-code-pro
ttf_bitstream_vera
];
# These settings enable default fonts for your system. This setting is very
# important. It lets fontconfig know that you want to fall back to a Japanese
# font (for example "IPAGothic") if an application tries to show fonts with
# Japanese. For instance, this is important if you are using a terminal
# emulator and you `cat` some Japanese text to the screen. If you don't have
# "defaultFonts" configured, fontconfig will pick a random Japanese font to
# use. If you have this "defaultFonts" setting configured, fontconfig will
# pick the font you have selected. This makes sure Japanese fonts look nice.
fonts.fontconfig.defaultFonts = {
monospace = [
"DejaVu Sans Mono"
"IPAGothic"
];
sansSerif = [
"DejaVu Sans"
"IPAPGothic"
];
serif = [
"DejaVu Serif"
"IPAPMincho"
];
};
# don't forget to set your ibus settings for mozc otherwise no IME!
i18n.inputMethod = {
enabled = "ibus";
ibus.engines = with pkgs.ibus-engines; [ mozc ];
};
environment.variables = {
GTK_IM_MODULE = "ibus";
XMODIFIERS = "@im=ibus";
QT_IM_MODULE = "ibus";
};
}

+ 2
- 0
components/default.nix View File

@ -1,5 +1,7 @@
{
imports = [
(import "${builtins.fetchTarball
https://github.com/rycee/home-manager/archive/master.tar.gz}/nixos")
./tor.nix
./bootloader.nix
./xdg.nix


+ 1
- 0
components/headfull/default.nix View File

@ -5,6 +5,7 @@
./virtualization.nix
./bluetooth.nix
./music.nix
./ime.nix
./graphical
];
}

+ 2
- 0
components/headfull/graphical/browser.nix View File

@ -209,6 +209,8 @@ in
'';
# firefox no segfaulty
xdg.portal.enable = false;
environment.systemPackages = with pkgs; [ firefox ];
};
}

+ 1
- 0
components/headfull/graphical/default.nix View File

@ -3,5 +3,6 @@
./vte.nix
./browser.nix
./splash.nix
./wm.nix
];
}

+ 362
- 0
components/headfull/graphical/wm.nix View File

@ -0,0 +1,362 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.navi.components.headfull.graphical.wm;
qt5ct-dark = ''
[ColorScheme]
active_colors=#eff0f1, #31363b, #4c545c, #40464d, #171a1c, #2a2e32, #eff0f1, #ffffff, #eff0f1, #232629, #31363b, #111314, #3daee9, #eff0f1, #2980b9, #7f8c8d, #31363b, #000000, #31363b, #eff0f1
disabled_colors=#6e7175, #2e3338, #4a5259, #3e444a, #16191b, #282c30, #65686a, #ffffff, #6e7175, #212427, #2e3338, #101213, #2e3338, #6e7175, #234257, #404648, #2e3338, #000000, #31363b, #eff0f1
inactive_colors=#eff0f1, #31363b, #4c545c, #40464d, #171a1c, #2a2e32, #eff0f1, #ffffff, #eff0f1, #232629, #31363b, #111314, #224e65, #eff0f1, #2980b9, #7f8c8d, #31363b, #000000, #31363b, #eff0f1
'';
qt5ct-conf = ''
[Appearance]
color_scheme_path=~/.config/qt5ct/colors/breeze-dark.conf
custom_palette=true
icon_theme=breeze-dark
standard_dialogs=default
style=Breeze
[Fonts]
fixed=@Variant(\0\0\0@\0\0\0\x14\0S\0\x61\0n\0s\0 \0S\0\x65\0r\0i\0\x66@\"\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
general=@Variant(\0\0\0@\0\0\0\x14\0S\0\x61\0n\0s\0 \0S\0\x65\0r\0i\0\x66@\"\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
[Interface]
activate_item_on_single_click=1
buttonbox_layout=0
cursor_flash_time=1000
dialog_buttons_have_icons=1
double_click_interval=400
gui_effects=@Invalid()
keyboard_scheme=3
menus_have_icons=true
show_shortcuts_in_context_menus=true
stylesheets=@Invalid()
toolbutton_style=4
underline_shortcut=1
wheel_scroll_lines=3
[SettingsWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\x14\0\0\x3\xbd\0\0\x4\x34\0\0\0\0\0\0\0\x14\0\0\x3\x14\0\0\x3\x92\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\x14\0\0\x3\xbd\0\0\x4\x34)
'';
# TODO: add more languages? I don't need more of CJK for now but could be
# useful for others -- govanify
locale-sh = pkgs.writeShellScript "locale.sh" ''
engine=$(ibus engine)
if [ "$engine" == "mozc-jp" ]
then
ibus engine xkb:us::eng
else
ibus engine mozc-jp
fi
'';
bat-opt = if cfg.battery then " | bat: $battery_info" else "";
status-sh = pkgs.writeShellScript "status.sh" (''
date_formatted=$(date "+%a %d/%m/%Y %H:%M")
mail=$(cat ~/.local/share/mail/unread)
'' + optionalString cfg.battery ''
battery_status=$(cat /sys/class/power_supply/BAT/status)
battery_info=$(upower --show-info $(upower --enumerate |\
grep 'BAT') |\
egrep "state|percentage" | grep -oP '[0-9]*%')
'' + ''
echo "mail: $mail${bat-opt} | $date_formatted"
'');
layout-keycaps = if cfg.azerty then ''
bindsym $mod+ampersand workspace 1
bindsym $mod+eacute workspace 2
bindsym $mod+quotedbl workspace 3
bindsym $mod+apostrophe workspace 4
bindsym $mod+parenleft workspace 5
bindsym $mod+minus workspace 6
bindsym $mod+egrave workspace 7
bindsym $mod+underscore workspace 8
bindsym $mod+ccedilla workspace 9
bindsym $mod+agrave workspace 10
bindsym $mod+Shift+ampersand move container to workspace 1
bindsym $mod+Shift+eacute move container to workspace 2
bindsym $mod+Shift+quotedbl move container to workspace 3
bindsym $mod+Shift+apostrophe move container to workspace 4
bindsym $mod+Shift+parenleft move container to workspace 5
bindsym $mod+Shift+minus move container to workspace 6
bindsym $mod+Shift+egrave move container to workspace 7
bindsym $mod+Shift+underscore move container to workspace 8
bindsym $mod+Shift+ccedilla move container to workspace 9
bindsym $mod+Shift+agrave move container to workspace 10
'' else ''
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
'';
sway-config = ''
set $mod Mod4
set $left h
set $down j
set $up k
set $right l
set $lock "swaylock --daemonize --indicator-radius 100 --indicator-thickness 7 --ring-color bb00cc --key-hl-color 880033 --line-color 00000000 --inside-color 00000088 --separator-color 00000000 -i ~/Pictures/wallpaper.png"
exec swayidle -w timeout 300 $lock before-sleep $lock
output * bg ~/Pictures/wallpaper.png fill
'' + optionalString config.navi.components.headfull.ime.enable ''
exec swaymsg "workspace 1; exec ibus-daemon -dr > /dev/null 2>&1"
'' + optionalString config.navi.components.headfull.graphical.browser.enable ''
exec swaymsg "workspace 1; exec firefox > /dev/null 2>&1"
'' + ''
exec swaymsg "workspace 3; exec element-x11 > /dev/null 2>&1"
exec swaymsg "workspace 2; layout tabbed; exec alacritty > /dev/null 2>&1"
# ui chrome
default_border pixel 1
seat seat0 xcursor_theme breeze_cursors 24
'' + optionalString config.navi.components.headfull.ime.enable ''
bindsym $mod+i exec ${locale-sh} > /dev/null 2>&1
'' + ''
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% > /dev/null 2>&1
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% > /dev/null 2>&1
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle > /dev/null 2>&1
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle > /dev/null 2>&1
bindsym XF86MonBrightnessDown exec brightnessctl set 5%- > /dev/null 2>&1
bindsym XF86MonBrightnessUp exec brightnessctl set +5% > /dev/null 2>&1
bindsym XF86AudioPlay exec playerctl play-pause > /dev/null 2>&1
bindsym $mod+down exec playerctl play-pause > /dev/null 2>&1
bindsym XF86AudioNext exec playerctl next > /dev/null 2>&1
bindsym XF86AudioPrev exec playerctl previous > /dev/null 2>&1
bindsym $mod+Return exec "alacritty > /dev/null 2>&1"
bindsym $mod+x exec "wofi --show drun > /dev/null 2>&1"
bindsym $mod+z exec "wofi --show run > /dev/null 2>&1"
bindsym $mod+c exec "grim /tmp/screenshot.png > /dev/null 2>&1"
bindsym $mod+d exec "grim -g "$(slurp)" /tmp/screenshot.png > /dev/null 2>&1"
bindsym $mod+Ctrl+l exec $lock
bindsym Ctrl+Alt+l exec $lock
bindsym $mod+Shift+q kill
floating_modifier $mod normal
bindsym $mod+Shift+c reload
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
${layout-keycaps}
input "type:keyboard" {
# avoids swaylock escape
xkb_options srvrkeys:none
}
bindsym $mod+b splith
bindsym $mod+v splitv
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
bindsym $mod+f fullscreen
bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
bindsym $mod+a focus parent
mode "resize" {
bindsym $left resize shrink width 10px
bindsym $down resize grow height 10px
bindsym $up resize shrink height 10px
bindsym $right resize grow width 10px
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
bar {
position top
status_command while ${status-sh}; do sleep 1; done
colors {
statusline #ffffff
background #323232
inactive_workspace #32323200 #32323200 #5c5c5c
}
}
'' + optionalString config.navi.components.headfull.graphical.splash.enable ''
exec plymouth-quit > /dev/null 2>&1"
'' + cfg.extraConf;
in
{
options.navi.components.headfull.graphical.wm = {
enable = mkEnableOption "Enable navi's window manager";
autologin = mkOption {
type = types.bool;
default = true;
description = ''
Autologin into user session.
This has dire security implications if the boot is
unattended or if the computer isn't locked, so please do not
forget to do so if this option is enabled!
'';
};
azerty = mkOption {
type = types.bool;
default = false;
description = ''
Enables azerty handling of windows in navi's window manager.
'';
};
battery = mkOption {
type = types.bool;
default = false;
description = ''
Enables battery status report in the status bar of navi's window
manager.
'';
};
extraConf = mkOption {
type = types.str;
default = "";
description = ''
Extra configuration to add to navi's window manager.
'';
};
};
config = mkIf cfg.enable {
programs.sway = {
enable = true;
extraPackages = with pkgs; [
# lockscreen
swaylock swayidle
# X
xwayland xorg.xrdb
# misc
wofi grim wl-clipboard slurp brightnessctl
# themes
breeze-gtk breeze-qt5 breeze-icons
];
};
services.getty.autologinUser = mkIf cfg.autologin "govanify";
# QT theme engine
programs.qt5ct.enable = true;
environment.variables = {
# fix sway java bug
_JAVA_AWT_WM_NONREPARENTING = "1";
# QT theme
QT_QPA_PLATFORMTHEME="qt5ct";
# force wayland
QT_QPA_PLATFORM="wayland-egl";
GDK_BACKEND="wayland";
MOZ_ENABLE_WAYLAND = "1";
GTK_THEME = "Breeze-Dark";
};
environment.sessionVariables = {
XCURSOR_PATH = [
"${config.system.path}/share/icons"
"$HOME/.nix-profile/share/icons/"
"$HOME/.local/share/icons/"
"${pkgs.breeze-qt5}/share/icons/"
];
GTK_DATA_PREFIX = [
"${config.system.path}"
];
};
environment = {
etc = {
"gtk-2.0/gtkrc" = { text = ''
gtk-icon-theme-name=breeze-dark
''; mode = "444"; };
"X11/Xresources" = { text = ''
Xcursor.size: 12
''; mode = "444"; };
};
};
systemd.user.services.swaywm = {
description = "Sway - Wayland window manager";
documentation = [ "man:sway(5)" ];
bindsTo = [ "graphical-session.target" ];
wants = [ "graphical-session-pre.target" ];
after = [ "graphical-session-pre.target" ];
# We explicitly unset PATH here, as we want it to be set by
# systemctl --user import-environment in startsway
environment.PATH = lib.mkForce null;
serviceConfig = {
Type = "simple";
ExecStart = ''
${pkgs.sway}/bin/sway
'';
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
};
environment.shellInit = ''
if [[ -z $DISPLAY ]] && [[ "$(whoami)" == "govanify" ]]; then
if ! systemctl is-active --quiet swaywm; then
xrdb -load /etc/X11/Xresources &> /dev/null
systemctl --user import-environment
systemctl --user start swaywm
fi
fi
'';
home-manager.users.govanify = {
# QT theme
home.file.".config/qt5ct/qt5ct.conf".text = qt5ct-conf;
home.file.".config/qt5ct/colors/breeze-dark.conf".text = qt5ct-dark;
# GTK theme
home.file.".config/gtk-3.0/settings.ini".text = ''
[Settings]
gtk-theme-name=Breeze-Dark
gtk-application-prefer-dark-theme = true
gtk-cursor-theme-name=breeze_cursors
'';
home.file.".config/sway/config".text = sway-config;
};
};
}

+ 46
- 0
components/headfull/ime.nix View File

@ -0,0 +1,46 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.navi.components.headfull.ime;
in
{
options.navi.components.headfull.ime = {
enable = mkEnableOption "Enable IME support in navi";
};
config = mkIf cfg.enable {
fonts.fonts = with pkgs; [
carlito
dejavu_fonts
ipafont
kochi-substitute
source-code-pro
ttf_bitstream_vera
];
fonts.fontconfig.defaultFonts = {
monospace = [
"DejaVu Sans Mono"
"IPAGothic"
];
sansSerif = [
"DejaVu Sans"
"IPAPGothic"
];
serif = [
"DejaVu Serif"
"IPAPMincho"
];
};
i18n.inputMethod = {
enabled = "ibus";
ibus.engines = with pkgs.ibus-engines; [ mozc ];
};
environment.variables = {
GTK_IM_MODULE = "ibus";
XMODIFIERS = "@im=ibus";
QT_IM_MODULE = "ibus";
};
};
}

+ 26
- 6
devices/alastor/default.nix View File

@ -29,17 +29,37 @@
"Smile, my dear! You know, you're
never fully dressed without one!"
'';
navi.components.virtualization = {
enable = true;
pci_devices = "8086:1912";
bridge_devices = [ "wlp3s0" ];
};
home-manager.users.govanify = {
home.file."Pictures/wallpaper.png".source = ./wallpaper.png;
};
navi.components.headfull.bluetooth.enable = true;
time.timeZone = "Europe/Paris";
location.latitude = 48.864716;
location.longitude = 2.349014;
navi.components = {
virtualization = {
enable = true;
pci_devices = "8086:1912";
bridge_devices = [ "wlp3s0" ];
};
headfull = {
bluetooth.enable = true;
graphical.wm = {
azerty = true;
extraConf = ''
output DP-2 scale 2.0
output DP-2 pos 1920 0 res 3840x2160
output HDMI-A-2 pos 0 0 res 1920x1080
input "5426:515:Razer_Razer_BlackWidow_Chroma" {
xkb_layout "fr(nodeadkeys)"
}
'';
};
};
};
#modules.tor.transparentProxy = {


+ 17
- 0
devices/xanadu/default.nix View File

@ -66,6 +66,11 @@
Welcome to Xanadu
'';
time.timeZone = "Europe/Paris";
location.latitude = 48.864716;
location.longitude = 2.349014;
#modules.tor.transparentProxy = {
# enable = true;
# outputNic = "wlp1s0";
@ -73,6 +78,18 @@
# };
navi.components.headfull.graphical.wm = {
battery = true;
extraConf = ''
output eDP-1 scale 2.0
input "2:14:ETPS/2_Elantech_Touchpad" {
dwt enabled
tap enabled
middle_emulation enabled
}
'';
};
home-manager.users.govanify = {
home.file."Pictures/wallpaper.png".source = ./wallpaper.png;
};


Loading…
Cancel
Save