commit 52110f5c71babefd40a7758bf41594c9a34436fb Author: Henrik Hautakoski Date: Thu Jul 27 00:14:07 2023 +0200 Initial Commit diff --git a/Xresources b/Xresources new file mode 100644 index 0000000..bc234a6 --- /dev/null +++ b/Xresources @@ -0,0 +1,56 @@ +!! Colorscheme + +! special +*.foreground: #f1f1f1 +*.background: #282a33 +*.cursorColor: #f1f1f1 + +! black +*.color0: #000 +*.color8: #000 + +! red +*.color1: #cc817f +*.color9: #cc817f + +! green +*.color2: #7ccfaf +*.color10: #7ccfaf + +! yellow +*.color3: #b08500 +*.color11: #d9a400 + +! blue +*.color4: #8ac6f2 +*.color12: #8ac6f2 + +! magenta +*.color5: #99c +*.color13: #99c + +! cyan +*.color6: #8abeb7 +*.color14: #8abeb7 + +! white +*.color7: #f1f1f1 +*.color15: #f1f1f1 + +!! URxvt Appearance +URxvt.font: xft:Source Code Pro,Source Code Pro Semibold:style=Semibold,Regular +URxvt.letterSpace: -2 +URxvt.lineSpace: 0 +URxvt.geometry: 92x24 +URxvt.internalBorder: 2 +URxvt.cursorBlink: true +URxvt.cursorUnderline: false +URxvt.saveline: 2048 +URxvt.scrollBar: true +URxvt.scrollBar_right: true +URxvt.scrollstyle: plain +URxvt.urgentOnBell: true +URxvt.depth: 24 +URxvt.iso14755: false +URxvt.perl-lib: .config/urxvt/ext +URxvt.perl-ext-common: ibeamcursor \ No newline at end of file diff --git a/i3/config b/i3/config new file mode 100644 index 0000000..8197d17 --- /dev/null +++ b/i3/config @@ -0,0 +1,207 @@ +# i3 config file (v4) +# +# Please see https://i3wm.org/docs/userguide.html for a complete reference! + +set $mod Mod4 + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +font pango:monospace 10 + +# This font is widely installed, provides lots of unicode glyphs, right-to-left +# text rendering and scalability on retina/hidpi displays (thanks to pango). +#font pango:DejaVu Sans Mono 8 + +# Start XDG autostart .desktop files using dex. See also +# https://wiki.archlinux.org/index.php/XDG_Autostart +exec --no-startup-id dex-autostart --autostart --environment i3 + +# The combination of xss-lock, nm-applet and pactl is a popular choice, so +# they are included here as an example. Modify as you see fit. + +# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the +# screen before suspend. Use loginctl lock-session to lock your screen. +exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork + +# NetworkManager is the most popular way to manage wireless networks on Linux, +# and nm-applet is a desktop environment-independent system tray GUI for it. +exec --no-startup-id nm-applet + +# Use pactl to adjust volume in PulseAudio. +set $refresh_i3status killall -SIGUSR1 i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# move tiling windows via drag & drop by left-clicking into the title bar, +# or left-clicking anywhere into the window while holding the floating modifier. +tiling_drag modifier titlebar + +# start a terminal +bindsym $mod+Return exec i3-sensible-terminal + +# kill focused window +bindsym $mod+Shift+q kill + +# start dmenu (a program launcher) +bindsym $mod+d exec "rofi -show drun" +# A more modern dmenu replacement is rofi: +# bindcode $mod+40 exec "rofi -modi drun,run -show drun" +# There also is i3-dmenu-desktop which only displays applications shipping a +# .desktop file. It is a wrapper around dmenu, so you need that installed. +# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+odiaeresis focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+odiaeresis move right + +# alternatively, you can use the cursor 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 + +# split in horizontal orientation +bindsym $mod+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# focus the child container +#bindsym $mod+d focus child + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1:main" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +# switch to workspace +bindsym $mod+1 workspace number $ws1 +bindsym $mod+2 workspace number $ws2 +bindsym $mod+3 workspace number $ws3 +bindsym $mod+4 workspace number $ws4 +bindsym $mod+5 workspace number $ws5 +bindsym $mod+6 workspace number $ws6 +bindsym $mod+7 workspace number $ws7 +bindsym $mod+8 workspace number $ws8 +bindsym $mod+9 workspace number $ws9 +bindsym $mod+0 workspace number $ws10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+2 move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+6 move container to workspace number $ws6 +bindsym $mod+Shift+7 move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+9 move container to workspace number $ws9 +bindsym $mod+Shift+0 move container to workspace number $ws10 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym j resize shrink width 10 px or 10 ppt + bindsym k resize grow height 10 px or 10 ppt + bindsym l resize shrink height 10 px or 10 ppt + bindsym odiaeresis resize grow width 10 px or 10 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +bindsym $mod+r mode "resize" + +# COLORS + +# class border bground text indicator child_border +client.focused #8ABEB7 #8ABEB7 #1D232C #1D232C #1D232C +client.focused_inactive #1D232C #1D232C #404754 #484E50 #5F676A +client.unfocused #333333 #222222 #5F676A #292D2E #222222 +client.urgent #CC817F #CC817F #1D232C #CC817F #CC817F +client.placeholder #000000 #0C0C0C #F1F1F1 #000000 #0C0C0C + +client.background #1D232C + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + status_command i3status + separator_symbol " > ​" + + colors { + background #1D232C + statusline #F1F1F1 + separator #F1F1F1 + + focused_workspace #8ABEB7 #8ABEB7 #111111 + active_workspace #FFCC99 #FFCC99 #111111 + inactive_workspace #1D232C #1D232C #404754 + urgent_workspace #CC817F #CC817F #111111 + binding_mode #9999CC #9999CC #111111 + } +} diff --git a/i3status/config b/i3status/config new file mode 100644 index 0000000..db581cc --- /dev/null +++ b/i3status/config @@ -0,0 +1,35 @@ +general { + colors = true + color_good = "#8ABEB7" + color_degraded = "#FFCC99" + color_bad = "#CC817F" +} + +disk "/" { + format = "%free" +} + +memory { + format = "%used" + threshold_degraded = "10%" + format_degraded = "MEMORY: %free" +} + +read_file uptime { + path = "/proc/uptime" +} + +ethernet _first_ { + format_up = "E: %ip (%speed)" + format_down = "E: down" +} + +tztime local { + format = "%H:%M:%S %Y-%m-%d" +} + +order += "disk /" +order += "ethernet _first_" +order += "memory" +order += "load" +order += "tztime local" diff --git a/rofi/config.rasi b/rofi/config.rasi new file mode 100644 index 0000000..5bba913 --- /dev/null +++ b/rofi/config.rasi @@ -0,0 +1,6 @@ +configuration { + modi: "window,drun,ssh,combi"; + font: "hack 10"; + combi-modi: "window,drun,ssh"; +} +@theme "./theme" \ No newline at end of file diff --git a/rofi/theme.rasi b/rofi/theme.rasi new file mode 100644 index 0000000..e2c258c --- /dev/null +++ b/rofi/theme.rasi @@ -0,0 +1,84 @@ +* { + font: "IBM Plex Mono 12"; + + bg: #282a33; + gray: #404754; + blue: #8ac6f2; + white: #eceff4; + yellow: #ebcb8b; + + background-color: transparent; + text-color: @white; + accent-color: @blue; + + margin: 0px; + padding: 0px; + spacing: 0px; +} + +window { + background-color: @bg; + border-color: @gray; + + location: center; + width: 480px; + border: 1px; +} + +inputbar { + padding: 8px 12px; + spacing: 12px; + children: [ prompt, entry ]; +} + +prompt, entry, element-text, element-icon { + vertical-align: 0.5; +} + +prompt { + text-color: @accent-color; +} + +listview { + lines: 8; + columns: 1; + + fixed-height: false; +} + +element { + padding: 4px; + spacing: 2px; +} + +element normal urgent { + text-color: @accent-color; +} + +element normal active { + text-color: @accent-color; +} + +element selected { + text-color: @bg; +} + +element selected normal { + background-color: @accent-color; +} + +element selected urgent { + background-color: @yellow; +} + +element selected active { + background-color: @accent-color; +} + +element-icon { + size: 0.75em; +} + +element-text { + text-color: inherit; +} \ No newline at end of file diff --git a/urxvt/ext/ibeamcursor b/urxvt/ext/ibeamcursor new file mode 100644 index 0000000..5f0bf81 --- /dev/null +++ b/urxvt/ext/ibeamcursor @@ -0,0 +1,11 @@ +#!/usr/bin/perl +# IBeam cursor in urxvt + +use strict; +use warnings; + +sub on_start { + my ($self) = @_; + my $cmd = "\033[5 q\r"; + $self->cmd_parse($cmd); +} \ No newline at end of file